When writing code, it is always better to be as explicit as possible instead of going for tricks. This concept is best explained by examples so let's get right into it. The double bang !! (logical NOT) This one is by far the most common "trick" in th...

Markdown supported · ⌘↵ to post
Potential performance gains should not be dismissed. Some of these 'tricks' can make your code orders of magnitude faster
Good stuff!
When writing code, readability should be a priority.
I can't agree with this more, and I would add that sometimes even things that aren't necessarily tricks, things like common language constructs, do more harm than good to the readability of code. An idea I've seen come up a lot is shorter == better; so for example, people will apply ternary operators to make the code more concise, but it just means that you have to study the code for those extra few seconds.
Basharath
Full stack developer | Blogger | Techie
It's interesting to read this.