Stats
8,133
reputation
180k
reached
81
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
26
silver badges
-
DeputyDec 11, 2019
-
Strunk & WhiteJan 27, 2022
-
ConventionApr 12, 2022
58
bronze badges
-
magicFeb 9, 2021
-
DisciplinedJan 23, 2020
-
Vox PopuliDec 18, 2018
Top tags
View all tags
263
Score
27
Posts
33
Posts %
222
Score
8
Posts
10
Posts %
106
Score
12
Posts
15
Posts %
96
Score
5
Posts
6
Posts %
95
Score
7
Posts
9
Posts %
84
Score
8
Posts
10
Posts %
Top Meta posts
5
20
Top network posts
View all network posts