Salesforce Development Tutorial (LWC): How to use Data Attributes to easily pass data from your component HTML template to your JavaScript Controller
|

Salesforce Development Tutorial (LWC): How to use Data Attributes to easily pass data from your component HTML template to your JavaScript Controller

What are Data Attributes and Why Should I Use Them? Data attributes are a truly magical thing that will, at some point, get you out of some prickly situations as a front end developer. They are essentially a way of storing data on an html element so that when a JS event gets fired your…

Salesforce Development Tutorial(LWC): How to Generate a Word Document from a Lightning Web Component
|

Salesforce Development Tutorial(LWC): How to Generate a Word Document from a Lightning Web Component

[sm-youtube-subscribe] Why Create an LWC that can Generate Word Documents? This is a little more self explanatory than many of the blog posts I do, but let’s go over some things. You typically wanna create this because the business has a need (for one reason or another) to generate a word doc. I’ve had businesses…

Salesforce Development Tutorial (LWC): How to Setup the LWC Local Development Server
|

Salesforce Development Tutorial (LWC): How to Setup the LWC Local Development Server

Why setup the Local Development Server? After you use it a couple times I promise you won’t ever ask this question again, lol. It makes your LWC development SO MUCH FASTER!!! I mean it might actually be Lightning Fast! (I’m sorry, but I’m not letting that joke go…). If you’ve ever developed LWC’s directly in…

Salesforce Development Tutorial: How to use the SFDX Scanner Salesforce CLI Plugin for Static Code Analysis
| | |

Salesforce Development Tutorial: How to use the SFDX Scanner Salesforce CLI Plugin for Static Code Analysis

Why Use Static Code Analysis Tools? There are two major reasons to use static code analysis tools: 1) They make you a better developer. These industry standard rules exist for a reason. To make code clean, modular and easy for all the developers that come after you to deal with. So be a kewl guy…

Salesforce Development Tutorial: How to Setup Uncrustify to automatically format your code in Visual Studio Code
| | |

Salesforce Development Tutorial: How to Setup Uncrustify to automatically format your code in Visual Studio Code

Why would you want to setup Auto Code Formatting? Aside from the fact that it’s both magical and amazing, it also enables you to easily do a couple things: 1) If you get onboarded to a project with a horrific looking codebase with nightmarish formatting, you can fix that by running a single command on…

Salesforce Development (LWC): How to Communicate between Aura Components and Lightning Web Components Using Custom Events and the Api Decorator
|

Salesforce Development (LWC): How to Communicate between Aura Components and Lightning Web Components Using Custom Events and the Api Decorator

Why Would You Want to Communicate Between Component Types? There are a bunch of reasons it’s beneficial to communicate between component types but the most common ones that I have found are the following: 1) You’re building a new component and realize you need functionality that only Aura Components support, but it’s a very small…