3 ms·
FYI, Django/Flask would be the better Python analog; Flask is more similar to Sinatra in its structure (not just syntax), and it was in fact modeled after Sinat
by chimeracoder 14y ago
FYI, Django/Flask would be the better Python analog; Flask is more similar to Sinatra in its structure (not just syntax), and it was in fact modeled after Sinatra.
But as for your main point, I agree - I don't see the appeal of writing an entire application in Javascript. You pick the best tools for the job, rather than picking one and shoehorning it into every use case. Server-side and client-side needs are different, so I don't see any problem in using a different language on each side.
To preempt the responses of 'But it's so much easier to use one common language for an entire stack', I'll have to say that, at least for me, passing data between client and server feels no easier (syntactically or conceptually) in Node.js than in Python/Ruby. YMMV.
- debacle 14y agoSome people like writing JavaScript.
- dysoco 14y agoI'm OK with that, I like writing old, insecure code in C :P
- chimeracoder 14y agoClearly, or else these products wouldn't exist. I'm just saying that, from my experience, I don't see the appeal.