The one change to the 1.0 API is that
_super is now called
uses a compression strategy that obfuscates ‘private’ variables (this will be in
the next PackR release, as and when Packer 3.1 comes out). You do need
to be very careful when doing this, though, so I figured I should make
not look like a private variable just in case.
Now, onto the new stuff. This release adds tons of new features to play with, namely:
- Implementations of several design patterns in such a way that minimises how much repetitive boilerplate you need to write to use them. (I’m becoming more and more convinced that repetition is one of the largest and most easily removable causes of software bugs.) Patterns include decorator, virtual proxy, observer and command.
- Versions of Ruby’s
- Linked lists. They’re like arrays, but much better suited to removal, shift operations and reordering.
MethodChain, formerly known as
ChainCollector. This module on its own is responsible for some of Ojay’s key features.
So, what are you waiting for? Go and download it and tell me what you think.