September 2007
36 posts
Getting Pretend - The Book (a work in progress) →
Contribute to Mark's book v1.01
Email
Send an email to this address. Make your subject start with “note:”; your contribution is the body of the email; use textile ;-).
Oh, the subtitle, which might be helpful for you to know, is “how to write inspired software in forty-eight hours”.
The book will be finished by 3pm EST, Sunday 9/9/07
The Count… The Count… The Count of… oh, stick him in the...
Another Crazy Line
def assign_name
self.first = "Person::#{(traits_hash['gender'].name rescue 'male').upcase}_NAMES".constantize.random.downcase.en.proper_noun.strip
end
Paul Eckman - science of facial expressions →
Maybe this is something for v2
You should be deleting more code than you write!
– Lark
obie's egregious one-liner of the day
def self.roll_the_dice
Hash[*Trait.find(:all).group_by(&:category).values.map(&:random).collect { |t| [t.category, t]}.flatten]
end
Rafting
If you could suck and blow at the same time, think how fast you could
blow up a raft.
On Evolution
If women evolved three boobs, would men eventually evolve three eyes? and then three hands?
You know what you could use this for is extortion.
– Mark
oh snap!
…mark just upped the ante!
What do you want for dinner?
blog me your order
nick: green curry w/ chicken - 4 chilies
obie: green curry w/ chicken - 5 chilies
clay: cashew chicken - 4 chilies
nick: my pretend stomach is about to eat the f**k out of itself.
lark: pretend cashew chicken - 3 chilies
250% Test Coverage
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 225 | 163 | 6 | 18 | 3 | 7 |
| Helpers | 16 | 14 | 0 | 1 | 0 | 12 |
| Models | 136 | 87 | 6 | 15 | 2 | 3 |
| Libraries | 206 | 145 | 3 | 29 | 9 | 3 |
| Components | 0 | 0 | 0 |...