Coding Thru the Eyes of Ruby

Use Ruby to Develop iOS or Mac OSX

I haven’t evaluated this yet, but another developer at my local Ruby meetup group said that this has been used in production and fairs pretty well.

“RubyMotion is a revolutionary toolchain that lets you quickly develop and test native iOS and OS X applications for iPhone, iPad and Mac, all using the awesome Ruby language you know and love.”

logotype-icon

Uninstalling Command Line Tools for Xcode

I ran into a problem trying to install Ruby 2.0.0 via RVM over the weekend. When I got to work the next day and needed to do work using Ruby 1.8.7, I ran into issues. This led to updating RVM using ‘rvm get stable’, and then trying to reinstall Ruby 1.8.7. I was then promptedContinue Reading

Setting Rspec as the Default

When setting up a new Rails application you’ll likely want to make Rspec the default test framework for new models that are generated with scaffolding. This is usually handled by default by the Rspec gem after you install it. It’s possible to explicitly set this however, as well as other configurations for generators. This isContinue Reading

Remote Pair Programming

I really find pair programming to be annoying. It seems like a waste of time as compared to doing peer code review over a Git branch that has been squashed. But I really can’t knock something totally unless I’ve tried it for a while. Some people shared these resources today which I wanted to archiveContinue Reading

Languages Supported by Github Flavored Markdown

I’m currently configuring the Yard documentation tool for use with Ruby/Rails projects. I could see that it’s possible to create a .yardopts file in the main directory for your Rails application, and simply add command line arguments to the file. I just discovered that you can add a list of files, likely placed under theContinue Reading

Coding Games

A few weeks ago I heard about this FightCode website that lets you program robots that compete against other coders who code their own robots. It uses Javascript, so it should be accessible to many web developers. They even have a Facebook page you can like.   Recently a co-worker also mentioned a new programmingContinue Reading

Customize your IRB

Stephen Ball of RakeRoutes.com has a cool post on how to customize your IRB environment. Customize your IRBContinue Reading

htaccess tester

I’m not sure how one would use this, but it looks like it’s supposed to be useful. http://htaccess.madewithlove.be/Continue Reading

Using Find Each to Process Batches

I just found out that there is a find_each method provided by ActiveRecord which loops through an array of models that are retrieved in batches of 1000 at a time. The find is performed by find_in_batches with a batch size of 1000 (or as specified by the :batch_size option). User.find_each(:start => 2000, :batch_size => 5000)Continue Reading

Development Time

It seems common that development tasks or projects take much more time than expected. My manager recently pointed these out to me: The 90/90 Rule - ”The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent ofContinue Reading