3 ms·
Yes, the lack of proper standards made it even worse, and yes, JavaScript has 'good parts', but JavaScript is still chockfull of wat: https://www.destroyallsoft
by luriel 14y ago
Yes, the lack of proper standards made it even worse, and yes, JavaScript has 'good parts', but JavaScript is still chockfull of wat: https://www.destroyallsoftware.com/talks/wat https://www.destroyallsoftware.com/talks/wat
- dotborg 14y agoso it should be easier to use javascript on server side, no?
- esrauch 14y agoThat video is completely misleading due to a quirk of the repl treating {} as a block not an object, not really a language wart. Try it yourself: var a = [] + {}; var b = {} + []; Miraculously they are same (but only because the list is empty, string concat order matters obviously)! The only time that wat can ever happen is a case that would never exist in any actual code. The Dom is full of wat but I still havent seen any legitimate cases in js itself.