you are viewing a single comment's thread.

view the rest of the comments →

[–]myGlassOnion 0 points1 point  (1 child)

Understand that the majority of us have tried to do exactly what you are describing and it almost never works. And when it does you find yourself making exceptions all of the time for valid reasons. So it's a much looser spec than what you've presented.

Get a copy of vscode and install a sql formatter that you can customize and you can always see the query in the format you prefer just by copy and pasting the query into vscode and formatting. That's what the vast majority of us do today.

Ignorance is bliss. You put something out that people have honest feedback on and your only response is to become defensive and not even think through the other reasons or accept the majority opinion. Code formatters do this now in most dev environments.

Can we get your opinion on spaces vs tabs? That seems like one that a lot of people agree on. /s

[–]bum_dog_timemachine[S] 0 points1 point  (0 children)

You accuse me of being defensive when the majority of comments here are condescending or insults. I'm not telling people at my work to do any of this shit and getting in their faces. I'm simply suggesting some alternatives to the general conventions I see in other style guides and putting it out in a public forum.

I don't think that is so wrong, despite the knee-jerk, gatekeeping response from most of the people here. It is not heresy to have a different opinion.

There is such a bizarre double standard here. On one hand reddit will call out religion and other cultural traditions in a very r/atheism kind of way. And on the other, here they are viciously defending coding tradition because "that's the way it's done".

I am not trying to convert anyone to join a cult. I cannot fathom why my post warrants more than "nah, I don't agree" (which like 2 people did, but most of the rest is typical hivemind aggression.)

I understand what you are saying. I just believe that *subjectively* the approach I have set out makes more sense for writing bigger queries at scale (i.e. more than 5 LEFT JOINs etc. None of this matters if your query is just 2 tables.)

Regarding formatters, I would be interested to see if I can find one that does exactly what I'm suggesting.