Piotr Gajek

Piotr Gajek

Technical Architect and Full-stack Salesforce Developer. He started his adventure with Salesforce in 2017. Clean code lover and thoughtful solutions enthusiast.

April 23, 2025

Learn the key differences between regular functions, arrow functions, and methods in Lightning Web Components (LWC). Discover best practices, use cases, and how this, arguments, hoisting, and constructors behave in JavaScript and Salesforce LWC.

January 16, 2025

A Selector Layer centralizes SOQL queries, ensuring consistency, FLS, sharing rule enforcement, and easier testing with mocking. It avoids duplication, supports caching, and simplifies updates, making your code cleaner, scalable, and more maintainable.

March 21, 2024

Code is a representation of business requirements. Business requirements vary for each company, but most of them have an IF-THEN structure. It’s quite common to see IF statements in our code. However, an increasing number of IFs can make our code hard to read and understand.

February 13, 2024

How and when to use Promise.all, allSettled, any, and race in LWC? Check out our latest post about advanced promises!

December 1, 2023

We have two ways to query DOM elements in LWC: refs and querySelector.
Which one is better? Let’s cover it in this post.

October 15, 2023

How Apex type casting works? How to cast List in Apex? How to cast Apex Map? Answers to these questions and much more can be found in this post!

August 29, 2023

Flows are an amazing automation tool that offers you a lot of possibilities. However it also have a lot of limitations you need to be aware of.

July 10, 2023

The SOQL Lib provides functional constructs for SOQL queries in Apex. Use the SOQL Lib as a Selector Layer on your project.