News for hackers. Stuff that matters.
Re:I laugh at your puny human 'objects' by amalcon on Tuesday August 25, 2009 @10:36AM (#784911)
I know it's popular around here to dislike OOP, but this guy's main objection is to mutable state. Analogous situations can occur in an imperative paradigm without objects.

You can easily make use of OOP with no mutable state. You don't get some of the features of OOP, but you can still leverage inheritance in interesting ways.

The other main objection is that OOP isn't a good model for all domains. Don't tell the OOP zealots I said this, but you don't have to use OOP when it doesn't model your problem well. Nobody forces you to use object-oriented techniques. Even if you're stuck with Java, you can just declare a bunch of static methods, and suddenly your "class" is a "module".

It's a tool, and like any other tool, it shouldn't hurt to have it in your box. Just remember to take it out only when it will help you.

Re:I laugh at your puny human 'objects' by apotheon on Tuesday August 25, 2009 @12:06PM (#785094)
> I know it's popular around here to dislike OOP, but this guy's main objection is to mutable state. Analogous situations can occur in an imperative paradigm without objects.

To be fair, the guy's one reference to imperative programming made it sound worse than OOP.

Re:I laugh at your puny human 'objects' by amalcon on Tuesday August 25, 2009 @12:34PM (#785160)
Imperative and object-oriented are on different axes. OO is an organizational paradigm, while imperative is an algorithmic paradigm. It's not hard to conceive of a more declarative object system.
Re:I laugh at your puny human 'objects' by apotheon on Tuesday August 25, 2009 @03:04PM (#785499)
Agreed. That doesn't dispute what I said, though.