May 2009
4 posts
Rails had improved A LOT since last visit
GameParticipation on schema.rb
create_table "game_participations", :force => true do |t|
t.integer "giver_id"
t.integer "receiver_id"
t.integer "game_id"
t.datetime "activated_at"
t.date "occurs_on"
t.datetime "created_at"
t.datetime "updated_at"
end
The error:
ActiveRecord::HasManyThroughSourceAssociationNotFoundError in 'Game#is_participating? should...
I got inspiration thanks to Oscar Wilde’s quotes…
– the weird fact is that all begun with a Simpsons episode.
Experience is simply the name we give our mistakes.
– Oscar Wilde
2 tags
Good Headaches, complements of Haskell (part 1)
Right now I’m almost finishing the ch. 6 of Real World Haskell, what a good headache I got with the definition of the function Control.Arrow.second
here I leave you with a GHCI session to understand my pain
>> :t second
second :: (Arrow a) => a b c -> a (d, b) (d, c)
WTF moment right there… what tha hell does “a b c” stands for?, this letters separated...