News for hackers. Stuff that matters.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by stesch on Thursday December 24, 2015 @11:48AM (#10788701)
People are still using MongoDB for new projects after all the negative articles and comments about it?
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by vdaniuk on Thursday December 24, 2015 @11:56AM (#10788729)
Inertia aka traction is very powerful in tech. Consider that all these negative articles do not percolate to various semi-isolated communities and groups.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by danpalmer on Thursday December 24, 2015 @12:19PM (#10788825)
Unfortunately yes, but I'm not surprised.

There seem to be a large number of people who came into the tech-startup industry through programming a bit of Javascript, maybe from a web design background, who never had a formal education in computer science, who suddenly found out that they could write 'full' web apps in Javascript, and they could query a database in Javascript, but never learnt enough to know why this is a bad idea.

I'm not saying this is all bad, or that all Node devs are bad at all. Node is a good tool for a certain set of problems, and there are some excellent tools in the ecosystem and some great devs. But I think it is the easiest ecosystem to be a terrible developer in, and still get stuff working.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by Diamons on Thursday December 24, 2015 @03:51PM (#10789544)
What does Mongo have to do with Javascript, and why is querying a DB with javascript a bad idea? What language you query a DB in should have no impact.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by joepie91_ on Friday December 25, 2015 @07:24AM (#10791049)
MongoDB isn't really "queried with Javascript". Rather, it's "queried with JSON", which is a separate language entirely.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by nailer on Thursday December 24, 2015 @04:07PM (#10789572)
MongoDB is bad because it has unsafe defaults (e.g., acknowledging writes that haven't happened), not because you can query it in JavaScript.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by joepie91_ on Friday December 25, 2015 @07:23AM (#10791048)
While I agree with most of your assessment, this is one bit I very much disagree with:

> But I think it is the easiest ecosystem to be a terrible developer in, and still get stuff working.

That honour would go to PHP, as far as I'm concerned. JS has many more fail-hard scenarios, and if you don't adapt your attitude to learn about things before using them, you're very quickly going to run into brick walls due to the entire callback thing.

Neither really has anything to do with MongoDB either - there's nothing inherently JS-y about MongoDB (JSON isn't JS), it just happens to have picked up a lot of traction around those parts.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by danpalmer on Monday December 28, 2015 @10:54AM (#10801651)
To the comments that pointed out that JS and MongoDB aren't related, I'd argue they are, if only because the communities have related them.

The "MEAN" stack exists, MongoDB is popular in the JS community, and I feel they both exhibit many of the same hints of a fundamental lack of understanding about tools from a significant number of users.

As I said, there are great JS devs, and I'm sure there are some people using MongoDB for the 'right' things, but I don't think it's the majority.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by drawkbox on Thursday December 24, 2015 @04:47PM (#10789673)
Seems like you are saying Node is the new PHP or Ruby/Rails. It definitely has the most traction/gains so it has many experienced but also many newer devs.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by mayank on Thursday December 24, 2015 @12:14PM (#10788806)
Mongo 3.0 contains an engine that was acquired and is very decent, much like InnoDB in MySQL.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by prodigal_erik on Thursday December 24, 2015 @01:39PM (#10789162)
Having read https://gist.github.com/mapopa/3619146, I'm not eager to trust the judgment of a team who was ever willing to handle users' data so recklessly. Same reason I avoid MySQL when I can.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by hendzen on Thursday December 24, 2015 @02:01PM (#10789233)
The authors of the new storage layer mentioned in the GP are the team that originally wrote BerkeleyDB, which has been used for misson critical workloads for decades. One of the authors actually invented Serializable Snapshot Isolation (SSI), the concurrency control mechanism used in Postgres. If you don't trust them to handle your data, I don't really know who you should trust.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by prodigal_erik on Saturday December 26, 2015 @09:34PM (#10796154)
For quite a long time, mongodb defaulted to buffering writes (presumably to win benchmarks) and dropping errors on the floor. Storage is not the only layer at which their dangerously poor judgment could screw me and my users.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by jchrisa on Thursday December 24, 2015 @03:24PM (#10789486)
At Couchbase we recently introduced an open source SQL-style language with extensions for nested data. Live tutorial: http://query.pub.couchbase.com/tutorial/

We get a lot of folks who start with a Mongo evaluation and end up moving to something more serious.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by ameen on Thursday December 24, 2015 @09:14PM (#10790190)
My only experience with DBs has been MS SQL, MySQL and PostgreSQL. I've always been intrigued with CouchDB. How friendly is CouchDB/PouchDB to someone from a SQL background?
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by jchrisa on Friday December 25, 2015 @09:09AM (#10791259)
CouchDB doesn't have a SQL like query language, and all acces is via http. Couchbase is higher performance with a binary protocol and autoscale features. So they are very different but they have in common that you store Json and then decide how to query it later.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by romanovcode on Friday December 25, 2015 @11:18AM (#10791539)
Isn't MongoDb after 3.0 release quite OK? Especially when used with new db engine?

Also, mongo has very good drivers for every language, likely that is a good reason.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by rodrigogs on Thursday December 24, 2015 @01:24PM (#10789086)
Ok then... Install your heavy SQL database on your super fast machine and use it for everything till your memory screams.

I'm not saying SQL databases are bad. It's just... They are not the only choice! You should be happy that now we have tons of alternatives to choose.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by joepie91_ on Friday December 25, 2015 @07:19AM (#10791040)
Sigh.

You know why many SQL databases use a lot of RAM? Because it improves their performance. They don't require the RAM, they just use it when it's available. Would you rather that it uses your free RAM to speed up your database operations, or to just have it sit idle doing nothing?

As for not being "the only choice" - while technically correct, this is very misleading. SQL databases and schemaless/document stores are _not interchangeable_. They are used for different usecases with different data models and different integrity requirements.

MongoDB is a special one entirely - even for a schemaless document store, it's just very poorly designed and maintained. Use any of the many other such databases - which gained a reputation by actually working well in production, rather than its developers organizing lots of hackathons as a marketing stunt.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by smt88 on Thursday December 24, 2015 @01:57PM (#10789216)
1. SQLite isn't heavy. There are probably even lighter-weight relational solutions, but I haven't needed one, so I haven't looked.

2. Even among non-relational document storage solutions, Mongo has a poor reputation. As someone else says elsewhere in the comments, it's hard to trust a team that let so many ridiculously dangerous bugs (and a basically unreliable design) out into production for so long.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by bpatrianakos on Thursday December 24, 2015 @02:56PM (#10789406)
No SQLite isn't heavy but I hope you mean for use in development only.

The issue isn't MongoDB is bad and relational DBs are awesome. The real issue is new developers being taught that Mongo and NoSQL in general are the databases you should be using with Node. The problem secondary to that is devs not knowing when each is appropriate.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by rlander on Thursday December 24, 2015 @07:46PM (#10790043)
Sqlite can and is widely used in production server-side.

It's about time the "develoment only" myth was laid to rest. Please read the links bellow:

https://charlesleifer.com/blog/sqlite-small-fast-reliable-ch...

http://stackoverflow.com/questions/1711631/improve-insert-pe...

http://stackoverflow.com/questions/784173/what-are-the-perfo...

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by cdcarter on Thursday December 24, 2015 @03:21PM (#10789473)
SQLite is the most widely deployed database engine out there.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by jchrisa on Thursday December 24, 2015 @06:38PM (#10789931)
Especially if you count all the phones and copy machines and AV equipment. Embedded databases are fun to code with.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by coderdude on Thursday December 24, 2015 @05:12PM (#10789733)
Not in production it isn't.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by muzmath on Thursday December 24, 2015 @05:40PM (#10789806)
It's actually commonly used in production for certain types of databases. SQLite is not a replacement for something such as postgresql but it certainly has it's use cases.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by coderdude on Thursday December 24, 2015 @05:46PM (#10789820)
Do you mean for public facing sites? If so, what are the use cases?
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by muzmath on Thursday December 24, 2015 @06:19PM (#10789893)
The use case for SQLite isn't high traffic public facing webpages. Here is their own list of 'famous' users: https://www.sqlite.org/famous.html

Every iPhone, and Android phone have SQLite running on them, which easily makes it the most used production database. It's use case is typically very low traffic websites or as client side storage.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by coderdude on Thursday December 24, 2015 @07:26PM (#10790004)
Maybe I'm missing something but is Mongo in use on the client side in that same way? If not then SQLlite is being shoehorned into the discussion and the context in which production was used should be clear. I feel like people are trying to be technically right instead of following the actual discussion. I never meant client side software and definitely didn't mean someone's micro traffic blog, where a toy database could be used.

It is interesting how much penetration SQLlite has on the client, though.

At any rate, I know better than to not be extremely specific so I brought this on myself.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by smt88 on Thursday December 24, 2015 @09:41PM (#10790241)
It seems like there have just been some assumptions going both ways.

This all started when someone trashed RDBMS for being "heavy", implying that Mongo is good because it's light.

Why would you care how heavy a DB is if it's not on the client side? The kind of memory and storage you need for even the heaviest popular RDBMS (MySQL?) is still low enough that's nearly free to create a small app.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by muzmath on Thursday December 24, 2015 @09:50PM (#10790256)
The only reason I brought it up is that there is a myth that many developers believe SQLlite is only useful as a dev enviroment database
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by collyw on Friday December 25, 2015 @01:49AM (#10790600)
On a multiuser system, that's a reasonable assumption.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by muzmath on Friday December 25, 2015 @11:47AM (#10791608)
That's partially true, but it does seem to find it's way in production on lots of low traffic sites.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by progx on Thursday December 24, 2015 @05:25PM (#10789755)
My browser tell me something other.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by coderdude on Thursday December 24, 2015 @05:38PM (#10789798)
I don't mean 'on the desktop' when referring to database use in production.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by paulddraper on Thursday December 24, 2015 @10:58PM (#10790367)
If you don't have the resources to run PostgreSQL, you sure as heck can't run MongoDB.

And if you really have minimal requirements, I recommend SQLite.

Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by Killswitch on Thursday December 24, 2015 @10:00PM (#10790267)
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by lololomg on Thursday December 24, 2015 @06:37PM (#10789929)
SQL databases are not heavy and d not require super fast machines.
Re:Show HN: Scaffold App for Node.js, Express, Jade, Passpor... by bdcravens on Thursday December 24, 2015 @06:26PM (#10789909)
There are options like RethinkDB, Firebase, etc.