morse86
Junior Member
- Aug 2, 2014
- 2,215
- 619
- 38
- Country
- United States
- Gender
- Male
- Faith
- Baptist
- Marital Status
- Single
- Politics
- US-Others
You've taken an extreme example in an attempt to prove your point, and I suspect you know that if writing say, an n-tier system with multiple interfaces that writing only procedural code would be nigh on impossible not to mention horrible to maintain and debug. In reality there's nothing to stop a programmer from writing those two lines of code of yours as opposed to the more verbose 7 lines. A good programmer isn't a slave to their methodology, but they know when to be pragmatic and employ different techniques when time or other priorities allow.
What?!?!? All of the programming problems was fixed in the 70s. OOP solves nothing, it just adds to the complexity.
You can take linux core as an example. Almost all of the CLI tools are written in pure C.
Those that don't know the history, repeat the same errors.
Example:
A young woman was preparing a ham by cutting of the protruding ham bone before putting it in the oven. Her friend asked her, “Why did you cut off the bone"?
And she replied, “I really don't know but my mother always did, so I thought you were supposed to."
Later when talking to her mother she asked her why she cut off the bone before baking it, and her mother replied, "I really don't know, but that's the way my mom always did it."
A few weeks later while visiting her grandmother, the young woman asked, "Grandma, why is it that you cut off the ham bone before you bake it?"
Her grandmother replied, "When I was first married, we lived in a small apartment with a tiny stove. The oven was so small you had to cut off the ham bone to get it to fit and cook it a long time."
Upvote
0