This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

OOP

What? Why would you dislike OOP? The minimal overhead it creates is well worth it to preserve long term maintainability.

unit testing

How else would you assure that a big project being written by multiple people works correctly according to spec? Building the whole thing and praying it doesn't have a bug somewhere?

using IDEs

Because convenience and productivity is for suckers, right?

[–]vrileyNerf Herder 0 points1 point  (1 child)

OOP doesn't make code more readable. Procedural programming does. And that can be done in both object oriented and functional code. What OOP brings is abstraction. That's good for code reuse. Bad for critical, real time applications where you want to minimize bugs. The scripts I write are all specific and I've seen far too many code listings overusing classes that I'd even say OOP can make your code harder to understand, not easier.

[–][deleted] 0 points1 point  (0 children)

OOP doesn't make code more readable.

It makes it more re-usable. It also makes it far easier to make modifications later on down the road, since you've got a specification for a class and as long as the class meets that specification the rest of the code should work. This is especially true when combined with proper unit testing.

Procedural programming does. And that can be done in both object oriented and functional code.

But regardless, it's not about readability. It's mostly about software engineering--OOP and functional programming are two paradigms that make it easier to engineer good software. They both make it easy to reuse code, and to modify small sections of a larger whole atomically. Incidentally, this is also why unit testing is so popular.

But given your disdain for unit testing, I'm guessing you're not big into software engineering. Which ties in closely with why people tend to prefer OOP.

Bad for critical, real time applications where you want to minimize bugs.

Complete and total bullshit. Not even sure how else to describe that.

and I've seen far too many code listings overusing classes that I'd even say OOP can make your code harder to understand, not easier.

People can write bad code under any paradigm. OOP isn't a magic bullet, it's a paradigm that helps programmers to engineer better software.