Hacker News new | ask | show | jobs
by Barenboim 2021 days ago
No template in user interfaces.
1 comments

How is that an advantage ? either you have N overloads doing manually what templates do automatically, or you have indirection and the implied performance loss
Have you ever compiled a project using ASIO? The template crap everywhere makes build times miserable.
I use asio in all my network-using projects. It doesn't particularly bother me, the files that use asio take a few seconds to build ?
Those few seconds can add up very quickly when you’re making incremental changes and have to keep recompiling. I ended up having to write non-template wrappers for all my ASIO stuff and compile them as a separate object file, in order to keep my workflow manageable. Building that one object file would double my total build time.
I've actually done that all day long, at most it takes 3-4 seconds between code editing and the app / test running, I'd definitely not trade faster build times for something else in that case, especially when my IDE highlights errors when I type which greatly reduces the need for constant rebuilds.