Blogs
-
Example Of Test Driven Development
This series has extensively discussed Test Driven Development (TDD) and provided numerous examples along the way. Now, let’s take a step back to revisit the core principles of TDD, emphasizing why it can be an effective development strategy and reviewing its fundamentals. Test Driven Development is grounded in the idea that tests should serve as…
-
Constructing An Improved Singleton
In the previous post on Picklist Validation, I briefly mentioned my disappointment in not being able to devise a more effective pattern for creating singletons—the optimal method for accessing constant values such as those in a picklist: Expressing my dislike for crafting singleton property accessors, I’ve invested more hours than I’d like to admit attempting…
-
Typed Queries for Parent and Child Levels
Utilizing strongly typed query builders comes with a significant advantage: the inherent type-checking feature. This not only safeguards developers from potential errors but also prevents administrators from modifying the API name of a field or deleting it while it is referenced within Apex code. Even without considering other applications of the Schema.SObjectField class, these reasons…