3 ms·
I loathe wide lines. I think it's much easier to mentally parse vertical lists of things and I write my SQL much like this. In PHP / Python / Go when inlining
by leetrout 10y ago
I loathe wide lines. I think it's much easier to mentally parse vertical lists of things and I write my SQL much like this.
In PHP / Python / Go when inlining SQL I also line up sequential items indentation with spaces (which most editors do by default when hitting enter inside a multi line string).
Nice to see this codified. I really just wish I would have worked more in my career on teams that care as much about readability and comprehension in 6+ months as I do.
Hopefully more people will follow the advice in the article and write cleaner, easier to mentally parse SQL.