MicroGems: five minute RubyGems - Jeff Kreeftmeijer
9 days ago by jpcody
The great thing about Gists is that they’re full Git repositories in disguise, so I can just clone my library, work on it and push a new “release” without having to fiddle around in Gist’s web interface.
https://gist.github.com/1232884
ruby
github
gists
https://gist.github.com/1232884
9 days ago by jpcody
The 10 Most Underused ActiveRecord::Relation Methods - Mitch Crowe
5 weeks ago by jpcody
Knee-deep in ActiveRecord::Relation code yesterday, I was reminded of some interesting nuggets that I’ve seen used far too rarely. Here, I’ve gathered my top ten most underused relation methods from that list for your reading delight.
rails
ruby
tips
5 weeks ago by jpcody
On coding defensively
11 weeks ago by jpcody
When writing code that will be used by others (and we do that 100% of the time, even if the other user is ourselves in a few weeks time), there’s a tricky balance to strike between being generous to the users of our code, and ensuring that they get the information they want to ensure they’re calling our code correctly. There are two coding maxims: “Be generous on input, and strict on output”, and “fail fast”, which we need to hold in tension. This post explores the trade-offs between the two.
programming
bestpractices
ruby
11 weeks ago by jpcody
PragDave: Smart constants
february 2012 by jpcody
But it occurred to me that we could use Ruby's singleton methods to give AIR and WATER a little smarts:
ruby
february 2012 by jpcody
The Right Way to Code DCI in Ruby :: Mike Pack Development
january 2012 by jpcody
Many articles found in the Ruby community largely oversimplify the use of DCI. These articles, including my own, highlight how DCI injects Roles into objects at runtime, the essence of the DCI architecture. Many posts regard DCI in the following way:
ruby
rails
dci
january 2012 by jpcody
Scripting Languages: PHP, Perl, Python, Ruby - Hyperpolyglot
august 2011 by jpcody
a side-by-side reference sheet
cheatsheet
php
python
ruby
august 2011 by jpcody
Ruby for PHP Developers | TutToaster
september 2010 by jpcody
With our knowledge of PHP we can learn a lot about Ruby. Use of variables, loops, arrays, functions and classes, everything starting from PHP. In the end, there is an example to see all together where we’ll combine what we have learnt to see something really useful in action.
ruby
php
september 2010 by jpcody
Learning Ruby with the EdgeCase Ruby Koans
august 2010 by jpcody
The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language.
ruby
tutorials
august 2010 by jpcody
Copy this bookmark: