Live data from Hacker News

Mern: Build JavaScript apps using React and Redux

mern.io

11–20 of 141 posts

Re: Mern: Build JavaScript apps using React and Redux

#11

Why MongoDB?

MongoDB plays very well with the rest of the javascript based stack, which mean development and testing is simpler. For many use cases the development time is the real cost, and the database itself is simple enough that what it is running on does not really matter much.

Most people are not building Big Data systems.

Re: Mern: Build JavaScript apps using React and Redux

#12

Why MongoDB?

Mongo is often quick to get people started and simple to work with. No migrations, or joins, etc. etc. It's not for every project, but quite nice for prototyping.

Not only prototyping. If the final product will have a moderate amount of users generating a moderate amount of data, there is really no drawbacks with mongoDB. The real cost is development time.

Re: Mern: Build JavaScript apps using React and Redux

#14

Why MongoDB?

Because people hate the constraints put in place by SQL. It doesn't really matter that they'll spend dozens of hours re-implementing stuff they would've gotten for free with SQL in a RDBMS (not to mention the benefit of serious stability), what matters is that the initial effort to make a change is much lower, and thus developers feel like they're saving a lot of time/hassle. They don't seem to connect the cost on the backend with its cause, or they just don't mind it.

Re: Mern: Build JavaScript apps using React and Redux

#15

Your demo needs fixing, it's open to XSS and that has been tried and tested, as expected for this crowd. :)

As a curious noob, could u explain what is the source of the XSS vulnerability in this case? Is it simply that the site isn't being served over tls/ssl?

Re: Mern: Build JavaScript apps using React and Redux

#16

Your demo needs fixing, it's open to XSS and that has been tried and tested, as expected for this crowd. :)

As a curious noob, could u explain what is the source of the XSS vulnerability in this case? Is it simply that the site isn't being served over tls/ssl?

Not sanitizing input, by either scrubbing out any tags, or escaping those characterst to html entities.

Re: Mern: Build JavaScript apps using React and Redux

#18
post #11

Why MongoDB?

MongoDB plays very well with the rest of the javascript based stack, which mean development and testing is simpler. For many use cases the development time is the real cost, and the database itself is simple enough that what it is running on does not really matter much. Most people are not building Big Data systems.

Why not rethinkdb or couchdb then ? Mongo is not the only Javascript friendly document oriented database.

Re: Mern: Build JavaScript apps using React and Redux

#19

Why MongoDB?

I use MongoDB because I can instantly save down a JavaScript object and later retrieve it in the same state. I don't have to worry about anything else. No configuration, nothing. That's all I need but if there are better options I'm all ears.

Re: Mern: Build JavaScript apps using React and Redux

#20
post #11

Why MongoDB?

MongoDB plays very well with the rest of the javascript based stack, which mean development and testing is simpler. For many use cases the development time is the real cost, and the database itself is simple enough that what it is running on does not really matter much. Most people are not building Big Data systems.

Actually MongoDB is used quite a bit in big data systems.

It has very good integration with Hadoop, Spark etc.

Post reply on HN