News for hackers. Stuff that matters.
Re:A beginners guide to thinking in SQL by joepvd on Monday July 11, 2016 @07:46PM (#12075661)
Fully agree.

Why is it, that SQL generally is so poorly commented? Almost every time I see an SQL script, I cringe for the poor formatting. It's generally not like the writers of these scripts are poor at formatting other code...

Re:A beginners guide to thinking in SQL by klibertp on Tuesday July 12, 2016 @06:59AM (#12078054)
SQL has a very large and complex syntax, which makes it hard to come up with a set of formatting rules that fit at least most of the statements. I think the only way to get readable SQL is to use a DSL-based SQL builder for your language - this decouples syntax from meaning and makes good formatting much easier. It also fits much better with your main language.