Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What exactly are you talking about ?

Why would I care about having my database broken into or even my data being corrupted for hacks/spikes. The very definition of these is that they are throwaway designed to test an idea before rebuilding in something more suitable.

And yes MongoDB is schemaless. That doesn't mean your data is going to automatically corrupt itself. You can just define your schema in some shared library. I can just as easily corrupt PostgreSQL if I change data types without updating the ORM.



> Why would I care about having my database broken into or even my data being corrupted for hacks/spikes. The very definition of these is that they are throwaway designed to test an idea before rebuilding in something more suitable.

No. There's no rule that says a prototype must be thrown away - often, it can be built upon further. See also https://news.ycombinator.com/item?id=9913563

> And yes MongoDB is schemaless. That doesn't mean your data is going to automatically corrupt itself. You can just define your schema in some shared library.

This doesn't work if there is no shared library, for example if you have two separate components in different languages both using the database. And at that point you're (poorly) reinventing a schemaful database anyway.

> I can just as easily corrupt PostgreSQL if I change data types without updating the ORM.

A good ORM will abide by your database schema - and no, you can't "corrupt PostgreSQl" by "not updating your ORM". It will, at most, error out because you're trying to work with non-existent columns.

In a schemaless database, there's no such thing as "non-existent columns", thus you can quietly corrupt data without realizing it.


Actually following proper Agile process you do throw your prototype away.

And yes you can corrupt PostgreSQL. Change the data types without updating your ORM.


So we allow for bad tools through the means of slavish doctrine? Brilliant.


And how exactly do you think that will corrupt anything?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: