4 ms·
Nope, I don't buy that this is a tried and tested pattern in your code. > running in places like CERN and Nokia Networking infrastrure Is there no bad code in
by jstimpfle 2y ago
Nope, I don't buy that this is a tried and tested pattern in your code.
> running in places like CERN and Nokia Networking infrastrure
Is there no bad code in these places? And, as an avid follower of your posts, how long ago has this been? 15 years? And now you're selling people ideas on HN instead?
- pjmlp 2y agoWhatever, believe whatever makes you feel happy. You couldn't even be bothered to actually use type alias to make the example simpler, or take into consideration build configurations, only to make the typical C rant.
- jstimpfle 2y agoType alias doesn't save me from typing that stuff at least once, plus I have to come up with a name which adds indirection (and a dependency that I have to manage!) that I have to recompute in my head everytime I read it. It's also (mostly?) transparent to compiler which will still spew me with the same unreadable errors and types as before. The C++ modules that you've been advocating for years as a workaround for slow compile times still haven't arrived in my (and most everybody else's) practice, sorry. I do use precompiled headers in some settings to work around slowness, which does help a lot for build performance but is again terrible (breaks modularity, it's basically a choice: #include everything vs have slow build, with little possibility for making a tradeoff).