fREWdiculous!
21 Jun
Today was the first day (for me) of YAPC::NA. It was pretty cool! A coworker and I convinced our work to pay for us to go to YAPC and go to the Moose Masterclass. The class was very good. I thought that the slides were very complete and that the exercises were great for a professional conference. Basically he would present a major section of Moose (there were 4 or 5 I think) and then he would tell us to get going on the Classes for that given library. We would get instructions from comments in the base unit test file and then we would just run the unit tests to see if we were doing the right thing. There were some discrepancies between the comments in the tests and the tests themselves, but I’d say that’s pretty standard for comments. Anyway, the slides were all just webpages and the rest was of course just perl code. So check it out here!
I actually found the most intriguing part of the talk to be MooseX::Types. Unfortunately that is not included in the slides linked about as it was done by Jonathon Rockway. I can’t yet find slides for it. But the important thing is that Types are awesome with Moose. It’s fairly trivial to write new types. He wrote a type for Social Security Numbers and then showed us how to use it and how to make a thing that would automatically coerce integers into the SSN type. Very cool stuff! I am very excited for when I get to use that in the future.
Another thing that must be mentioned. There is always someone in a talk who wants to be heard more than the presenter. Or maybe they just act that way. I don’t know. But we had one of those in our talk. There was a point at which our presenter was showing how to have a singleton as an attribute to a class and apparently this guy zoned out when he was showing it. Furthermore he didn’t notice that the code
1 2 3 4 5 6 7 8 9 10 | package Person; use Moose; my $highlander_bank = Bank->new( name => 'Spire FCU' ); has bank => ( is => 'rw', default => sub { $highlander_bank }, ); |
had the word highlander in it. Anyway, he tried to correct the presenter about this and before the presenter got a chance to respond MST yelled at the dude and said, “THERE CAN ONLY BE ONE! THAT’S WHY IT’S CALLED A HIGHLANDER!” It was hilarious.
So yeah, that’s day minus-one for YAPC. I will write about everything I go to so that you can be ok with the fact that you are stuck at work or whatever
6 Responses for "YAPC::NA – Day -1: Moose"
Glad to hear the class went well.
The final version of the class, when completed, will have a section on types (and MX::Types will be included).
I was too sick and tired to finish that part before Sunday, but fortunately Jon was able to step in and take care of that part.
Also, I think Shawn caught the bugs in the test comments, so those will be fixed for next time.
Thanks for your kind words. Most of the work was done by Dave, I was just there to vocalize the slides.
I’m so annoyed with that guy in the second row, that as a community service I’m going to publicly state his identity. His name is Todd Rinaldo.
I’m also going to take this opportunity to address him here.
Todd Rinaldo:
I’m not entirely sure why you felt you were entitled to a personal one-on-one coaching session with the speaker. Perhaps you failed to notice the dozens of other people in the lecture hall? You repeatedly disturbed the class with your incessant remedial and quite easily self-answerable questions. Your monopolization of the speaker was highly inconsiderate and extremely irritating. Who knows how much more or how much deeper material the speaker might have been able to cover without having to be interrupted by you constantly. Your profound lack of etiquette caused many attendees a great deal of frustration.
Here is some advice for the future:
1. Be considerate.
2. Don’t ask questions that you can easily find the answer to yourself.
3. Come to class prepared.
4. Don’t monopolize the speaker.
Todd Rinaldo’s YAPC page can be found at: http://yapc10.org/yn2009/user/1699
Enraged:
I’m a little agitated that you’d call someone else out and post their information while hiding your own. Did you bother to ask any questions or just sit and pout while Todd and everyone else learned?
Also, kudos to the class instructors. I’m also glad to hear that things went well. Moose ftw!
Yeah, come on Enraged. That’s a little much. Yes, his questions were non-ideal, but the kind of screed you posted up there just is not warranted.
Leave a reply