Archive for the 'Site News' Category

Moose::Role Testing

Saturday, September 22nd, 2007

Currently there is on simple way to test Moose::Roles. Since they defer things like attribute adding and method wrapping you have to create a dummy class that uses them to test what they do. Usually this is through creating a package inline in the test module that does what you need or don’t need based on what your testing. Therefore I’m considering either adding Role support to Test::Moose or creating a Test::Moose::MockObject module to make this easier. Still trying to decide which way to go. Maybe I’ll go both ways :-)

Learning Erlang

Monday, September 17th, 2007

I’ve taken on the task of learning erlang. I was trying to decide between learninng Haskell, OCaml, or Erlang. OCaml, I decided against since it had too close a similarity to C and I wanted to really stretch myself. Haskell and Erlang both fit that bill however I found the Erlang Documentation to be far better for someone completely new to the functional programming world. Haskell’s idea of a tutorial tried to cover too many concepts at once and took too long to get to the hands on stuff. Also erlang offered the opportunity to learn Distributed programming concepts along the way so erlang it was.

You can see my first erlang project etap here.

Data::Annotated and Class::Data::Annotated

Monday, August 27th, 2007

So I’ve added two new modules to my CPAN repertoire. Data::Annotated and Class::Data::Annotated.

Data::Annotated is a module intended to hold an annotation about a piece of a data structure independently of the Data::Structure itself. The annotation can be anything a hash an array or a scalar value. The piece of the data structure is referenced by a Data::Path.

Class::Data::Annotated wraps a perl data structure and an associated set of annotations together in one place.

I’ve also added to Data::Path’s functionality so that it can annotate object methods and coderefs stored in a data structure. Once I’ve ironed out details with the original author I’ll hopefully be uploading that. Anyway feel free to check them out:
My CPAN Libraries