Formula-driven ConfigurationWhen you have a condition-based logic to do something with a record, e.g. apply color-coding for a record card, process it in a certain…Dec 3, 2024Dec 3, 2024
Do Not #02 Use formula-field in WHERE clauseUsing formula-field in WHERE clause slows down the SOQL query, leads to a TableScan leading operation, increased cost and cardinality, and…Nov 15, 2023Nov 15, 2023
Use fully qualified names for System Types in ApexWhenever you’re dealing with System types, use fully qualified names to avoid accidental or intentional name shadowing.Sep 18, 2023Sep 18, 2023
Task for Apex Developer Job Interview: SObject records field values swapA small task for Apex Developer Job Interviews which requires Apex-specific knowledge, shouldn’t take much time and can give you an…Mar 17, 2023Mar 17, 2023
A better way to populate lookup-relationship for sets of related recordsLet’s take a look at a common task when you need to create sets of related records in a single transaction. Usually, you either build child…Jun 7, 2022Jun 7, 2022
Apex WTF #01What would you expect from the following apex statement System.debug(NonExistingOuterClass.class) — an InvalidType exception, right? And…Mar 25, 2022Mar 25, 2022
Write Metadata-Aware CodeWhen you have a certain level of dynamic-ness in your code in almost every case let it be metadata-aware. Let’s imagine you’re converting…Feb 1, 2022Feb 1, 2022
Assertions and ExceptionsJudging from my experience, the most common way of making assertions and throwing exceptions in apex code is the following:Dec 27, 2021Dec 27, 2021
Do not #01If I got a penny every time I saw a check for an empty list is made before a DML operation…Dec 24, 2021Dec 24, 2021