🔥 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 Тренды
- 1. Austin Reaves 60.9K posts
- 2. #Talus_Labs N/A
- 3. #LakeShow 3,447 posts
- 4. $KITKAT 12.6K posts
- 5. Jake LaRavia 7,493 posts
- 6. jungkook 565K posts
- 7. Trey Yesavage 40.5K posts
- 8. Happy Birthday Kat N/A
- 9. #PokemonTCGPocket 2,892 posts
- 10. #LoveIsBlindS9 4,389 posts
- 11. Jeremy Lin 1,154 posts
- 12. #MakeOffer 22.2K posts
- 13. jungwoo 127K posts
- 14. doyoung 91.2K posts
- 15. Rudy 9,548 posts
- 16. Walt 6,551 posts
- 17. Kacie 2,019 posts
- 18. Dodgers in 7 1,736 posts
- 19. Kenny Smith N/A
- 20. Linsanity N/A
Something went wrong.
Something went wrong.