Piotr Gajek

Piotr Gajek

Senior Salesforce Developer

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

Piotr Gajek GitHubPiotr Gajek LinkedInPiotr Gajek GitHub
Loading views...
30 posts
Apex Character Limit – What to do?
August 7, 2026

Apex Character Limit – What to do?

Everything about the Salesforce Apex character limit: how characters are counted, what is excluded, what actually breaks at 100%, how to get the limit increased, and a formatting change that cut 14.75% from a single class.

Beyond Best Practices – Why Following the Rules Can Break Your Code? – Czech Dreamin’ 26, Polish Dreamin’ 26

Beyond Best Practices – Why Following the Rules Can Break Your Code? – Czech Dreamin’ 26, Polish Dreamin’ 26

Following best practices blindly can make code worse. This post shows that rules are context-dependent – what improves readability, maintainability, or architecture in one case may add unnecessary complexity in another. Understand the trade-offs before applying any rule.

Apex Security and Sharing
March 8, 2026

Apex Security and Sharing

A practical guide to Salesforce security in Apex: how FLS and sharing really work, when to use USER_MODE, WITH SECURITY_ENFORCED, or stripInaccessible, and how class sharing keywords affect record access.

Arrow Function vs Regular Function in LWC
April 23, 2025

Arrow Function vs Regular Function in LWC

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.

Generic Code: What It Is and What It Is Not? – Polish Dreamin’ 25

Generic Code: What It Is and What It Is Not? – Polish Dreamin’ 25

Learn how to build truly generic code that’s easy to adopt, flexible, and avoids duplication. Uncover key principles, patterns, and real-world tips for writing maintainable code that focuses on the core problem and fosters effective collaboration.

Why do you need a Apex Selector Layer?

Why do you need a Apex Selector Layer?

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.

Beyond If Statements: Ways to avoid IFs – Polish Dreamin’ 24
March 21, 2024

Beyond If Statements: Ways to avoid IFs – Polish Dreamin’ 24

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.

Advanced Promises in LWC
February 13, 2024

Advanced Promises in LWC

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

Salesforce Naming Convention
January 5, 2024

Salesforce Naming Convention

In programming, naming conventions are crucial for clarity and collaboration. Choose intention-revealing names, avoid ambiguity, and maintain consistency to enhance code readability and convey meaningful context to fellow developers.

Showing 9 of 30 results