Post 6 – Building Your First Lightning Web Component for Salesforce Series

If you are already a Salesforce developer then you know that server-side Apex Unit tests are required, but client-side JavaScript tests are not and if you are like most developers, you probably think that creating tests should be optional, kind of like documenting, right?

https://saramorgan.net/2020/01/02/post-6-building-your-first-lightning-web-component-for-salesforce-series/

Sara Has No Limits

This will be the sixth of a series of posts I will be doing over the next few weeks. They will all lead up to the introduction of my new course in December 2019 titled, “Building Your First Lightning Web Component for Salesforce” from Pluralsight. These posts will contain final code snippets of the code used in each course module, but will not include all the tips and best practices about using Visual Studio Code and SFDX, along with the way I personally approach teaching in my video courses.

Handling Testing and Wrapping Up

If you are already a Salesforce developer then you know that server-side Apex Unit tests are required, but client-side JavaScript tests are not and if you are like most developers, you probably think that creating tests should be optional, kind of like documenting, right?

You might not believe this, but writing tests (even for non-required JavaScript)…

View original post 965 more words

Google to kill third-party Chrome cookies in two years — Infosec News Ireland

This just in: Google doesn’t want to block third-party cookies in Chrome right now. It has promised to make them obsolete later, though. Wait – what? The search engine giant gave us the latest update this week in the journey towards what it says will be a more private, equitable web. It announced this initiative, […]Google … Continue reading Google to kill third-party Chrome cookies in two years — Infosec News Ireland

Lazy load images with javascript

Why should you load your images in a lazy way? Among others reasons: Increase page speed:Better page rankMore visitorsReduce bounce rateIncrease pages / session rateImprove user experienceReduce infrastructure costs In a nutshell, this is the process: Modify all your <img /> tags by changing src by data-src or something elseAdd a specific class to every … Continue reading Lazy load images with javascript

Redirect all requests from HTTP to HTTPS un Node.js and Express

The first step will be to create a method to guess if the HTTP request comes from HTTP or HTTPS (secure or not secure). In some context like AWS or Heroku you will have to ask by the header x-forwarded-proto instead of req.secure. Have in mind that req.secure will return always false if there is … Continue reading Redirect all requests from HTTP to HTTPS un Node.js and Express