🔥 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 Tendencias
- 1. #AskFFT N/A
- 2. Good Sunday 65.2K posts
- 3. #sundayvibes 5,707 posts
- 4. Go Bills 3,803 posts
- 5. #HardRockBet 1,087 posts
- 6. #Talus_Labs N/A
- 7. Full PPR N/A
- 8. Sunday Funday 3,885 posts
- 9. #NationalPumpkinDay N/A
- 10. Blessed Sunday 21.1K posts
- 11. Ireland 111K posts
- 12. Mooney 2,020 posts
- 13. Gronk 2,258 posts
- 14. Schultz 12.1K posts
- 15. THE GRAND CANYON N/A
- 16. Cambodia 39.3K posts
- 17. Kelly Green 1,791 posts
- 18. NFL Sunday 7,165 posts
- 19. Real Madrid 149K posts
- 20. Troy Franklin N/A
Something went wrong.
Something went wrong.