logoalt Hacker News

GMoromisatotoday at 4:31 AM1 replyview on HN

Yes, I agree this is true in some (many?) cases. But it is also true that sometimes the more complex solution is better, either for performance reasons or because it makes things simpler for users/API callers.


Replies

bruce511today at 5:44 AM

Yes, there's a valid argument that simple code is not always best performance. Optimizing simple code usually makes it more complex.

But I think the main point stands. There's an old saying that doing a 60 minute presentation is easy, doing one in 15 minutes us hard. In other words writing "clever" (complicated) code is easy. Distilling it down to something simple is hard.

So the final result of any coding might be "complex", "simplified from complex", or "optimized from simple".

The first and third iterations are superficially similar, although likely different in quality.