🔥 Have a function that gets used in about 100 places that you need to behave slightly differently for some new code? Add an optional flag.
I like the simplicity of the opening `echo`. So many would have gone for the overly complex `sprintf` when all you actually need is a string
Yeah I really believe in YAGNI. If we ever need to customize it it's easy to add another flag.
One thing that really bothers me is why is $emailsql taken from escaped $username 😬
We used to collect username and email but then switched to using the email as the username usually, so "username" is really the email.
'db_new_user_optimized2', must be twice as good as 'db_new_user_optimized'
Man, some of us are reading these before our first coffee & you're causing some serious mental anguish...
if( !$dont_escape === false) has to be the most eloquent way to write this if statement. Only takes 4 looks to figure it out 😂
Or, you can just go with spec pattern. Oldie but goodie example write up by @beberlei in Doctrine context
United States Trends
- 1. Luka 100K posts
- 2. Blue Jays 83.1K posts
- 3. #WorldSeries 104K posts
- 4. #LakeShow 3,628 posts
- 5. Halo 166K posts
- 6. #TheLastDriveIn 4,591 posts
- 7. Snell 14.4K posts
- 8. Flyquest 3,468 posts
- 9. Mavs 13.7K posts
- 10. #Worlds2025 24.6K posts
- 11. Toronto 68.3K posts
- 12. Marcus Smart 3,711 posts
- 13. Nico Harrison 2,544 posts
- 14. #SmackDown 35K posts
- 15. Kyshawn George 4,343 posts
- 16. Vando 2,692 posts
- 17. Addison Barger 18.5K posts
- 18. Brevise N/A
- 19. Wizards 10.7K posts
- 20. Blazers 10.7K posts
Something went wrong.
Something went wrong.