News for hackers. Stuff that matters.
Re:How (not) to write Factorial in Java by jcromartie on Wednesday January 26, 2011 @11:17AM (#2143720)
I think the problem is that OOP is just taught as a way to organize code.

Pretty much everything in our ostensibly OO system could be static methods and it would work just fine. Objects rarely have instance variables, or if they do they are just used to set up a method call. Object lifetimes are measured in single-digit lines of code, and messaging between them is extremely rare.

But that's what people have been taught.

Re:How (not) to write Factorial in Java by aphyr on Wednesday January 26, 2011 @01:05PM (#2144183)
I think you may be generalizing from a particular language culture to all OOP. This doesn't apply everywhere.
Re:How (not) to write Factorial in Java by jcromartie on Wednesday January 26, 2011 @01:43PM (#2144419)
I'm talking about the kind of generic business app built in blub by a team of chair moisteners who don't know anything outside of the one language the project is written in.

It could be Java (of course), C# (just about as likely), or VB (when they get the idea to use objects), or Python (yes, I've seen it).