May 01 2008

“I’m feeling much better now”

dastels @ 4:46 pm

I thought I should let everyone know that, although things will never be”back to normal”, I’m feeling great.

I’ve been back to work for almost 2 weeks. The diabetes is under control and my blood glucose level is where they should be. Getting used to the new routine of finger pricks and injections hasn’t been an issue, which was a very pleasant surprise. Dietary changes weren’t overly onerous… just the portion management being the biggest change.So, all in all, things are going well. I’ve even started learning Mac/iPhone development and Spanish.

Dave

Tags: 

Apr 16 2008

Don’t Waste It

dastels @ 2:56 pm

I came close to death last week. Such a thing gives one pause to think…

Life is too fragile to waste on bland food, bad music, cheap wine, weak coffee, unpleasant women, undue rushing about, and poorly written software.

… I’m just sayin’, is all.

Carpe Diem

Tags: 

Mar 26 2008

I’m starting to hate Vegetarians

dastels @ 6:39 pm

I was reading a food related email thread in gmail and it suggested this link.  I was intrigued so I checked it out.  It just got me mad.  And so I blog.

How totally lame… look at the poor cute piggy… gimme a break.  That tactic doesn’t open my wallet for poor 3rd world kids… and it isn’t going to close my wallet at the butcher section.

I was a vegetarian for close to 14 years… almost 14 years of no meat.  A good chunk of that with no eggs or cheese.  You know all I have to say about that? (listen up because I don’t say this lightly) I WAS WRONG.

My culinary world is simply exploding these days… I’m discovering a lot that I’ve been missing in the wide world of food.  I think Anthony Bourdain sums it up nicely: 

“If it’s slower than me, dumber than me, and tastes reasonably good… pass the salt!”

 

In response to Peta, I offer you this link: The Bacon Show

Go forth and enjoy that smokey, salty, piggy goodness.

Now, don’t get me wrong.. I have nothing against folks that abstain from meat (or just pigs) for religious or cultural reasons.  Personally, I don’t understand the idea of putting meat in Indian food.  There are plenty of examples of simply excellent indigenous vegetarian cuisines.It’s the peta style vegetarians that I have issues with.

Hmm.. I’m hungry now… a sandwich would be good… I think I have some ham in the fridge.  Yum! 

Tags: 

Mar 20 2008

In Memory of Arthur C. Clarke

dastels @ 9:04 am

Arthur C. Clarke passed away yesterday in Sri Lanka.  He is one of a handful of authors I remember vividly and fondly from my childhood & teen years of reading one scifi novel after another. See An appreciation of Arthur C. Clarke on the Official Google Blog.

Tags: No Tags

Jan 27 2008

Source from TDD: A Practical Guide

dastels @ 1:27 pm

Several people have asked me for the source from my last book “TDD: A Practical Guide”. A lot has happened since that book, and the files from it that were once posted on the Saorsa & Adaption sites were lost. Unfortunately I’ve had to tell people that the source was now longer in existence.

Well, today I was doing some routine housekeeping and… Huzah!!! I found a zip of those very source files. For anyone who has been looking for them… I’m pleased to say that I’m making them available at long last. You can download it here

Tags: 

Jan 15 2008

RSpec + JRuby

dastels @ 10:17 pm

My coworker, Paul Zabelin, posted here on some ideas that we’ve been experimenting with using RSpec stories and JRuby.

Tags: 

Jan 15 2008

New and Improved: RSpec 1.1.2

dastels @ 3:48 am

Tonight RSpec-1.1.2 was released. See most of the details on David Chelimsky’s blog.

I take a personal interest in this release as it includes my first active submission to the codebase in some time.

The functionality I added relates to the definition of steps in the new story component. Up until now, you used a string to define a step. For example:

Given "a student named '$name'" do |name|
  #...
end

When "the student is given a grade of $grade" do |grade|
  #...
end

Then "the student should $pass_fail" do |pass_fail|
  #...
end

This would result in stories like the following:

Given a student named 'Mike'
When the student is given a grade of 40
Then the student should fail

Continually talking about “the student” is grating and very un-natural sounding. Sounds downright, bloody legalistic, actually. And a lawyer is the last thing we want to be accused of sounding like… other than maybe Denny Crane.

One approach to this would be to go to something like:

When "he is given a grade of $grade" do |grade|
  #...
end

Then "he should $pass_fail" do |pass_fail|
  #...
end

which would give us:

Given a student named "Mike"
When he is given a grade of 40
Then he should fail

Now, speaking of lawyers, we probably want to make this a little more PC and be able to do this:

Given a student named "Michelle"
When she is given a grade of 60
Then she should pass

We could conceivable create another set of steps for the feminine forms, refactoring to remove the duplication. That might suffice in the simple case, but it’s still rather crude. I’d like to be able to use a regular expression and create steps something like:

When /(he|she) is given a grade of (.*?)/ do |pronoun, grade|
  #...
end

Then /(he|she) should (.*?)/ do |pronoun, pass_fail|
  #...
end

With release 1.1.2, that’s exactly what you can do.

There are a couple things to point out:

  1. Alternatives need to be in a group to limit their scope.
  2. Whatever matches groups such as that (and any others) will be sent into the supplied block as arguments. As such they need to be accommodated by having a block parameter for each of them.
  3. Since this is already a regexp, no internal processing is done to it. With string step names, variables (of the form $<identifier>) are rewritten as (.*?). When using a regexp as the step name where there are variables, we much do this rewriting ourselves.

This new feature provides a new level of flexibility in defining story steps. Have fun with it.

Tags: 

Nov 05 2007

RubyConf 2007

dastels @ 8:04 am

I’m sitting in the airport in Charlotte, on my way home from RubyConf2007.

What a fabulous conference. This the most enjoyable conference I’ve been to in a very long time.

There was so many great talks/ideas/projects, it’s hard to pick highpoints, but these stand out for me (in no particular order):

  • drnic for some very cool tech and sheer entertainment value.
  • Laurent Sansonetti for a jaw-dropping talk/demo about what’s possible with the latest Ruby love from Apple.
  • Charlie & Tom on JRuby
  • Evan on Rubinius… that is one cool project… sign me up
  • and, of course, Matz’s keynote

It’s no wonder the Ruby community is “nice people” when we have someone like Matz at the head of it.

Maybe as rewarding, or even more, than the tech & talks was seeing old friends again and meeting others face to face that to date I’d only known online.

It was an awesome weekend, and I’m eagerly looking forward to the next Ruby conference!

Tags: 

Sep 21 2007

Emacs once again

dastels @ 9:02 pm

With my move to Google, I’ll be in a mixed Linux/OSX environment… so it makes sense to me to revisit emacs for my day-to-day programming. 

With some help from zenspider and technomancy, I have the latest carbonized emacs up & running with a nice ruby/rails environment (rinari)… and of course… the zenburn color scheme.

Tags: 

Sep 19 2007

Everyone’s a pirate

dastels @ 5:23 pm

Seen on #caboose:

courtenay: we uses arrrrrrrspec

Tags: 

Next Page »