544
no.. just no (lemmy.ca)
you are viewing a single comment's thread
view the rest of the comments
[-] expr@programming.dev 38 points 1 year ago

Not only is this really gross, it's also straight up wrong. It's missing a from clause, and it makes no sense for a where clause to be nested under the select. The select list selects columns from rows that have already been filtered by the where clause. Same for the limit.

Also just gonna go ahead and assume the JSX parser will happily allow SQL injection attacks...

[-] CanadaPlus@futurology.today 3 points 1 year ago
[-] ReluctantMuskrat@lemmy.world 2 points 1 year ago

Clearly you've not had to write and maintain much XML.

[-] CanadaPlus@futurology.today 4 points 1 year ago

I have not. I just thought it looks less goofy than a nested SQL statement split over multiple lines.

What are the issues with XML?

[-] nephs@lemmygrad.ml 1 points 1 year ago
this post was submitted on 27 Dec 2023
544 points (96.7% liked)

Programmer Humor

19821 readers
880 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS