🔥 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 الاتجاهات
- 1. #UFC321 59.9K posts
- 2. Almeida 45.1K posts
- 3. Volkov 37.7K posts
- 4. Ole Miss 10.3K posts
- 5. Oklahoma 14.8K posts
- 6. UCLA 7,114 posts
- 7. Lane Kiffin 4,842 posts
- 8. Arbuckle 1,693 posts
- 9. Hugh Freeze 1,120 posts
- 10. Jackson Arnold N/A
- 11. Mateer 1,575 posts
- 12. Cunha 76.3K posts
- 13. #iufb 2,063 posts
- 14. #Huskers 1,036 posts
- 15. Lamar 17.3K posts
- 16. #MUFC 29.4K posts
- 17. Cam Coleman 1,217 posts
- 18. Anthony Taylor 12.3K posts
- 19. Chambliss 1,096 posts
- 20. Sunderland 121K posts
Something went wrong.
Something went wrong.