๐ฅ 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.
"Have a function that gets used in about 100 places..." -> that's a job for @cansnippet ๐
'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. Steelers 38.9K posts
- 2. Cowboys 37.7K posts
- 3. Brian Kelly 51.8K posts
- 4. #GoPackGo 4,853 posts
- 5. Packers 28.1K posts
- 6. Broncos 38K posts
- 7. Tucker Kraft 2,914 posts
- 8. #HereWeGo 4,008 posts
- 9. Jonathan Taylor 11.5K posts
- 10. Roman Wilson N/A
- 11. Zeus 15.6K posts
- 12. Jets 97.1K posts
- 13. Bo Nix 7,741 posts
- 14. Jassi 2,149 posts
- 15. Joe Milton 1,255 posts
- 16. Bengals 56.3K posts
- 17. #snfonnbc N/A
- 18. V AT VOGUE WORLD 61.7K posts
- 19. #VxVogueWorldHollywood 43.1K posts
- 20. Eberflus 2,985 posts
Something went wrong.
Something went wrong.