🔥 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 Tendances
- 1. #SmackDown 22.1K posts
- 2. #WorldSeries 69.3K posts
- 3. Snell 8,005 posts
- 4. Paolo 11.1K posts
- 5. Cole Anthony 1,501 posts
- 6. Halo 138K posts
- 7. Celtics 18.5K posts
- 8. Darryn Peterson 1,752 posts
- 9. #TheLastDriveIn 1,261 posts
- 10. Jade Cargill 5,069 posts
- 11. Knicks 22.1K posts
- 12. Purdue 6,457 posts
- 13. PlayStation 65.1K posts
- 14. Grizzlies 3,658 posts
- 15. Yesavage 7,309 posts
- 16. Kyshawn George N/A
- 17. Zelina 1,630 posts
- 18. #LetsGoDodgers 6,229 posts
- 19. Xbox 78.5K posts
- 20. Zion 16.2K posts
Something went wrong.
Something went wrong.