News for hackers. Stuff that matters.
Re:Against SQL by MetaWhirledPeas on Saturday July 10, 2021 @10:35AM (#27793590)
Among the various languages I use, why is SQL the only one that favors ALL CAPS EVERYTHING? When writing ad hoc queries I ignore that convention just to be ornery.
Re:Against SQL by kybishop on Saturday July 10, 2021 @10:42AM (#27793638)
My honest take is that it's rare to name your tables and columns with all caps, whereas there are various cases where people do so with camelCase and snake_case.

In the end this makes spotting SQL-specific functions much clearer. I find it much easier to read SQL with this convention since my brain immediately knows when it's looking at context/project-specific data or a FUNCTION.

Re:Against SQL by Izkata on Saturday July 10, 2021 @03:30PM (#27795815)
HTML used to be the same, it fell out of practice at some point. The same may happen to SQL under the right circumstances.
Re:Against SQL by kinjba11 on Saturday July 10, 2021 @04:10PM (#27796096)
You're not alone. Myself and many coworkers don't feel the need to capitalize everything, preferring `select * from Table` to the shouting version `SELECT * FROM TABLE`. It ain't the 80s anymore, we can use lowercase.
Re:Against SQL by yen223 on Saturday July 10, 2021 @04:39PM (#27796273)
This reminds me, case sensitivity of identifiers (table names, column names etc) in SQL is a whole mess that can fill another blog post.