Hacker News new | ask | show | jobs
by thirsteh 5533 days ago
I think a very good example of when OOP is genuinely useful and desirable is the Twisted Networking Engine: http://twistedmatrix.com/trac/browser/trunk/twisted
1 comments

Crikey, that's like recommending the Bourne Shell (which was a bunch of macros so you could write ALGOL-like code in C)! http://en.wikipedia.org/wiki/Bourne_shell#Quotes

twisted is, well, twisted. And that's what it does to your head too.

Just to clarify, I'm not talking about event-driven programming, errbacks and callbacks, but rather how they've done all of the abstraction of the different protocols and subsystems. It's one of the few times where I've considered inheritance absolutely essential.
Still sceptical.

Pretty much every other reactor system is cleaner and easier.

I fight twisted every day and rue the day I picked it for a big project.