Q

Code Review: Weary

Let me start with the fact that I’m not picking on Weary. Mark Wunsch, the author of Weary, emailed me just over a month ago and asked if I could take a look at the code and provide any tips or pointers. I haven’t performed a code review for someone that I don’t know, but I thought what the heck.

Custom Chef Recipes with Engine Yard Cloud

One of the power user features of Engine Yard Cloud is the ability to use custom Chef recipes to install or configure anything that can run on Gentoo Linux that we have not already automated as part of the platform. This allows for extensive customizations of your environments and empowers you to run virtually all custom software you might need.

Let’s start by talking about one of the tools you’ll want to strongly consider using as part of the Chef process: Redis.

Code Review: Weary

In which I provide critique on Mark Wunsh’s new gem Weary.

Let me start with the fact that I’m not picking on Weary. Mark Wunsch, the author of Weary, emailed me just over a month ago and asked if I could take a look at the code and provide any tips or pointers. I haven’t performed a code review for someone that I don’t know, but I thought what the heck.

Ruby each_cons

As methods go, each cons is pretty mysterious. I’m not even sure exactly what you would use it for. However, in the interest of science, here is a brief discussion.

UPDATE
Gregory Brown, who wrote the Prawn PDF library, suggests that:

“In general each_cons is useful when you need a sliding window of size n across a dataset.”

/update

Wrapping Up Repetition with GiftWrap

NOTE: My thanks go out to the guys at RailsConf who attended my “Birds of a Feather” talk about DRYing up views using wrapper helper classes. They gave me the idea to abstract my ideas one level further into its own class and now we have GiftWrap — I hope you guys can make good use of it!

Just get GiftWrap now!

Syndicate content