Ian Kallen has an interesting article about using Berkeley DB and Perl's tie operator to generate a tied persistent hash without using Storable. His example of how to do this is just 30 lines long...
Interestingly the Berkeley DB Java Edition also lets you implement something that looks a lot like a tied persistent hash in Java, despite the fact that Java doesn't have a tie operator. It's 128 lines long, that's more than ×4 longer than the Perl version.
High level languages are supposed to make your life easier, they aren't supposed to make you jump through pointless hoops to get stuff done. They're about giving you the power to implement stuff quickly and easily. That's why I use Perl, not Java...
No comments:
Post a Comment