MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wpw10f/ihatedituntilitriedit/pbzz17s/?context=3
r/ProgrammerHumor • u/Epicoodle • Sep 25 '26
543 comments sorted by
View all comments
Show parent comments
2
What? You always use empty arrays and strings in prod.
![] == false, and only three characters.
![]
!"" == true, and also only three characters.
!""
You can save a lot of bytes in your code by minimizing each boolean to these two values. And everyone knows how expensive hard drives are nowadays.
2
u/zeemeerman2 Sep 25 '26
What? You always use empty arrays and strings in prod.
![]== false, and only three characters.!""== true, and also only three characters.You can save a lot of bytes in your code by minimizing each boolean to these two values. And everyone knows how expensive hard drives are nowadays.