Illia LeshchukDo 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…1 min read·Nov 15, 2023----
Illia LeshchukUse 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.1 min read·Sep 18, 2023----
Illia LeshchukTask 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…1 min read·Mar 17, 2023----
Illia LeshchukA 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…1 min read·Jun 7, 2022----
Illia LeshchukApex WTF #01What would you expect from the following apex statement System.debug(NonExistingOuterClass.class) — an InvalidType exception, right? And…1 min read·Mar 25, 2022----
Illia LeshchukWrite 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…1 min read·Feb 1, 2022----
Illia LeshchukAssertions and ExceptionsJudging from my experience, the most common way of making assertions and throwing exceptions in apex code is the following:2 min read·Dec 27, 2021----
Illia LeshchukDo not #01If I got a penny every time I saw a check for an empty list is made before a DML operation…1 min read·Dec 24, 2021----