-
Recent Posts
Recent Comments
Archives
Categories
- activesupport.net
- alt.net
- automation
- bash
- bdd
- binsor
- blogging
- blueprint
- boo
- books
- build
- bundler
- c#
- c# patterns mvp
- cancan
- capistrano
- castle
- commerce server
- communication
- community
- compass
- cucumber
- deployment
- devise
- domain-driven design
- factory_girl
- firefox
- git branch-per-feature
- haml
- jquery
- mbunit
- microprenuer
- mongodb
- mongoid
- monorail
- mstest
- nant
- nbehave
- nhibernate
- nspec
- osx
- patterns
- personal
- podcasts
- presentations
- productivity
- projects
- rails
- refactoring
- resharper
- reviews
- richmond dnug
- rspec
- rstakeout
- ruby
- rvm
- sass
- screencast
- screencasts
- scriptaculous
- steak
- subtext
- tales from the smelly side
- tdd
- terminal
- testing
- tools
- Uncategorized
- usability
- virtual teams
- vlad the deployer
- web
- windsor
- wordpress
- working from home
Meta
Category Archives: refactoring
Refactoring challenge Part 2 – Preparation
Other posts in this series: Refactoring challenge – cry for help Part 1 – Examination In the last part of this series, I took a closer look at the code smells found by commenters, which included: No tests Feature envy … Continue reading
Refactoring challenge Part 1 – Examination
Most of the time I post code on my blog, it’s something I’m proud of. Other times, it’s code I didn’t write, which I promptly lambaste. In my last post, I threw up code I did write, but couldn’t see … Continue reading
Refactoring challenge
I don’t like messy, obfuscated code. But occasionally often, I write it anyway as I can’t quite see the right way to go. Today is one of those days where I can’t seem to get past some ugly code, none … Continue reading
How not to do Dependency Injection, in NerdDinner
Checking out the NerdDinner code the other day, I found a common Dependency Injection anti-pattern. One of the core concepts of DI is that components are not responsible for locating their own dependencies. The code went part of the way … Continue reading
Fighting technical debt with the wall of pain
Technical debt, even on the agile-ist of agilista teams, still accumulates. Debt is inevitable, as initial design is always based on assumptions, not all of which pan out. I never view that as a failure, as all we can do … Continue reading
Refactoring legacy code
Lately my co-worker asked me to pair with him and make a code review with him of one of his projects. After having spent some hours on refactoring this legacy application together with my co-worker I want to share some … Continue reading
Also posted in patterns, tdd
Leave a comment
Favor Defect Prevention Over Quality Inspection And Correction
In the manufacturing world, you would never find a company that assembles a bunch of parts into a final product before inspecting any of the individual parts, and they would not wait until the end of the assembly line to … Continue reading
Also posted in books, rails, reviews, ruby
2 Comments
PTOM: Descriptive State Enumeration
This post is part of the November 2008 Pablo’s Topic Of The Month (PTOM) – Design Patterns and will primarily outline the State pattern, with an Enumeration or Descriptor pattern thrown in for good measure. Switch statements and if-then statements … Continue reading
Finding Design Smells In Non-Design Related Places
In my last post, I talked about the idea of encapsulation and using it to ensure that our business rules were enforced correctly. What I didn’t talk about, though, was the second half of the conversation that my coworker and … Continue reading
Also posted in castle, monorail, web
Leave a comment
Encapsulation: Entities, Collections And Business Rules
Yesterday, I was involved two very separate yet very related conversations. One was via twitter with Colin Jack and Jimmy Bogard (which I was only a partial contributor to – mostly just reading their conversation) and another after work with … Continue reading
Also posted in tdd, tools
Leave a comment
