Jesus died at 33, so that can’t get returned in the query response lol
THIS IS WHY YOU NEVER WRITE YOUR ENTIRE QUERY IN A SINGLE LINE
As a c# mssql developer I’m not familiar with json or mongodb but I don’t get the meme. What’s wrong with this syntax? It’s readable and relatively concise. Is this a whoosh moment for me? What am I missing?
It’s a mess compared to the equivalent SQL.
SELECT *
FROM users
WHERE age >= 25 AND age <= 30
I dislike SQL syntax more than most, and even I concede that SQL wins in this instance.
Edit: Not sure if this appears on all clients but the < in the code block is meant to be a less-than symbol.
IMO it’s just so clunky with what feels like way too many extraneous symbols. And that’s just a very simple query, check out the equivalent of a join: https://stackoverflow.com/a/43653679
Granted, joining is not really what Mongo DB is for (that’s the whole point of it being non-relational, after all). But even reaching deep into an object can get you into nesting hell very quickly.
I’m unfamiliar with the last comic where Jesus Christ is said. Does it mean he is happy with the result or can’t bear to look at the result?
The OG comic was a guy talking to a baby, saying “Hey little guy, how’s it going?” and the baby replies with gibberish. The third panel indicates a pause, and then the guy responds in the fourth panel with “yea” (which is supposed to be “yeah” and not the archaic affirmation that rhymes with “nay”). It’s like he doesn’t even know what he expected when he asked the question, and is just accepting the awkwardness and confusion.
The “Jesus Christ” variant seems to imply the stunning horror of whatever the guy sees in the second panel.
The latter, although it wasn’t originally like that
I’m going to laugh at this all day
SELECT user FROM db WHERE age BETWEEN 25 AND 35;
Fuck your mongo
We just got a ticket in, our users need several new fields in the user table
Relational virgin:
NNNNNOOOOOO I’ll need this sprint to modify the user table and write the etl script
NoSQL Chad:
private String newField1;
private boolean newField2;
private Object newField3;
//And now, I close the ticket and go get lunch beers.