17 private links
Corinna is metamodern.
package Foo {
use Moo;
has a => (is => "ro");
has b => (is => "ro");
}
my $bar = Foo->new(a => 42);
# Print only 'a'
say $_ for keys %{ $bar }
# Print all attributes
say $_ for keys( %{
'Moo'->_constructor_maker_for('Foo')->all_attribute_specs
});
Three weird tricks to make your object-oriented codemore encapsulated, more reusable, and more maintainable.
an overview of Type::Tiny
Aggregation is a very small JavaScript library for Node.js environments, providing just a single function, for use in ECMAScript 5/6 class inheritance based on mixins. It aggregates a base class and one or more mixin classes into an aggregate class, which then is usually subsequently used as the base class for another class.
mics (pronounce: mix) is a library that makes multiple inheritance in Javascript a breeze. Inspired by the excellent blog post “Real” Mixins with Javascript Classes by Justin Fagnani, mics tries to build a minimal library around the concept of using class expressions (factories) as mixins. mics extends the concepts presented in the blog post by making the mixins first-class citizens that can be directly used to instantiate objects and can be mixed in with other mixins instead of just with classes.