Person/Place/Thing | Shit-storm level (tm) |
---|---|
Obama / Healthcare | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
ERB and HAML templates | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
Matt Newton Metaprogramming | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
T-Mobile | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
John | ![1][poo] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
module DateDiff | |
module_function | |
def difference_in_months(d1, d2) | |
DateDifference.new(d1,d2).months | |
end | |
class DateDifference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# COMMUNITY CHALLENGE | |
# | |
# Here's my (@ljsc) solution. I guess this would qualifiy as a mock. | |
# | |
class Quiz | |
def initialize(input = STDIN, output = STDOUT) | |
@input = input | |
@output = output | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post | |
# Make the DI overhead a bit more bareable with a factory method. You can | |
# still use the default constructor if you need the extra flexibility. | |
# | |
# I'm not quite sure about this last parameter though for the should_order. | |
# Most of the time passing a boolean is a code smell that you have some unwanted | |
# control coupling... | |
# | |
def self.standard_post(should_order) | |
alarm_handler = AlarmHandler.new(:post_search) |
Person/Place/Thing | Shit-storm level (tm) |
---|---|
Obama / Healthcare | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
ERB and HAML templates | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
Matt Newton Metaprogramming | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
T-Mobile | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
John | ![1][poo] |
Ruby Hash Rockets | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |