logoalt Hacker News

usrnmtoday at 8:34 AM1 replyview on HN

Is it actually simpler, though? The unfortunate reality of this world is the fact that C++ is not the latest standard of the language or the newest shiny library, it's all of them at the same time. Adding a new way of doing the same thing decreases complexity only if you migrate all of the existing code, which nobody ever does.


Replies

hasleytoday at 12:17 PM

In cases where I assume that enough test coverage exists, I simplify code that I am currently working on or which I need to read very often.

This way I have already replaced a lot of for-loops by range-based for-loops. It helps me to understand code faster.

But code parts that noone needs to touch or see do not need to be more readable.