Get the latest tech news
The human typewriter, or why optimizing for typing is short-sighted
Intro Quick caveat before we start: This post can definitely be considered a “religious” opinion piece - this is purely my opinion, and you’re free to disagree with me.
In my opinion, it puts unnecessary mental strain on the developer reading the code since it’s not clear at first glance what the auto type actually resolves to. Omitting the use of auto(and template type deducation) is just a subset of the things I’m seeing in codebases that make them hard to navigate. Note: Yes, I know that the example could’ve been rewritten a million different ways to weaken my arguments here, but c’mon - nobody likes a party pooper, I hope that you know what I’m trying to say here :)
Or read this on Hacker News