Hacker News new | ask | show | jobs
by codegeek 3327 days ago
I have played around a bit with socket.io and the reason you use Node for it is that socket.io itself comes with a in built node server for backend. So it is much easier and faster to fire up a server to run socket.io using node.
1 comments

Sure. Why would you though, not use node.js for the rest of the site? I'm not complaining about either php or node.js. I'm complaining about using both of them for a brand new site.

I assume that both would need to understand the concepts around: users, admins, moderators, topic areas, topics, threads, banning, moderating, vote counts, sessions, and so forth. And interacting with all of that both server<->browser and server<->database. Feels like a lot of duplicated classes, marshalling, etc.