Skip to content

Comment on A better SQL in 11 lines of code

Comments

The example is not particularly impressive. The SQL equivalent is much easier to understand, which means it is easier to maintain. Number of lines is not an interesting metric; understandability and maintainability are more important.

I’m not sure how they come up with the 20-line example anyway - it’s one join.

Traditionally SQL uses a lot of lines because you put one thing per line, but so what?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.