Some things I learned in July

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

http://rentzsch.github.io/mogenerator/

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.

nomad a set of useful tools to automate the every-day development. Another gift from mister Mattt.

Ruby on Rails

Rails 4 finally out! http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/

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-binstubshttp://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

Ruby

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

Coding Recipes

http://codeartists.com/post/36892733572/how-to-directly-upload-files-to-amazon-s3-from-your

http://quickleft.com/blog/keeping-your-json-response-lean-in-rails

Several ways to run a command line command from a Ruby script.

Sysadmin

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)

Javascript

I looked into a bunch of Javasciprt techs: Underscore.jsJadeHandlebarsStylusExpress

Tools

http://imageoptim.com/

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.

Interesting readings

How Basecamp Next got to be so damn fast without using much client-side UI

About Gio

Mobile DevOps Engineer at Automattic / Aspiring writer. Author of Test-Driven Development in Swift (Apress, 2021). When I'm not playing with my kids or working, I like reading and writing, both software and words.

Leave a comment