4 ms·
Let's go back to https://news.ycombinator.com/item?id=35473227 https://news.ycombinator.com/item?id=35473227 and see what was said. > ...I would copy their db
by btilly 4y ago
Let's go back to https://news.ycombinator.com/item?id=35473227 https://news.ycombinator.com/item?id=35473227 and see what was said.
> ...I would copy their db onto my Mac, run the mongler on it, and then I would take the database home with me, without worrying whether the theft of my Mac could lead to lives being ruined.
From that, it was definitely run against a copy of the database.
The code that you showed looks like PHP display code. So it will change what is shown to the user, but unless showMixedFruit is horribly misnamed, will not change what is in the database. And therefore does not address the problem that the mongler was trying to solve.
- avg_dev 4y agoThat was implicitly intended to be part of menu template code, so it would show the “Mixed Fruit” option only if it wasn’t prod, and as I tried to suggest in my comment, such code would not execute on prod (the endpoint/backend code would abort if it found itself running in prod). (And the mixed fruit code would, in fact, affect data in the DB). Tbh I think this discussion is less than pointless.