Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Dekatelon676y@ewpratten There are IMHO better ways to make an expression more readable. Like splitting it into several expressions or at least splitting the expression into several lines
-
Awlex177456y@Dekatelon @ewpratten The thing is that the expression was literally just a comparison between 2 booleans, so I don't think that the parentheses make a difference๐๐๐
-
In defense of the guy. In some languages like JavaScript is good to use conditionals with arguments like myBoolean === true. Just to make sure nobody made myBoolean a number or is just defined.
If you have myBoolean = ‘’ and you do if(myBoolean) it will return true!
So it makes no harm to use === true in JavaScript at least. -
Awlex177456y@zututukulipa https://youtube.com/watch/... hope you have enough spare time for that one
-
@diegovincent However the OP says that these are "bool == true" comparisons as opposed to "bool === true" comparisons.
-
@Mathtauathogen I know but I didn’t want to assume that the language was JavaScript. In most of the languages the equality comparator is always strict as opposed to JavaScript :)
Watching a tutorial.
* Uses the mouse in order to select and format code, instead of the shortcuts VS code provides
* Does multiple "bool == true"-comparisons
* Doesn't use string interpolation and makes unnecessary .toString() calls
* Adds fucking parentheses around the whole fucking expression he wants to assign
value = (expression)
* Explanations so vague, the EU wants to hire him to reform the internet
Fucking waste of time even on x2.25 speed.
rant