July has been a month dense of learning and (re)discoveries! First of all Rails 4, which I come to love back in the day, when I was working with my friends on the first prototype of Kunerango
Objective-C and iOS Development
Guess what? CoreData doesn’t make your life easy when you’re seriously working with test, http://stackoverflow.com/questions/1876568/ocmock-with-core-data-dynamic-properties-problem. I like the protocol approach, even if it adds a some “boilerplate code” to maintain.
Ruby on Rails
Nice and clear guide to testing with RSpec on Rails http://everydayrails.com/2012/03/12/testing-series-rspec-setup.html
Binstubs, because the less we type, the better! http://blog.barbershoplabs.com/blog/2013/03/01/upgrading-to-rails-40-binstubs, http://mislav.uniqpath.com/2013/01/understanding-binstubs/, http://robots.thoughtbot.com/post/15346721484/use-bundlers-binstubs
The haml-rails gem integrates with the template generators, out of the box!
How cool are named routes?
post 'items/move_down/:id' => 'items#move_down', as: :move_down ), look at the routes.rb comments to know more about them.
Amazon AWS S3 gem http://amazon.rubyforge.org
I found a nice gem to add enumeration type to the ActiveRecord models: active_enum, but is it compatible with Rails 4? Here’s a link on how to use it http://qubitlogs.com/Rails/2013/02/01/creating-pre-defined-set-of-attributes-mapping-integers-to-strings-in-rails/#.UdWbpT6DQ_U
I wrote some scripts to speed up some of my daily task at work, and used some nice gems in the meantime:
nokogiri, to parse HTML using CSS selectors
rest-client, fetching pages from the web with one line of code
json, to parse JSON
diffy, comparing strings has never been so easy
mail, sending emails from your scripts
Fixing Postgres connection error on OS X Mountain Lion http://jaygoldman.com/2012/11/fixing-postgres-connection-errors-on-mountain-lion/ (funny because with Node there were no problems)
Software Engineering Good Practices
Coupled dependencies, I found one of those monsters in a colleague’s code. It took a lot of self-control to avoid being a prick and pointing it out on GitHub.