-
Recent Posts
Recent Comments
- elopezrios on Force .NET application to run in 32bit process on 64bit OS
- mck ☠ on Migrating to Git
- Michael Freidgeim on Dynamic reflection versus static reflection
- Groverboy on Synchronizing calls to the UI in a multi-threaded application
- Rvsawant21 on Step-by-step Introduction to Delegates and Lambda Expressions
Archives
Categories
- asynchronous
- book
- bootstrapper
- brownfield
- BUILD
- ClickOnce
- commands
- Conference
- CQRS
- data binding
- delegates
- design
- developer
- didactics
- Event sourcing
- Fluent NHibernate
- fluent Silverlight
- framework
- Git
- hiring
- How To
- installation
- interactive extensions
- introduction
- job
- jQuery
- lambda expressions
- learning
- legacy code
- methodology
- misc
- Mock
- mocking framework
- Mono
- Mono Cecil
- MSIL
- multi threading
- MVVM pattern
- NHibernate
- no-database
- NSIS
- patterns
- personal
- plugins
- practices
- presentation
- PTOM
- refactoring
- reflection
- reporting
- review
- Setup
- Silverlight
- SOLID
- Styles and Templates
- TDD
- tutorial
- Uncategorized
- validation
- Windows
- WIX
- Workflow
Meta
Category Archives: refactoring
Simplify Your Unit Tests With Automocking: Part 2 – Establishing Context
Following my helper methods in the base context specification class that we use, I decided to simplify the entire process of setting the context in which the tests are running. Specifically, I wanted to get rid of the constant declaration … Continue reading
Comments Off
Simplify Your Unit Tests With Auto Mocking: Part 1 – Helper Methods
After working on the Ninject.RhinoMocks automocking container, I started using it in my current project right away and it wasn’t long before I started simplifying the usage of it with helper methods in my base test class. From “MockingKernel.Get<T>()” … Continue reading
Comments Off
Find And Replace With Regular Expressions In Vim / ViEmu
Here’s another entry in my how-i-saved-a-few-hundred-keystrokes blog posts on using Vim / ViEmu with Visual Studio. The Code That Needs To Change I’ve got a data access method that is mapping around 50 fields into an object from a … Continue reading
Also posted in Uncategorized
11 Comments
Red/Green/Refactor, For The Right Reasons
First, let me say this: WHAAaa???? something useful occurred on Google Buzz?! Ok, now that I’ve got that over with… there was a useful stream of comments over on the extended twitter reply network from one of my tweets a … Continue reading
Comments Off
Eliminating Repetitious Coding With Vim / ViEmu And Macros
Anyone that has been following me on twitter recently is probably aware that I’ve been trying to learn Vim and ViEmu for Visual Studio. It’s been a very slow, somewhat painful learning process, but I think it is finally starting … Continue reading
Comments Off
Refactoring Dinner: Interfaces instead of Inheritance
Last time, in Cooking Up a Good Template Method, I had a template method cooking our dinner. An abstract base class defined the template—the high level steps for preparing a one-skillet dinner—and a derived class provided the implementation for those … Continue reading
Also posted in Mock, mocking framework, TDD
6 Comments
Albacore: Breaking Changes In Location Of Executables
I was working on cleaning up Albacore this weekend, and I noted that both the NCoverConsole and MSBuild tasks in Albacore both require the location of the .exe, to execute. The MSBuild task defaults itself to the .NET 3.5 SP1 … Continue reading
Comments Off
Refactoring with Iterators: Prime Factors
Andrew Woodward recently posted a comparison of his test-driven Prime Factors solution to one written by Uncle Bob. In the comments, someone suggested that Andrew use an iterator instead so I thought I’d give it a try. First, let’s repost … Continue reading
Also posted in jQuery, plugins
16 Comments
Refactoring challenge #2 – functionally illiterate
In the last refactoring challenge, I had a problem with some nasty conditional complexity. To be honest, the challenge was a subtle way to crowdsource new features in AutoMapper, but hey, it worked. One of the hard parts of being … Continue reading
Refactoring Challenge Part 3 – Pattern Implementation
In the previous part to the refactoring challenge, I needed to structure the original implementation to a point where I could start applying other refactorings. Whenever I start to see a bunch of “if” statements or a big switch statement, … Continue reading
