-
Menu
Linked
Meta
Archive
- February 2012
- January 2012
- November 2011
- August 2011
- July 2011
- June 2011
- September 2010
- August 2010
- March 2010
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- August 2007
- July 2007
- June 2007
- May 2007
- March 2006
- July 2005
- June 2005
- April 2005
- January 2003
Search
Category Archives: Code
Readme
Have I mentioned that I love GitHub? When you put a readme file into a folder that file is formatted and presented nicely through GitHub’s file browser. For example: https://github.com/visionmedia/uikit Scrolling down a little we can see a nicely formatted readme file.
RL Reloaded
I’ve been worried for quite a long time. Robotlegs 1 is small and simple but a little difficult to extend. I want Robotlegs 2 to be flexible without becoming overly large or complex. Timing To extend any framework you need to be able to hook into that framework’s initialization process. That Damned Context The Robotlegs 1 context class was, to be frank, rubbish – it set defaults, configured dependencies and controlled initialization. Worse, to hook into the initialization process or … Continue reading
Unit Testing: My problem with assertThat()
I write “ass” a lot while I’m coding.
Commit Messages
When reviewing a commit I’m not interested in what you did. A commit is a codebase transformation. I’m interested in what will happen to my codebase when I apply your commit. Bad “I did this” form: I had a cup of coffee, went for a walk, and changed some code. Better “This commit does this” form: Adds unmap() to the command map API. A commit message should describe the commit, not the process you went through to create it … Continue reading
Unit Testing: Why I prefer assertThat()
Consider: [Test] public function null_criteria_should_not_match():void { assertFalse(“passing null should return false”, instance.match(null)); } When reading the test above I have to do a lot of scanning.
Show Me Your Tree!
What does your display list look like? While doing some work on multi-context view auto-wiring I wrote a little utility that iterates through the containers in a given display object container and builds some useful stats.
Too Much Of A Good Thing
As an enthusiastic programmer I tend to get overly excited when I discover a new technique – nails, nails everywhere for my shiny new hammer! It’s not a bad thing. I’ll abuse my newfound technique until I fully understand where it is and isn’t appropriate. Sometimes this takes a while.
Why Ruby Is Fun
Some little things I enjoy about Ruby:
Clean Code
I recently purchased @unclebobmartin‘s awesome book: Clean Code. What a book! I’m going to echo a sentiment that often ripples through the Twittersphere: If you are a programmer and you haven’t read Clean Code you are doing your fellow programmers (and yourself) a great disservice. Seriously.
Posted in Banter, Code, Inspiration
4 Comments
Another Architectural Framework, But Why?
The State Of The Game There are some great Flash and Flex application frameworks out there right now. Mate, Swiz and PureMVC (update: and Parsley!) stand out. The authors of these frameworks realized that the Flash Platform is different enough to the JVM to warrant a fresh approach to application design.
Posted in Banter, Code, Robotlegs
Tagged actionscript, architecture, as3, crybaby, dependency injection, flash, flex, Robotlegs, smartypants-ioc
39 Comments