James Edward Gray II

The Why and How of Iterators


~6 years ago by James Edward Gray II on Shades of Gray.
A friend of mine has been asking some general questions about iterators in some private emails we have traded. I wanted to put some of my answers here...

Ruby Idioms Bundle for TextMate


~6 years ago by James Edward Gray II on Shades of Gray.
Update: An improved version of Ruby Idioms has been merged into the Ruby bundle in the latest versions of TextMate. Everyone gets Ruby Idioms with TextMate...

Phoned In Testing Post


~6 years ago by James Edward Gray II on Shades of Gray.
I recently decided to do a post on unit testing. A week of free-time later it is done, lengthy, and my blog won't accept it. The irony. You'll have to...

Do I Need (These Parentheses()?)


almost 6 years ago by James Edward Gray II on Shades of Gray.
If you came to Ruby via the Learn to Program book or just don't yet have a consistent set of rules for when you do and don't need parentheses in Ruby code...

The Books are Wrong About Logger


almost 6 years ago by James Edward Gray II on Shades of Gray.
I've read several books that introduced the standard Logger library and they all agree on one thing: you can't customize the output. That's so last version...

String Has Other Methods Besides =~ and sub()


almost 6 years ago by James Edward Gray II on Shades of Gray.
Ask anyone who knows me and they will tell you I'm a huge fan of regular expressions. I use them all the time and my FasterCSV library is a regular expression...

YARV Looking Promising, James's C is Not


almost 6 years ago by James Edward Gray II on Shades of Gray.
I participated in the ICFP programming contest last weekend with a group of friends. We had a great time with the event and learned a ton. I thought I...

PStore Meets YAML


almost 6 years ago by James Edward Gray II on Shades of Gray.
I love the PStore standard library. It's a very graceful interface to get some fairly robust serialized mini-database handling in just a few lines. With...

RegexpChallenge


almost 6 years ago by James Edward Gray II on Shades of Gray.
Just recently I have been working with two different people to improve their regular expression skills. To help me in this endeavor, I built a trivial...

I Just Want One Character!


over 5 years ago by James Edward Gray II on Shades of Gray. [Linked from: Ruby Inside]
Every so often a person asks the question on Ruby Talk, "How can I get just one character from the keyboard (without needing the user to hit return)?" ...