4 ms·
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
by thirsteh 16y 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 http://twistedmatrix.com/trac/browser/trunk/twisted
- willvarfar 16y agoCrikey, 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 http://en.wikipedia.org/wiki/Bourne_shell#Quotes twisted is, well, twisted. And that's what it does to your head too.
- thirsteh 16y agoJust 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.
- willvarfar 16y agoStill 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.
- dipshit 16y agoThis is very unpythonic example of coding. bullshit