3 ms·
This was my first thought. Languages require different design principles. If you're calling JavaScript "spaghetti code", then you're doing it wrong.
by crcn 15y ago
This was my first thought. Languages require different design principles. If you're calling JavaScript "spaghetti code", then you're doing it wrong.
- batista 15y agoLanguages require different design principles. If you're calling JavaScript "spaghetti code", then you're doing it wrong. He's calling node style callbacks spaghetti code. Which it is, and it's a known problem, and there are several half-baked solutions for it.
- crcn 15y agoNode.js isn't picking up a new paradigm. The issue is very present in JavaScript, and it's easy to write spaghetti code since the language by itself doesn't offer much structure. It's possible to write very clean JavaScript / Node.js code, but it takes a different approach over how you design / develop apps versus a class-based language.