Open nelsonic opened 8 years ago
should we setting values to null or undefined ?
null
undefined
Why DC no longer uses null: http://bdadam.com/blog/video-douglas-crockford-about-the-new-good-parts.html null: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/null undefined: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/undefined http://stackoverflow.com/questions/5076944/what-is-the-difference-between-null-and-undefined-in-javascript http://stackoverflow.com/questions/7000762/null-vs-undefined-and-their-behaviour-in-javascript good explanation: http://thecodeship.com/web-development/the-undefined-vs-null-pitfall-in-javascript/
Why DC no longer uses null: http://bdadam.com/blog/video-douglas-crockford-about-the-new-good-parts.html
can we reduce typing and just use zero e.g: return callback(0, result); ? (I don't know, I'm asking!) of should we stop using falsiness https://developer.mozilla.org/en-US/docs/Glossary/Falsy ...? what should we be doing?
return callback(0, result);
falsiness
https://dzone.com/articles/the-worst-mistake-of-computer-science-1
should we setting values to
null
orundefined
?can we reduce typing and just use zero e.g:
return callback(0, result);
? (I don't know, I'm asking!) of should we stop usingfalsiness
https://developer.mozilla.org/en-US/docs/Glossary/Falsy ...? what should we be doing?