It seems like the industry is all astir about mobile these days. I’m thinking of jumping into such interests.
Heard about this today. It’s like New Relic for mobile apps.
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.”
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 prompted that the version of Xcode I’m using is older, and thus needs to be updated. I tried to look for the command to uninstall it, just to ensure that the new installation (possibly via the App Store) is clean. I found this command to work for Mac OSX 10.8.3 (Mountain Lion).
sudo /Library/Developer/4.1/uninstall-devtools -mode=all
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 is explained in more details in the Customizing Your Workflow section of the Rails generator documentation. You even have the option of turning off the generation of stylesheets if preferred.
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 archive here. At least with remote pair programming you still get to have control of your computer, instead of sitting aside and watching idly. Here are some remote collaborative coding tools. These could also be useful for people wanting to remotely teach others how to code certain things.
NOTE: This post updated on 12/08/2020
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 the ‘doc’ directory, to your .yardopts file, and those files will be included in your generated documentation set. This is perfect for changelogs, readme files, and other high level documentation. After installing the Redcarpet gem, you can name these files with the ‘.md’ extension to use Markdown formatting on your documentation.
Recently a co-worker also mentioned a new programming game called NodeWar. It appears to be under development still, but could prove to be awesome.
Stephen Ball of RakeRoutes.com has a cool post on how to customize your IRB environment.
I’m not sure how one would use this, but it looks like it’s supposed to be useful.
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) do |user| user.do_something end