Jonathan Pepin

Making Ajax calls to rails

2013-05-12
For the past few weeks, I've been working on our new mobile website at Exec, so user's wihout our iPhone app can still easily book a house cleaning. For a better experience, I used knockout.js to make the booking flow...

Ask yourself "WHY"

2013-05-08
As software engineers, our relation with the tools we are building is completely different than the one the users we are building for have. Because we know what's happening behind the scene, our experience using the tools and how we...

Why San Francisco inspires me

2013-03-24
In Chicago. City on the make (http://37signals.com/svn/posts/3484-chicago-city-on-the-make), Jamie from 37signals says > I believe our Getting Real approach and REWORK perspective just would not exist without Chicago’s “real-ness” in our blood. He then asks > What do you love about your...

How I built a countdown in Javascript

2013-03-13
Today, we are expanding our house cleaning services (http://iamexec.com/race/) to 4 new cities; Los Angeles, Chicago, Boston and New York. To celebrate, we are organizing a Race for the Chore, where the city with the most house cleanings booked will get...

Why you must love ActiveRecord

2013-02-18
ActiveRecord is the database "management" tool used by Rails. To use a smart term, it's what we call "ORM", or Object-Relational Mapping. What does that mean? When you start a project, you could decide to do it in Ruby, Python,...

My Git personal journal

2013-01-17
how git works https://codewords.recurse.com/issues/two/git-from-the-inside-out # remove a file ruby $ git rm /file/path Deletes the file and removes it from the git tracking at the same time. # add all the removed files ruby $ git add -u...

Do whatever you want

2012-12-26
Don't tell me it's impossible. There is no problem, only excuses to stop you from acting. Exactly a year ago, January 1, 2012, I woke up and as every morning, got an allongé and went to read Techcrunch; My...

Sandi Metz at Parisoma

2012-12-25
If you're a Ruby developer and you havn't read Sandi Metz's book POOTR, shame on you. If you havn't heard of her... well shame on you, but trust me, now you know her, you're life is already happier! Whomever you...

Rails Elevator of Migrations

2012-11-11
Migrations Elevator Psy http://images.wikia.com/mlp/images/4/40/Elevator.gif In rails, modifications on the Database are made through migrations. Migrations are sort of like git, for databases’ schema. Every time you want to modify your database, you create a new migration file, allowing you to revert...

Playing with Hash#sort

2012-09-11
Sorting a Hash I wanted to understand what happened under the hood when hash.sort is called; ruby hash.sort { |a, b| b[1] <=> a[1] } If you can't answer, you might want to read. *** First, let's begin...