June 2010
1 post
thing is more faithful to the progress of the human mind than to presume that...
– Humphrey Davy
May 2010
13 posts
I’m not a great programmer; I’m just a good programmer with great habits.
– Kent Beck
http://theppk.com/blog/2009/03/30/peanut-butter-pil... →
Ryan Singer, “Designing with Forces: How to Apply Christopher Alexander in Everyday Work ” (by MFA Interaction Design)
Amazon.com: What's The Use of Lectures?... →
This is on my summer reading list.
Designing with Social Skills | Darren Hoyt Dot Com →
Fascinating perspective.
April 2010
7 posts
Rails Beta3 + RVM
`bin_path': can't find executable rails for railties-3.0.0.beta3 (Gem::Exception
I ran into this problem when I wanted to upgrade to rails3 beta3. I am not sure exactly what happened but a working solution was to create a new RVM gemset and reinstall everything. *shrug*
I'm going to go check this book out today. →
1 tag
Classes
Classes should be short, have a single responsibility, and make sense! Code constantly changes, classes should be able to be isolated from these changes as much as possible.
Unit Test
Fast
Independent
Repeatable
Self-Validating
Timely
In conclusion, write fking unit tests for your software and make them work like the above list.
March 2010
7 posts
Formating, Objects & Data Structures, Error...
Formating, team rules out weigh personal rules. Make it clean and consistent.
Objects & Data Structures
Procedural code (code using data structures) makes it easy to add new functions without changing the existing data structures. OO code, on the other hand, makes it easy to add new classes without changing existing functions.
Error handling, used exceptions rather than return codes....
Code Comments
Continuing with the Clean Code Handbook, comments was the next chapter. Personally I don’t tend to comment much, it only obscures the code and the worst part of it as soon as I have to change the code I have to change the comment. Pretty much worthless. The only time where comments have real meaning is when the code so poorly named that the english version clarifies it.
To summarize the book:
...
Om nom nom →
Wonderful talk about how games can save us all. →
Functions
According to Clean Code A Handbook of Agile Software Craftsmanship, functions should have the following characteristics.
They should be small
Do one thing
Minimal amount of arguments
No side effects
Command Query Separation
Exceptions over error codes
Don’t Repeat Yourself
The explains the reasoning behind each of these very well, but the command query separation was very...
Good Morning Tumblr
I think this is the kind of place where I send a good morning email to! Just started reading Clean Code A Handbook of Agile Software Craftsmanship . So far it’s a wonderful look into what makes code good. Will review at some point.>
Tumblr
Tumblr is a fabulous looking system. I’ll see if this replaces twitter for me.