News for hackers. Stuff that matters.
Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by bsder on Tuesday December 02, 2014 @07:01PM (#8690974)
The problem is that object oriented programming is a premature optimization that has outlived it's usefulness.

Object oriented programming enshrines mutation.

Mutation is a good optimization when memory is expensive and fast relative to computation. Memory is now cheap and slow relative to computation. You can execute 100's to 1000's of operations in the time it takes to chase a pointer that is not cached.

Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by Gurkenmaster on Wednesday December 03, 2014 @07:51AM (#8693427)
If OOP encourages mutation can you explain to me why the String class in java is immutable?
Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by bsder on Thursday December 04, 2014 @01:13AM (#8698066)
It's a holdover from when Java was supposed to be a language for small machines.

However, if you're being snide, let me retort "So why does everybody in Java immediately recommend that you use the StringBuilder class instead of String?"