More about Pigs


The reaction to the 3 Pigs was awesome - Yanic from Belgium put a lot of work into his thorough rework of the problem. Check it out here. I realize he's selling a product, but regardless, I really enjoyed his comments.


I agree with most of the feedback I received, although the spirit of the models was more conceptual'ish than design'ish, which tends to accommodate looser implementation precision.


The one choice I regret the most is sending the "eat()" message to each of the first two Pigs, which is actually telling the Pig to eat. To correct this, either the message to Pig is "getEaten()" or the message eat(Pig) is sent recursively to the Wolf (as Don suggested.)

Nevertheless, I'm really digging the idea of modeling a well known story as a means to hone my UML skills. Maybe I'll tackle Aesop next...

The Three Little Pigs - in UML

I like modeling. Not the kind Tyra does, although I do like it when Tyra does it, it's just not something that I do, not that I'd be any good at it anyway...

Sorry, got off track. Anyway, I like to build models that express information in an organized and precise way. The notation I use doesn't really matter much, as long as it's easily understood by the reader. I have used a lot of notations in my career. I still have that green plastic IBM flow chart template that my Dad gave me years ago (I wonder what that would fetch on eBay?); I suffered through the CASE tool years (thanks James Martin); and I used notation from OMT, Booch, and OOSE before becoming an early adopter of UML starting with version 0.9 in 1996. UML has stuck with me through the years, and it has become a casual and efficient way to take notes and express things.

Earlier this week I was talking with a coworker about models and modeling, and I proposed an idea: What would a children's story look like if expressed in UML? I took this to task that night and produced The Three Little Pigs, in UML. Check it out and let me know what you think. The PDF document can be downloaded here. (It's set up to print it double sided on legal sized paper.)

A Greener Work Week

Green this, green that...it's the buzz these days. So let's get real, how about a greener work week? During the first dozen years of my working life, I had the benefit of working for a forwarding thinking company that had a 4-day work week, or as we like to refer to it: 3-day weekends. If the majority of companies were to adopt the 4-day work week, the impact to the environment and the economy is staggering.

For illustration, let's say ACME employs 10,000 employees at it's various offices. Each employee commutes an average of 15 miles each way and drives a car which gets an average of 20 mpg. Based on $4/gallon, the savings is $300 per employee per year, and $3,000,000 for the company's entire workforce. I realize that employees may choose to drive on their day off, which offsets the savings, however, that expense becomes a choice rather than a necessity. Scaling up that idea, if 100 Million people (or less than 1/3 of the U.S. Population) eliminated one commute per week, the combined reduction is 150 million gallons of gas per week! That equals a $32 Billion reduction in gas consumption per year. Imagine what that could do to the supply/demand curve that causes the price of gas! Imagine the reduction in emissions, traffic congestion, accidents, injuries, commuting angst, yada, yada...

So back to the 4-day work week. If you're concerned that it makes slackers out of us, consider this: Companies that adopt a 4-day work week gain a week and a half of work days per employee each year. How? Employees work 40 hours every week, including holiday weeks. So if Friday is your normal day off and there's a holiday on Monday, you would be off on the holiday but would work Friday that week. Employees tend not to complain on those weeks because they get to enjoy a 3-day weekend every week of the year. Thuse, company gains 8 working days per year from every employee.

Additionally, those companies that put all employees on the same 4-day work week can reduce power consumption and costs by shifting to a weekend HVAC profile on one additional day each week. For companies that must have employees present 5 days a week, rotating the extra day off can reduce the need for parking and office space if managed smartly.