Re:SQL is syntactic sugar for relational algebra
by AdrianB1 on Saturday March 23, 2024 @09:24AM
(#39799756)
It is organized, especially if you write it correctly (split lines and indent). Minified, it is a nightmare, but with a proper layout it is a pleasure to read it. I just did a code review for a 20,000 LoC piece and it was quite a breeze after I improved the layout a bit.
[ Parent
| on HN ]
Re:SQL is syntactic sugar for relational algebra
by pkkm on Saturday March 23, 2024 @10:09AM
(#39800043)
"Disaster" may be an exaggeration, but I think the syntax could be better, proper layout or not. In particular, I find that complex SQL queries often need to be read in a "spiral" order due to SQL's attempt to resemble natural language. I find PRQL's consistent left-to-right/top-to-bottom reading order a clear improvement.