tsuica@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoI love it when I have to scream at a computerlemmy.worldimagemessage-square99fedilinkarrow-up1625arrow-down111
arrow-up1614arrow-down1imageI love it when I have to scream at a computerlemmy.worldtsuica@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square99fedilink
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up37·1 year agoSpeaking as a Senior Dev specialized in database access and design… you don’t have to use all caps - SQL is actually case agnostic. But… but my fucking eyes man. I’m old, if your branch doesn’t have control keywords in all caps I’m going to take it out back and ol’ yeller it. There are few hills I’ll die on but all caps SQL and singular table names are two of them.
minus-squarestebo02@sopuli.xyzlinkfedilinkarrow-up2·1 year agois syntax highlighting not sufficient to recognize the keywords?
minus-squareerogenouswarzone@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·1 year agoThe place I work decided to name all tables in all caps. So now every day I have to decide if I want to be consistent or I want to have an easy life.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up1·1 year agoFuuuuck. That’s why I love postgres… and fuck anyone that requires double quoted identifiers for special casing.
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up1·edit-21 year agoPostgres normalizes table and field names to lowercase, unless you put them in quotes. It’s also case sensitive. That means if you use quotes and capital letters when creating the table, then it’s impossible to refer to that table without using quotes. It also means if you rename the table later to be all lowercase, then all your existing code will break. Still a much better database than MySQL though.
minus-squareNolegjoe@lemmy.worldlinkfedilinkarrow-up0·1 year agoI’m a sql developer, and I am completely the opposite to you. I will find it incredibly difficult to read when everything is in caps
minus-squarePechente@feddit.delinkfedilinkEnglisharrow-up1·1 year agoYou should do a project together
Speaking as a Senior Dev specialized in database access and design… you don’t have to use all caps - SQL is actually case agnostic.
But… but my fucking eyes man. I’m old, if your branch doesn’t have control keywords in all caps I’m going to take it out back and ol’ yeller it.
There are few hills I’ll die on but all caps SQL and singular table names are two of them.
is syntax highlighting not sufficient to recognize the keywords?
The place I work decided to name all tables in all caps. So now every day I have to decide if I want to be consistent or I want to have an easy life.
Fuuuuck. That’s why I love postgres… and fuck anyone that requires double quoted identifiers for special casing.
Postgres normalizes table and field names to lowercase, unless you put them in quotes. It’s also case sensitive.
That means if you use quotes and capital letters when creating the table, then it’s impossible to refer to that table without using quotes.
It also means if you rename the table later to be all lowercase, then all your existing code will break.
Still a much better database than MySQL though.
That’s just cruel.
I’m a sql developer, and I am completely the opposite to you. I will find it incredibly difficult to read when everything is in caps
You should do a project together