🔥 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. Brian Kelly 17K posts
- 2. #pw_mg 9,021 posts
- 3. #breachla 4,596 posts
- 4. Colorado 35.2K posts
- 5. Yamamoto 78.6K posts
- 6. Deion 2,446 posts
- 7. #WeStandWithNJZ 23.8K posts
- 8. #WeSupportNJZ 24.3K posts
- 9. Talus Labs 13.7K posts
- 10. #VERZUZ 59.9K posts
- 11. Birdman 16.5K posts
- 12. Mizkif 24.2K posts
- 13. No Limit 38.8K posts
- 14. Malaysia 124K posts
- 15. Cambodia 22.9K posts
- 16. Emiru 22.8K posts
- 17. Coach Prime 1,622 posts
- 18. Mia X 568K posts
- 19. Salter 2,001 posts
- 20. Cash Money 31.5K posts
Something went wrong.
Something went wrong.