Or any other programming language. Do you ever wish that you could memorize an entire programming language and all of the libraries and APIs that you use constantly? Want to become as fluent in the technical concepts and jargon as you are in your native language? Well I can’t give you that but I can … Continue reading Using Anki to Learn Ruby
Do you have a Rails app that has gotten so big it is getting hard to know what is going on? When you have a new Rails app it is easy to tell what the app does by looking at the files in the models folder, but as the app gets bigger you often lose … Continue reading An alternative to organizing large Rails projects with Namespacing
Update: User MelissaLiberty from Reddit pointed out how they would improve the form object and some of it faults. The form object has been updated to reflect their excellent points. Often, when we start a new Rails app we start with simple controllers, and we start by generating everything with scaffolding. There is nothing wrong … Continue reading Creating multiple models with form objects in Rails.
So you’ve inherited an app. It is pretty well tested and doesn’t throw too many errors but the app is big enough that it is hard to tell what is going on most of the time. The original developers are long gone and you need to build new, mission critical features into the app but … Continue reading Killing dead Rails controllers
TLDR: Yes for apps. No Yes for Gems. Do you use version control to keep track of changes to your code base? Or do you think version control is for the cowardly and just change files in a shared team folder and hope no one else is changing it at the same time? Of course … Continue reading Should you add Gemfile.lock to Git?
So you want to know fast your Rails app is going? If you just want to see how fast a bit of code is you can use the Benchmark module which is part of the Ruby Standard Library. If you want to compare two or more bits of Ruby code that do the same thing … Continue reading Rails Benchmarking
Aging Rails apps can become a bit of a mess. Fortunately we can fix this bit by bit. Today we will look at some rules for writing a clean, readable Gemfile. 1. The gems should be split into groups. (Test, Development, etc.) Any Gemfiles that look like this can get messy as they get longer: … Continue reading Cleaning up a messy Gemfile
So, Ruby is well know for its hugely popular gem Rails which greatly simplifies building websites. But what are some other programs built in Ruby? Here are a few very popular examples. RubyMotion – Develop native apps for iOS (both iPhone and iPad) and OS X in Ruby. It is based on MacRuby which was … Continue reading Ruby off Rails
I created a gem called tiedye and I wanted to explain a bit of my reasoning behind why I named it that. So, lets talk about naming. Why call this gem tiedye? How do I decide to name Ruby gems in the first place? First, there are a few community conventions on how to name … Continue reading Naming Ruby Gems