PinnedBeautiful Symfony Controllers With The “View” EventRecently I embraced the power of the “View” kernel event offered by the Symfony framework. And it has been a lifesaver!Aug 21, 20231Aug 21, 20231
PinnedPublished inDev GeniusBinding Self-Validating Domain Models To Symfony FormsSymfony Forms introduced the “getter” and “setter” properties on form fields. No more data mapper, no more constraints!Jan 4, 20231Jan 4, 20231
PinnedThey Accused Me of Prematurely Optimizing the Code. Wrong!“Premature optimization is the root of all evil.” If you’re into programming, most probably you have heard the famous Donald Knuth’s maxim…Mar 7, 20237Mar 7, 20237
PinnedPublished inThe Personal Growth ProjectHow ChatGPT Increased My Coding Efficiency in Everyday WorkSee how AI allows me to code faster and more efficiently.Dec 30, 20227Dec 30, 20227
PinnedPublished inDev GeniusMySQL Locks —for Update or Read?Simple explanation with examples that even child* will understandSep 18, 20221Sep 18, 20221
Stop Caching Relations Inside Your Models in PHPDatabase models are the heart of your application. Restrain yourself from caching anything inside!Jan 24, 20231Jan 24, 20231
I Don’t Give a F⋆⋆⋆ About S.O.L.I.D Principles — Here Are My ReasonsAt least not anymore. After so many years of coding, I write new code on autopilot. Here are my reasons why.Jan 17, 202331Jan 17, 202331
Constants in Traits in PHP 8.2The newest PHP version lands with Constant support in traits. The functionality is available for version 8.2.Jan 13, 2023Jan 13, 2023
No More SHA1 Function in PHPDue to vulnerabilities, it is not advisable to continue using this old-time cryptographic hash function.Dec 19, 2022Dec 19, 2022
Stop Silencing Exceptions in PHPCorrect exception handling is important for easy debugging! See how to throw and re-throw exceptions to avoid headaches.Dec 16, 2022Dec 16, 2022