4 ms·
"modern web" doesn't have to be node based, but just about any web app is a suitable use case for node. The exceptions are web-apps that require heavy backend
by euank 12y ago
"modern web" doesn't have to be node based, but just about any web app is a suitable use case for node.
The exceptions are web-apps that require heavy backend computation (javascript/node sucks at that), but even then you could use node + a work queue that's handled by a more appropriate language.
Nodejs has arguably the best websocket implementation of any language and has mature drivers for pretty much every database backend. It has various templating frameworks etc.
A BB just needs a database at the backend and a way to get that data out to a browser. In that regard, nodejs is more suited than many other languages.
I don't really get your comment since it seems to imply that writing it in nodejs comes at some cost and you need to justify that cost by saying you expect a lot of traffic. I've seen this attitude before when someone writes something in assembly.. "Oh, you're hand-optimizing your program's assembly? Unless you really need that performance I wouldn't think it's worth it to use assembly". The thing is, nodejs doesn't have all that many problems. Sure, there's the massive number of warts of javascript, but people have learned to write readable and less-buggy code in the javascript ecosystem at this point (promises, jslint, etc).
So to repeat my answer to your question: no it doesn't have to be nodejs to be "modern web", but I do think nodejs is appropriate for this use case.
- collyw 12y ago>it seems to imply that writing it in nodejs comes at some cost and you need to justify that cost by saying you expect a lot of traffic Maybe I just too traditional, but there are far more mature back end frameworks available, without the warts of JS. For me I prefer to see a need or justification of using the latest software trends, not just because "its modern" or "that's how we do things nowadays" (a genuine response to a project I am involved in when I asked the case for using Node). Node.js obviously has some use cases where it will shine, but I wouldn't have thought a BB was one of these places, as its quite a traditional kind of app.
- BuckRogers 12y agoExactly right. For a web forum I'd stick to mature, free options built in Python or Ruby. Node.js stuff is great for those who want to use it, but not me, I'd use DjangoBB. Look at this thing of beauty http://support.djangobb.org/ http://support.djangobb.org/. This post stinks of advertising to me. Or the worst form of Node.js bandwagoning if it isn't- so I hope it is viral advertising. Not to mention this thing is a pure, pre-ejected abortion of design. https://community.nodebb.org/ https://community.nodebb.org/ I'm not sure who these web designers think they're fooling with this crap. The "modern web" looks full of hipster goons who would have also cooked up the ribbon interface. I'll stick to my minimalism, black text on white backgrounds, usable forums, and not reinventing the blink tag. I think with nodeBB we can safely say, NEXT!
- Mahn 12y ago> Look at this thing of beauty http://support.djangobb.org/ http://support.djangobb.org/. I feel like I just traveled to the past.
- BuckRogers 12y agoYou may have, but the elders of yesteryear appear to be more wise than the path the hipsters are painting for us.
- MisterBastahrd 12y agoYeah, how dare modern users want to be able to read right to left and top to bottom, as we've been doing for thousands of years. These young hipster types, they know what's up! Disrupting organization of hierarchies is the new Snapchat! In the future, we're all going to evolve Cookie Monster eyes to be able to coordinate these masonry messes.
- Mahn 12y agoWell, for what is worth node.js didn't come out yesterday. I would argue it's reasonably mature for a production app at this point.
- euank 12y agoRight now, nodejs shines anywhere you need websockets and I personally want to see the modern web move to websockets. It allows for much more cool interactions than the server being unable to get data to the client without the client either clicking on something or constantly polling. On a bb software, having the "this thread has unread posts" indicator update without a page reload would be great, and websockets make that easy.
- deleted 12y ago[deleted]