3 ms·
That reminds me, I was trying to code something using Twisted Python the other day and regretted it for exactly that reasons. Abstraction layers and factories a
by makomk 13y ago
That reminds me, I was trying to code something using Twisted Python the other day and regretted it for exactly that reasons. Abstraction layers and factories around factories around abstractions, oh my. What's more, despite those abstractions (or more realistically because of them) it wasn't easy to replace the underlying XMPP transport with a different one. I wound up having to replace a constructor and an undocumented internal method so I could substitute several of the layers with different implementations someone else had written, again in a way that was documented precisely nowhere.
- stcredzero 13y agoPeople forget when writing tools and libraries: easy things easy, hard things possible. Instead, people often aim for "can do everything possible in the spec, because I am awesome!" Years ago, we had to go from a Sun JMS library to one from Weblogic. I had to instantiate a half dozen objects just to send a message. In the Sun one, you used one API call to authenticate and connect, and another to send. Easy things easy, hard things possible. Otherwise, you're guilty of bad design.
- collyw 13y agoThat reminds me of writing to a file in Java versus writing to a file in Perl / Python. (Its been a while since I did any Java, I hope it has improved since then).