MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/nvk6e4/coding_is_like_poetry_the_code/h149bgy
r/programminghorror • u/ClauVex • Jun 09 '21
146 comments sorted by
View all comments
6
theQuestion = toBe ? True : False
6 u/[deleted] Jun 09 '21 theQuestion = toBe || !toBe is more accurate 1 u/Flamecrest Jun 09 '21 OP is JS, so shorter would be theQuestion = !!toBe
theQuestion = toBe || !toBe is more accurate
theQuestion = toBe || !toBe
1
OP is JS, so shorter would be theQuestion = !!toBe
6
u/Effective_Youth777 Jun 09 '21
theQuestion = toBe ? True : False