-
Recent Posts
Recent Comments
- A on How-To add a custom validation method to the jQuery validator plug-in
- 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
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
A Guest Appearance On Tekpub’s Knockout.js Series
Tekpub release their series on Knockout.js recently and I was fortunate enough to make a guest appearance! Now I know you’re thinking “why would Derick make an appearance in a Knockout series?!” But don’t worry – I’m not there to … Continue reading
Improve your LINQ with .Any()
LINQ’s .Any() method is under-utilized, given the benefits it brings in making your code briefer, clearer, and more efficient. LINQ in general improves the expressiveness of your collection-manipulating code by using declarative statements instead of imperative foreach loops; .Any() is … Continue reading
Comments Off
Running JavaScript… With Sneakers!
Code-review time. I haven’t written significant JavaScript in forevs, but I hit upon a use case well suited to it, had a blast coding it up, and am confident that I’ll be completely mystified by it three months from now. … Continue reading
Comments Off
Rebuilding My Backbone.js Plugins With Modules, SRP and More
In the last few weeks, I’ve rebuilt and refactored a large amount of JavaScript code in both my Backbone.ModelBinding and Backbone.Memento plugins. In the process, I re-learned several object oriented design principles and how they apply to JavaScript. I also … Continue reading
Comments Off
Legacy Operating Systems and Legacy Languages: If it ain’t broke, it still needs fixing
In my travels I’ve encountered systems chugging happily along on outdated, discontinued, unsupported technology stacks. Apps written in VB6, FoxPro, Classic ASP, still running without a hitch because the kinks had been shaken out years ago… Software users delicately avoiding … Continue reading
Comments Off
An Object Lesson in Binary Compatibility
A riddle for you, friends: When is changing a method from return void to return Something a breaking change? If you already know the answer, then why hadn’t you told me? Could’ve saved me a fair bit of embarrassment. Ah … Continue reading
Also posted in developer, hiring, job
7 Comments
Good Refactoring / Patterns For Simple UI Logic?
I’ve got a chunk of C# that sits inside of a very simple form. The form downloads an update from a web page – one of two possible downloads, based on which one is available – and shows a message … Continue reading
A Less Ugly Switch Statement For C#
I know switch statements are considered “evil” because they are very procedural code, they violate the Open-Closed Principle, etc etc. But every now and then I don’t see a need to do anything more than a switch statement because the … Continue reading
Comments Off
A Refactoring: Explicit Modeling And Reducing Duplication
A coworker showed me a method that had a series of guard clauses at the top and a series of sequential steps that had to be processed after that. All of the guard clauses and sequential steps were executed the … Continue reading
Comments Off
"Refactoring" Notes
I’m not going to bother with a review of Martin Fowler‘s Refactoring: Improving the Design of Existing Code. It’s good enough that its catalog, available in expanded form online, now provides the definitive vocabulary shared by dozens of refactoring tools … Continue reading
Also posted in How To, misc
17 Comments
