CODING WITH CUTLERY

It's dangeresque.

Starting Over

| Comments

Considering I’ve decided to change directions in my career from doing mainly .NET and legacy C++ application development to web and mobile development with Rails, JavaScript and soon Objective-C (iOS) and Java (Android), I figured it’s time to start a little interwebs place where I can explore these topics in great big detail.

I was recently introduced to Octopress by some of my dev buddies and I’ve decided to give it a try. I love the idea of static site generation. Already I feel more excited about blogging than during any of my previous attempts. Besides, there’s plenty to blog about in the web world, so let’s hope I’ll get with it.

To motivate myself, I’ve written a small program. With this one-liner, I’ve discovered a proven technique to secure a successful blogging future:

This Works–Try It! - blag.rb
1
puts "Blog!" unless lazy or busy

My good friend irb gives the following output:

1
2
3
4
5
ruby-1.9.2-p290 :001 > puts "Blag!" unless lazy
NameError: undefined local variable or method `lazy' for main:Object
        from (irb):1
        from /Users/facto/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
ruby-1.9.2-p290 :002 >

I simply have no excuse. You see, in Ruby, such nonsense as ‘lazy’ and ‘busy’ passes no muster. 1


  1. Please don’t notify me that the reason I’m getting this error is because I haven’t defined the variables ‘lazy’ or ‘busy’. I have very little time as it is.

Comments