Something I noticed about C++ code
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
Two things: 1. A lot of the STL is geared towards containers, which need to use templates. 2. Only weenies do metaprogramming, and there aren't many outside of those who work on standards and STL implementations. :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
Two things: 1. A lot of the STL is geared towards containers, which need to use templates. 2. Only weenies do metaprogramming, and there aren't many outside of those who work on standards and STL implementations. :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.I am not a weenie! According to my man I am a nugget. Entirely different processed food product! :laugh:
To err is human. Fortune favors the monsters.
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
Modern C++ is written by modern C++ programmers. We all date to the previous millennium. :)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
I think I found some stuck to the bottom of my shoe, but I scraped it off.
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
-
Modern C++ is ostensibly heavily template oriented and often involves a fair amount of metaprogramming. And yet, I almost never see C++ code written this way outside of the STL headers. I understand why, to a degree. It can be hard to read. But it's oh so powerful. Where is all the modern C++ code? :confused:
To err is human. Fortune favors the monsters.
Oh so powerful? Except that it’s also unreadable to the person who wrote it after a week has passed and completely unmaintainable by anyone else for the same reason. That makes it powerful- but not good.
If you can't laugh at yourself - ask me and I will do it for you.
-
Oh so powerful? Except that it’s also unreadable to the person who wrote it after a week has passed and completely unmaintainable by anyone else for the same reason. That makes it powerful- but not good.
If you can't laugh at yourself - ask me and I will do it for you.
I use it in GFX and can read it a almost year after I wrote it, some of which I've picked up after putting down for I don't know how many months. You just have to get used to the thought process behind them.
To err is human. Fortune favors the monsters.