12
submitted 6 days ago* (last edited 6 days ago) by GravitySpoiled@lemmy.ml to c/sql@programming.dev

I found this SQL style guide which looks good. I'm not a pro at SQL but it looks good to me. I mean, you use the style guide your boss wants you to use, or what all others use, but what if you could choose?

top 2 comments
sorted by: hot top controversial new old
[-] Imacat@lemmy.dbzer0.com 9 points 6 days ago

Almost every time I ask another dev about their preferred styling/formatting, they say they don’t really care as long as it’s all consistent. Automate something like sqlfluff with close to the default settings so you can limit that cognitive load and focus on coding.

[-] Deebster@programming.dev 2 points 6 days ago

It makes sense, and would lead to cleaner diffs. Breaking my muscle memory for uppercase keywords would be tricky, though.

this post was submitted on 24 Jun 2024
12 points (92.9% liked)

SQL

447 readers
25 users here now

Related Fediverse communities:

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS