wiki:Languages/JavaScript

JavaScript

Avoid webshit. Really.

Welcome to Node.js v12.4.0.
Type ".help" for more information.
> 0 == "0"
true
> 0 == []
true
> "0" == []
false
> 0 == ""
true
> "" == []
true
> true+true === 2
true
> true === 1
false
> ['1', '7', '11'].map(parseInt)
[ 1, NaN, 3 ]

Avoid dynamically-typed languages at all costs.

Use tooling if you are

do not do plumbing yourself - delegate it

but do understand the principles and important metrics

so you could control the process and evaluate the results


Contrary to popular myth, memorizing countless nuances and special cases of this or that Javascript framework which come and go, does not make one a programmer - a mere coder, perhaps. To become a programmer one has to understand, internalize and apply the the big ideas, Fundamentals and Principles of programming in general, which has nothing to do with these piles of incomprehensible crap most Java or Javascript coders produce.

The first principle is quite simple - recursively simplify and refine until there is nothing more to remove or refactor - the base case (a local optimum) is reached. This is what the best poets do.


Tooling

If one is so unfortunate to end up in a some Javascript sweatshop or the only payment he could receive is for messing with Javascript frameworks, then, at least, understand and use the tools which makes accompanying pain and disgust less severe.


see also PHP

Last modified 17 months ago Last modified on Jun 26, 2019, 10:42:03 AM
Note: See TracWiki for help on using the wiki.