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. OO is not all that and a bag of chips

OO is not all that and a bag of chips

Scheduled Pinned Locked Moved The Lounge
c++sysadminooptutoriallearning
112 Posts 36 Posters 51 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.
  • S Stefan_Lang

    I knew* one Mobile company who thought it would be a good idea to use Lotus Notes to manage their Telecom infrastructure. *Deliberately using past tense here...

    GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

    M Offline
    M Offline
    milo xml
    wrote on last edited by
    #102

    We had Lotus Notes here... I've never been so grateful to migrate to gmail.

    1 Reply Last reply
    0
    • S Stuart Dootson

      But we *do* build software that [keeps aircraft in the sky](https://en.wikipedia.org/wiki/Boeing\_737\_MAX\_groundings) (that's a system failure, arguably, but involves the software), keeps nuclear reactors from melting down, and [calculates dosages for medical devices](https://en.wikipedia.org/wiki/Therac-25)... I've developed software that is currently flying on passenger aircraft and I can tell you with certainty that the practices and processes used for those lines of code were vastly different than what's used for most software - the [NASA Software Engineering Handbook](https://swehb.nasa.gov/display/SWEHBVC/Book+A.+Introduction) is a pretty good example of this.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      S Offline
      S Offline
      Stefan_Lang
      wrote on last edited by
      #103

      And we do build mars orbiter software[^] that uses imperial units :doh:

      GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

      S 1 Reply Last reply
      0
      • Greg UtasG Greg Utas

        I find it interesting that you now use objects less than when you first started to code. I would've thought that it would work the other way around. But maybe that's for us dinosaurs who first learned structured programming and later had to think in terms of objects. If you learn objects first, I can see it progressing in the opposite direction. I'm curious as to what you meant by C++ changing your attitude towards objects. Maybe you started to use them less because C++ has too much boilerplate! Sure, a standalone piece of code will be smaller, faster, and easier to understand if it isn't broken up into many little objects. But you called it a "little HTTP server". What if it had to be big? Or support other protocols? Or be integrated with a large system? The larger the system, the more important it is to achieve reuse and abstraction, which means separating concerns and using polymorphism, inheritance, and encapsulation. Without this, developers clone and tweak code that can't be reused because it's admixed with other concerns. It also becomes harder and harder to add new capabilities, because they have to interwork with components that exhibit superfluous diversity. A maze of twisty little passages, all different. That said, OO can get overused and won't solve everything. It would be great if it could be coupled with aspect-oriented programming, but I haven't seen a good way to do that, and aspects may simply be intractable when it comes to cleanly separating concerns.

        Robust Services Core | Software Techniques for Lemmings | Articles

        S Offline
        S Offline
        Stefan_Lang
        wrote on last edited by
        #104

        It was the same for me: I learned C++ very shortly after C, with little practice programming in any other language (and only for learning purposes, no real-world applications, not even playing around). Therefore the procedural paradigm wasn't heavily ingrained on me. For many years I fully embraced the OO paradigm. There was a even time when I considered introducing a virtual class hierarchy to break up some deeply nested if/else structures. :^) I followed it for more than two decades before starting to realize that there's more to programming than OO. :omg:

        GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

        1 Reply Last reply
        0
        • S Stefan_Lang

          And we do build mars orbiter software[^] that uses imperial units :doh:

          GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #105

          Or [Ariane-5 control software that tried to cram a 64-bit float into a 16-bit integer with disastrous consequences](https://en.wikipedia.org/wiki/Cluster\_(spacecraft)#Launch\_failure) - pretty much any area where software is used can end in calamity...

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          S 1 Reply Last reply
          0
          • S Stefan_Lang

            Clay is actually a very good building material and it's used occasionally to construct ecological buildings. See for example Clay Houses - Resilient Fireproof Unique and Attractive[^] That said, it's advantages are so impressive that it's hard to understand why it's not used more widely.

            GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

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

            Do you mean raw clay, or baked clay? Raw clay tends to go soggy when wet...

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            S 1 Reply Last reply
            0
            • S Stuart Dootson

              Or [Ariane-5 control software that tried to cram a 64-bit float into a 16-bit integer with disastrous consequences](https://en.wikipedia.org/wiki/Cluster\_(spacecraft)#Launch\_failure) - pretty much any area where software is used can end in calamity...

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              S Offline
              S Offline
              Stefan_Lang
              wrote on last edited by
              #107

              32768 m/s should be fast enough for anybody! ;P

              GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

              1 Reply Last reply
              0
              • D Daniel Pfeffer

                Do you mean raw clay, or baked clay? Raw clay tends to go soggy when wet...

                Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                S Offline
                S Offline
                Stefan_Lang
                wrote on last edited by
                #108

                Not baked (as in bricks). When building a structure, the clay needs to be wet so it merges tightly with the rest of the material and pores get closed. It needs to dry for quite some time, so you might run into trouble building large structures unless you can be very sure to have a long period of dry weather. I know it works pretty well because my brother used clay (pellets) and straw to replace the walls in his studwork house. No problems with soaking at all.

                GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                D 1 Reply Last reply
                0
                • S Stefan_Lang

                  Not baked (as in bricks). When building a structure, the clay needs to be wet so it merges tightly with the rest of the material and pores get closed. It needs to dry for quite some time, so you might run into trouble building large structures unless you can be very sure to have a long period of dry weather. I know it works pretty well because my brother used clay (pellets) and straw to replace the walls in his studwork house. No problems with soaking at all.

                  GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

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

                  I sit corrected. :)

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  S 1 Reply Last reply
                  0
                  • R rjmoses

                    Coincidentally, I was tripping through a large C++ program (about 100,000 LOC) to make some relatively minor enhancements. The original architect(s) of this program did a fantastic job of using all the features of C++ including lambdas, auto's, executable code in header files, virtual functions, just to name a few. The frigging code was terribly difficult to follow! But what was the major hindrance was the exorbitant use of getters/setters between classes. A lot of the code looked like:

                    bool Var;
                    .....
                    bool ClassName::isVarSet()

                    {

                    return Var;

                    }

                    using 6 lines on the screen. Alwfully tough to read and comprehend. Caused me to start hating C++.

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

                    There's such thing as K.I.S.S. I feel your pain though - diving through the STL headers sometimes feels like that.

                    Real programmers use butterflies

                    1 Reply Last reply
                    0
                    • D Daniel Pfeffer

                      I sit corrected. :)

                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                      S Offline
                      S Offline
                      Stefan_Lang
                      wrote on last edited by
                      #111

                      Don't worry. I'm not an expert, but I guess that our ancestors took ages to learn why some 'mud' huts lasted forever while others melted away in the very first rain storm. ;)

                      GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                      1 Reply Last reply
                      0
                      • T Tom Deketelaere

                        True, but all the same I'm staying away from glass buildings types in my area these days ;P

                        Tom

                        B Offline
                        B Offline
                        bVagadishnu
                        wrote on last edited by
                        #112

                        Good thing you weren't in Boston when they were building the (then known as) John Hancock tower completed in 1976.

                        Entire 4′ x 11′, 500-lb windows were detaching and crashing down to the sidewalks hundreds of feet below. Police had to close off surrounding streets whenever winds reached 45 mph.

                        But I never wave bye bye

                        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