8/31/2005

getting started with Haskell

I’ve started working through Yet Another Haskell Tutorial to teach myself some haskell. I’m not too far into it, but it’s making sense so far—none of the mind-bending strangeness that I keep hearing about. Nothing that makes me want to give up Ruby either.

Here’s my version of a recursive multiplication by addition function from one of the exercises:




mult a 1 = a
mult a n = a + mult a (n -1)




8/15/2005

Not nearly a Ruby master, but I'm working on it.

One of the things of been doing lately is writing about Ruby. An article of mine was released on IBM’s DeveloperWorks site last week (yay!), and just got linked from OS News (http://www.osnews.com/story.php?news_id=11574) which is pretty awesome too.

8/05/2005

more ruby

today, i needed a class for handling IP addresses for hosts and the IPAddr class from the standard library didn’t quite do everything I needed, so I ended up writing one for myself. Now, when people do data entry into my hosts database I can keep them from entering all kinds of hokey, bad data:

here’s some trimmed output from irb:




host = IP_Addr.new(‘192.168.1.0’, ‘255.255.255.0’)
RuntimeError: bad ip address, can’t use network address
host = IP_Addr.new(‘192.168.1.255’, ‘255.255.255.0’)
RuntimeError: bad ip address, can’t use broadcast address
host = IP_Addr.new(‘192.168.1.253’, ‘255.255.255.0’)
host.network
=> “192.168.1.0”
host.broadcast
=> “192.168.1.255”




now, I can count on my db not having network or broadcast addresses (or other invalid addresses that I’m checking for), and I can build dhcp and dns config files automaticly.

7/29/2005

another step, another release

The Ruby Programming Shop has been hard at work on r43, a Ruby library wrapping the 43 Things webservice. All of our hard work has really paid off. The 0.2.0 release of r43 is better designed, better tested, and easier to use.

I’d especially like to thank Sean Carley and Edward Cho who really beat the early code into shape. If anyone is interested in getting involved, we’re going to be working on r43 through the end of August. At that point, we’ll pick a new library to work on.




You can grab your own copy at the r43 page on RubyForge.

7/20/2005

Quick update

Well, it's been too long since I've posted, but I thought I should break my silence for this.

My daughter just got accepted into BYU's concurrent enrollment program. She'll attend Fall and Winter terms under this status, then will be able to start as a true freshman in the Spring. Not bad for a 15 year old.

Mom and dad are both doing fine.

7/09/2005

Tag Clouds

Folksonomies are an interesting idea. Here's a fun take on it:



A tagcloud based on some of my favorite Ruby blogs. It'll be interesting to see where this goes.

6/16/2005

Ajax on Rails

Ajax on Rails
Ajax on Rails,
originally uploaded by chrisglass.
A great visual pun about two cool web development technologies.

(Thanks to Tim Germer for the pointer.)

6/14/2005

Ruby Brigades just rock!

Tim Germer just made a post on his blog about the June pdx.rb meeting. From his tone, it sounds like it was his first meeting, but I think he’s hooked:

It was great to be surrounded by such smart people – there was easily over a dozen people in attendance. The experience was like grabbing a really challenging book off the library shelf and diving in; ambitious to learn new words, etc.


When’s your next Ruby Brigade meeting? I’ll be going to one in Utah next week.

6/07/2005

Today's article

Tim O’Reilly wrote about a TestFest in June (I wish I could be there, it looks like it’ll be fun).

6/06/2005

Feeling the pain of not unit testing

Ten minutes without a test is a great article about the pain that ignoring tests brings. Whether you’re writing code test first, or just doing unit testing, this is well worth the read.

5/26/2005

New Rails beta-Book

Dave Thomas and DHH have released the beta-version of their book Agile Web Development with Rails. I need to grab this book, both to learn more about Rails and to support a great idea.

5/25/2005

Moving

Okay, the big news (and my major time sink right now) is that my family and I are moving. After 3+ great years in the Pacific Northwest, we're headed back to Utah. I've taken a job with the Family History organization of the LDS Church.

We've lived in a lot of places (in New England, the MidWest, the Intermountain West, and the Pacific Northwest), and have good memories about all of them, but the time is right for our family to head back to the Wasatch Front. We'll be down there in the latter half of June.

5/24/2005

Fragility of Judgement

I love this term, which I just saw at radar.oreilly.com. Tim O'Reilly blogged about Malcolm Gladwell's talk at an IT conference.

In his overview, Tim points out how much our judgement is swayed by non-essentials -- for example, an increase from 5% to 50% in hiring female musicians when using visual screens and the poor record of ER doctors in diagnosing heart attacks because they tend to focus on predictive factors rather than symptomatic diagnosis.

My question then is what kinds of extraneous factors blur our judgements?

test first with Ruby

I wrote a tutorial about coding test first for ibm. Hopefully, it’ll help more people start writing code this way.


Update: By the way, I did a lot of the organizational/background work of this using BackPack, which I'm still really enjoying. I'll need to get a bigger review up later, but something a bit more urgent is taking up my time at the moment.

5/20/2005

New Google Home Page

It's not a new idea, but it is done pretty well. You can get see your google home page (at least if you're already 'cookified' by google. I'm pretty happy with my first 30 minutes of use. We'll see if I stay happy.

My only nit is that the gmail preview shows the senders for each email instead of the subject.

5/17/2005

I want to read 'Higher-Order Perl'

but not enough to buy a copy. MJD is putting it online though, so I’ll have to read it that way. I really don’t care that much about Perl, but I think I can translate the concepts over to Ruby.

On the other hand, maybe just learning haskell or scheme would be enough.

5/05/2005

more Ruby Brigades

It looks like there are two more Ruby Brigades meeting soon. Columbus.rb and the Phoeniz.rb (though this one seems to have been around for a while). It’s good to see the growing number of Ruby Brigades.

I’m hoping the next step is to have more regional cooperation—like the Seattle.rb, pdx.rb, and Vancouver group’s upcoming code fest.

5/03/2005

Backpacking it!

/
I got a golden ticket to to try out backpack this weekend, and I’ve been loving it. It’s a great way to organize a lot of the little stuff that’s floating around in/on my head, my calendar, a bunch of post-it notes scattered everywhere, and emails in my inbox.

I think this will be a great addition to basecamp, and tada lists. Together, I think they might even be able to bring order to my disordered life.

4/28/2005

Exciting Ruby Stuff

In the last week, I’ve seen a new group pop up in Omaha, NE and Tulsa, OK. The Omaha.rb will be meeting on Monday, May 2nd from 7-9PM (directions on their web page). I don’t know when the Tulsa.rb will meet, but hopefully it’ll be soon.

By the way, the Utah Ruby Users Group is set to start meeting on the third Wednesday of the month (May 25th). The Seattle.rb is meeting tonight. Wow! That’s a lot of Rubyists.

4/24/2005

Home Teaching Survey

Home Teaching in our ward is pretty bad, getting to 40% of the families assigned to the elders quorum is looked at as an achievement. To help understand the problem a little more deeply, we passed around an anonymous survey in Primary, YM, YW, and RS. I knew it wasn't terribly scientific, the sample was poorly chosen among other things, but I thought we could use the data anyway.

I worried that even though this was anonymous, people wouldn't respond honestly. The first several forms I got back all said (essentially) 'All is well, no problem here.', and I thought my fears were confirmed. Gradually, I started to see some of the concerns that I knew were lurking. Here are the results.

I asked six questions:

('Yes' or 'No')
Do you know who your home teachers are? 70% did
Do they visit as often as you'd like? 50% did

(sliding scale)
Do they present an appropriate message? 68% positive
Are you comfortable asking them for service? 65% positive
Would you be comfortable asking them for a blessing? 64% positive
Do they help you to strengthen your family? 56% positive

(Comments)
How could they help you to strengthen your family? I got a lot of answers to this one. Here are a few:


Personally, I see no value in home teaching. I sit there while he talks to my husband, wishing I could be somewhere else. . . . Rather than share what he wants to share, think about us and focus on us, then prepare an appropriate message for us.


He strengthens us each time he comes because he really does care and calls us often


To help, they should actually come!


Have lessons for young children so they'll sit and listen.


Instead of asking if there's anything they can do, be more specific. For example: "Can we help you with your garage sale next week?" Take initiative: "I know you've been sick so we brought you a lasanga."


Know my children and take an interest in their lives


Come!


I haven't got a husband, or parents, or children, so I need home teachers



If the active, easy to visit families feel this way, I think we've got a long way to go to straighten out home teaching. How is it going in your ward? What are you doing well? Where do you need to improve?