🔥 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 😂
United States Trendler
- 1. Bengals 45K posts
- 2. Bengals 45K posts
- 3. Packers 52.5K posts
- 4. Panthers 42.7K posts
- 5. Colts 36.1K posts
- 6. Joe Flacco 4,463 posts
- 7. Steelers 52.7K posts
- 8. Drake London 7,047 posts
- 9. #KeepPounding 5,749 posts
- 10. Lions 59.6K posts
- 11. Falcons 28.6K posts
- 12. FanDuel 42.7K posts
- 13. Daniel Jones 8,351 posts
- 14. Broncos 31.1K posts
- 15. #Skol 4,424 posts
- 16. Vikings 37K posts
- 17. Caleb Williams 6,040 posts
- 18. Jordan Love 8,838 posts
- 19. Zac Taylor 1,984 posts
- 20. #HereWeGo 6,525 posts
Something went wrong.
Something went wrong.