🔥 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. #AEWDynamite 12.6K posts
- 2. Embiid 7,888 posts
- 3. Maxey 3,260 posts
- 4. Knicks 23.7K posts
- 5. Donovan Mitchell 2,423 posts
- 6. #Survivor49 1,643 posts
- 7. VJ Edgecombe 5,698 posts
- 8. Cavs 13.3K posts
- 9. Pistons 4,815 posts
- 10. Sixers 10.2K posts
- 11. Lonzo 3,005 posts
- 12. Brunson 5,339 posts
- 13. Hornets 8,050 posts
- 14. Jarrett Allen N/A
- 15. #LetEmKnow 5,130 posts
- 16. Inside the NBA 6,071 posts
- 17. #SistasOnBET N/A
- 18. #AbbottElementary 1,306 posts
- 19. Barlow 2,510 posts
- 20. East Wing 153K posts
Something went wrong.
Something went wrong.