Stats
7,831
reputation
167k
reached
77
answers
1
question
Loading…
About
To be, or not to be, that is the question
Translating it into code, we get
theQuestion = 2b || !2b
This returns true
for any value of 2b
, making the evaluation redundant. We can optimise it by removing the expression and substituting with the result.
theQuestion = true
Badges
View all badges
2
gold badges
-
ElectorateJan 16, 2019
-
FanaticMar 9, 2020
24
silver badges
-
DeputyDec 11, 2019
-
Strunk & WhiteJan 27, 2022
-
ConventionApr 12, 2022
56
bronze badges
-
magicFeb 9, 2021
-
DisciplinedJan 23, 2020
-
Vox PopuliDec 18, 2018
Top tags
View all tags
251
Score
25
Posts
32
Posts %
223
Score
8
Posts
10
Posts %
101
Score
11
Posts
14
Posts %
96
Score
5
Posts
6
Posts %
86
Score
5
Posts
6
Posts %
84
Score
8
Posts
10
Posts %
Top Meta posts
5
11
Top network posts
View all network posts