Tag Archives: Ruby

A Rubyist’s Impressions of Common Lisp

It has been nearly 6 months since I dove into Common Lisp. I have been studying and/or using Common Lisp almost every day, working on Ambienome and related code. So, I wanted to take some time to document my observations, feelings, and impressions of Common Lisp at this time. Be advised that this is a [...]

Posted in Lisp, Ruby | Also tagged | 24 Comments

Snippet: Range#compare

Here’s a little idea that popped into my head for enhancing the Range class in Ruby: 1 2 3 4 5 6 7 8 9 10 11 class Range def compare( value ) if member?( value ) 0 elsif value <= self.begin -1 elsif value >= self.end 1 end end end Then you can perform [...]

Posted in Ruby, Snippets | Also tagged , , | Leave a comment

Testing the Git Waters

Apparently, Git is the new hotness, and Github is liquid hotness concentrate, with pulp. Or, so I hear. Rails monkeys seem to like it, anyway. ;) You can blame Piotr for bringing it to my attention, and then radiant-comments for giving me an excuse to dip my foot in. I did some browsing online, and [...]

Posted in Projects, Ruby | Also tagged , , , | Leave a comment

RDoc C parser needs improvement

I don’t think I’ve mentioned here how frustrating RDoc’s C parser can be. It’s almost up there with SDL_mixer on the headache-o-meter, I swear. I’ll admit, the idea of automatically generating documentation from the code structure and comments in the source code is neat. And RDoc does a pretty good job of figuring out the [...]

Posted in Ruby | Also tagged , , , | Leave a comment

Emacs: ruby-electric-return

I’ve made a patch to improve the ruby-electric-mode for Emacs. If you use Emacs to edit Ruby code, please try it out and tell me what you think! I’ve created a patch to the ruby-electric-mode for Emacs, which makes pressing return after certain keywords automatically insert an “end” statement, just like pressing space does. So, [...]

Posted in Ruby | Also tagged | Leave a comment

Rant: BetterNestedSet (than a nail in your skull)

I’ve been tinkering around with ApeDoctor, my to-be API documentation application running on Rails. The core class of ApeDoctor is the Amodule, a representation of a Ruby module/class. (It’s Amodule because the class name Module was taken, of course!) And since Ruby modules can have other modules or classes under them, I had a hierarchy/tree/nested [...]

Posted in Projects, Ruby | Also tagged , , | Leave a comment

Looking at Rails

I picked up “Agile Web Development with Rails” yesterday. Despite using ruby for over 3 years, I have not up until this point put any concentrated effort into learning and using Rails. I’ve been running (or rolling, as it were) through the tutorial, an online bookstore app. By and large, the impression I have so [...]

Posted in Personal, Projects, Ruby | Also tagged , | Leave a comment

Picking apart Rubygems and Rake

I’m prepping for the 2.0.1 release of rubygame, which includes a number of bug fixes and improvements under the hood, especially in the way method arguments are processed in C methods. All the code is ready and waiting to be packaged up, but I’m tinkering with the Rakefile to make it play well with Rubygems, [...]

Posted in Uncategorized | Also tagged , , | Leave a comment

Ramble: Curves Roadblock

I’ve been pounding my head against the wall over these Bézier curves for the past couple days. For a change of pace, I’m going to pound my head against this blog instead, and hope that something useful falls out. The overall challenge is to preserve the apparent position of an object (i.e. the character) along [...]

Posted in Misc, Projects | Also tagged , , , | Leave a comment

Bézier Curve Test

Her’s a screenshot from the test application for the work with cubic Bézier curves I’ve been doing lately. Click the image at right to view the full picture.

Posted in Projects | Also tagged , , | Leave a comment