Hacker News new | ask | show | jobs
by phomer 6481 days ago
The stuff I've always liked is usually really obvious. For example, if it's complex tree code, you don't have to spend a lot of time digging into the details; what the code is trying to do is obvious by its steps. Clean, clear, simple and consistent. Boring is an unfair categorization. I meant it in terms of not being clever, but it is really an attribute of the observer, not the code.

The best test I think is in how fast you can make a meaningful change to the code, without having ever seen it or studied it before. In a practical sense, that is the only metric that matters anyways. We write this stuff, so we can maintain it and keep it running. It's not the first version that matters, it's the whole life span.

1 comments

I think we agree here: you're talking about "complex tree code", which, for me, is the realm of libraries, not applications. Those are allowed to be boring (and thus perfect), predictable (and thus with a clean API), and so on.