Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Something I noticed about C++ code

Something I noticed about C++ code

Scheduled Pinned Locked Moved The Lounge
c++question
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    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.

    Greg UtasG D P R D 5 Replies Last reply
    0
    • H honey the codewitch

      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.

      Greg UtasG Offline
      Greg UtasG Offline
      Greg Utas
      wrote on last edited by
      #2

      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.

      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

      H 1 Reply Last reply
      0
      • Greg UtasG Greg Utas

        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.

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • H honey the codewitch

          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.

          D Offline
          D Offline
          Daniel Pfeffer
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • H honey the codewitch

            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.

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            I think I found some stuck to the bottom of my shoe, but I scraped it off.

            1 Reply Last reply
            0
            • H honey the codewitch

              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.

              R Offline
              R Offline
              RobertSF
              wrote on last edited by
              #6

              honey the codewitch wrote:

              Where is all the modern C++ code?

              Right next to the modern COBOL code. :-D

              1 Reply Last reply
              0
              • H honey the codewitch

                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.

                D Offline
                D Offline
                DRHuff
                wrote on last edited by
                #7

                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.

                H 1 Reply Last reply
                0
                • D DRHuff

                  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.

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups