Stats
3,559
reputation
91k
reached
21
answers
3
questions
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 21, 2019
-
FanaticNov 29, 2020
26
silver badges
-
DeputyFeb 12, 2023
-
ConventionAug 23
-
PunditFeb 15, 2023
38
bronze badges
-
DisciplinedJul 29, 2022
-
Tag EditorOct 26, 2023
-
Vox PopuliDec 18, 2018
Top tags
View all tags
146
Score
8
Posts
33
Posts %
111
Score
4
Posts
17
Posts %
55
Score
3
Posts
12
Posts %
49
Score
11
Posts
46
Posts %
38
Score
2
Posts
8
Posts %
32
Score
5
Posts
21
Posts %
Top Meta posts
3
11
Top network posts
View all network posts