Jay McGavren's Journal

2008-02-28

Die, die, die!!!!

Presenting ShootAction:

shootaction.png

Read more...
2008-02-27

coerce()

Wow.

Normally, Vector expects its pitch to be a floating point number, or some kind of number. Well, how powerful would it be if I could say this:

object.vector.pitch = RandomValue.new(360)

…and have RandomValue present itself as a different random number each time it’s accessed?

Turns out I can:

Read more...
2008-02-27

Wow. Git on Windows is janky and scary right now.

Wired had that article eons ago with a fictitious letter from Linus Torvalds to Bill Gates, hashing out some issues arising from a version of Windows that ran on top of Linux. I would really, really like to see that come true.

Read more...
2008-02-27

...2008, Zyps Contributors.

Zyps has a (hopefully) regular contributor! He just submitted an ExplodeAction with unit tests. (I didn’t even have to ask for ‘em.) And the Environment#<< method he came up with is so convenient (it takes any argument, then calls the appropriate accessor) that I could slap my forehead for not having thought of it myself.

Next he's gonna tackle either a new generic View, or a domain-specific language for Environment setup, wherever his interest takes him. This guy knows what he's doing, so I'll just let him at it.

Edit: Ergh, but he uses double-space characters instead of tabs for indentation. I take all that praise back. :)

Read more...
2008-02-25

rSpec cheat sheet...

Here’s a cheat sheet on rSpec with almost completely raw formatting… I’ll HTMLify it if anyone’s interested.

Read more...