OOP

Interesting topic on Slashdot Is Object-Oriented Programming a Trillion Dollar Disaster?

The above topic concerns this article Object-Oriented Programming — The Trillion Dollar Disaster

I am not a OOP programmer and I don’t play one on TV. I tried it at a very basic level while looking into C++ and Java. So I have looked at it and think I can possibly see some benefit
…perhaps…sometimes…maybe…perhaps. But to say it’s the greatest thing in programming? Or even necessary.

I even might have found a use for it if it hadn’t felted so forced, and touted as the proper modern way to write programs. Accordong to Wikipedia, C++ first appeared in 1985. So obviously OOP wasn’t in use much before that…the previous 25+ years. Cobol appeared in 1959 and Fortran, 2 years before that.

The topic starts out with a quote Precious time and brainpower are being spent thinking about “abstractions” and “design patterns” instead of solving real-world problems.

It also quotes Linus Torvalds “limiting your project to C means that people don’t screw things up with any idiotic ‘object model’.”

In today’s world, you can probably find more articles with the opposite point of view. People with big vocabularies argue the point. Such as…Correctly written, OOP code allows you to encapsulate just the logic you need for a specific task and to make that specific task available in a wide variety of contexts by judicious use of templating and virtual functions that obviate the need for “refactoring”...wow! My eyes started to glaze over about 2/3 the way through that sentence. However if the creator of Linux is not a fan then I find vindication, and can point to him when people with impressive vocabularies can out argue me. If you like it great! Linus somehow created a OS that basically is the backbone of the Internet, an OS that every (not most) top 500 supercomputer in the world runs…without the judicious use of templating and virtual functions that obviate the need for “refactoring”...evidently. So it certainly isn’t necessary!

I mean need I say more than the famous “Hello World!” program they always start out in a programming tutorial.
Here’s how to do it in Java…
class HelloWorld {
 public static void main(String[] args) {
    System.out.println(“Hello, World!”);
  }
    }

Really?

Here’s the complete complicated way to do this in Python3…
print(“Hello World!”)

Python3 allows you to use OOP if you want.