Live data from Hacker News

Nodejs and MongoDB, A Beginner's Approach

blog.ksetyadi.com

21–30 of 34 posts

Re: Nodejs and MongoDB, A Beginner's Approach

#21
post #2

There's something incredibly natural about node & mongo together.

Actually it's more like: hey, let's take two tools that ought to be used with utmost caution by people who know what they're doing and why they need them, and present them as the best thing since sliced bread. The huge majority of uses for either would be better served without them.

Why such an elitest attitude? We all have to start somewhere.

Re: Nodejs and MongoDB, A Beginner's Approach

#22

To be honest, a good attempt by the author but I wouldn't recommend this to a beginner. Why? I don't recommend the use of the native driver - you end up with needlessly complex code. I don't want to criticize the authors work. He's done a pretty good and thorough job. Hopefully I'll pen down an easier guide later tonight.

It's always nice to have another point of view within a subject. Would like to know more.

Re: Nodejs and MongoDB, A Beginner's Approach

#24
post #6

This guide really shows what I think is a big problem with a lot of Node guides, they don't go beyond the first 5 minutes. There are a ton of guides on how to set up a webserver in 20 lines, but hardly any on how to (properly) handle a lot of async callbacks and requests etc.

It's hard to cover many aspects of it when we talked about getting our feet wet. I try to include as few terms as possible that potentially confused people to start coding Nodejs-MongoDB. It's probably a big problem when you try to get your feet wet on the first day you learn about swimming just by jumping all over the pool. But then, hopefully, we learn. Thanks for your opinion :)

I'm not sure that both Node.js and MongoDB appeal beginners.

These 2 tools are reserved for people who exactly know what they want out of their tools, not for someone who just jumped in to "web development" and wanted to use buzzword compliant tools.

Sorry for being such a snippy on Monday morning but I'm hoping people around me would become better at fundamental as opposed to combining tools w/o knowing what they're good for.

Re: Nodejs and MongoDB, A Beginner's Approach

#25

Earlier quoted context omitted.

It's hard to cover many aspects of it when we talked about getting our feet wet. I try to include as few terms as possible that potentially confused people to start coding Nodejs-MongoDB. It's probably a big problem when you try to get your feet wet on the first day you learn about swimming just by jumping all over the pool. But then, hopefully, we learn. Thanks for your opinion :)

I'm not sure that both Node.js and MongoDB appeal beginners. These 2 tools are reserved for people who exactly know what they want out of their tools, not for someone who just jumped in to "web development" and wanted to use buzzword compliant tools. Sorry for being such a snippy on Monday morning but I'm hoping people around me would become better at fundamental as opposed to combining tools w/o knowing what they're…

I've pointed it in the first three paragraphs. No worries for being snippy. In fact, you aren't :)

Re: Nodejs and MongoDB, A Beginner's Approach

#26

Earlier quoted context omitted.

It's hard to cover many aspects of it when we talked about getting our feet wet. I try to include as few terms as possible that potentially confused people to start coding Nodejs-MongoDB. It's probably a big problem when you try to get your feet wet on the first day you learn about swimming just by jumping all over the pool. But then, hopefully, we learn. Thanks for your opinion :)

I'm not sure that both Node.js and MongoDB appeal beginners. These 2 tools are reserved for people who exactly know what they want out of their tools, not for someone who just jumped in to "web development" and wanted to use buzzword compliant tools. Sorry for being such a snippy on Monday morning but I'm hoping people around me would become better at fundamental as opposed to combining tools w/o knowing what they're…

Why is MongoDB unsuitable for beginners? If beginners have a handle on Javascript it saves them from having to learn SQL and know any MySQL admin.

Re: Nodejs and MongoDB, A Beginner's Approach

#27
post #6

This guide really shows what I think is a big problem with a lot of Node guides, they don't go beyond the first 5 minutes. There are a ton of guides on how to set up a webserver in 20 lines, but hardly any on how to (properly) handle a lot of async callbacks and requests etc.

Going into how to handle a lot of async callbacks/requests would be entirely different subject matter, would it not? The blog post is titled "Nodejs and MongoDB, A Beginner’s Approach" and that's the subject matter it tackles.

Re: Nodejs and MongoDB, A Beginner's Approach

#28

To be honest, a good attempt by the author but I wouldn't recommend this to a beginner. Why? I don't recommend the use of the native driver - you end up with needlessly complex code. I don't want to criticize the authors work. He's done a pretty good and thorough job. Hopefully I'll pen down an easier guide later tonight.

Yeah, I'd say many folks will probably end up wanting to use something like Mongoose to abstract the nitty-gritty details of Node/MongoDB interaction, but knowing how to use the underlying library (and node-mongodb-native is the most popular of them by far) is healthy for beginners.

Re: Nodejs and MongoDB, A Beginner's Approach

#29
post #2

There's something incredibly natural about node & mongo together.

Actually it's more like: hey, let's take two tools that ought to be used with utmost caution by people who know what they're doing and why they need them, and present them as the best thing since sliced bread. The huge majority of uses for either would be better served without them.

Our team's been using node/mongo in production for nearly a year now - on large social games.

The win on engineering productivity alone has made them a good choice for us.

Re: Nodejs and MongoDB, A Beginner's Approach

#30
post #8
post #5

Earlier quoted context omitted.

Is that specific to MongoDB on node, or is that just generally true of node.js code though?

It's generally true for Node when you have a lot of chained I/O. You can somewhat avoid it using events (so you set up event listeners instead of just chaining callbacks endlessly). So far I haven't seen any MongoDB module for Node taking advantage of those (haven't looked a lot yet, though).

Mongoose is pretty good for succinct Node/MongoDB interaction.
Post reply on HN