Whether you realize it or not, you need a tool that finds duplicate source code in your applications. In fact, if you’ve never used one before, you probably don’t realize how much you need an automated solution to this problem. It’s nearly impossible to manually locate the types of duplicate code that such a tool […]
Here’s a simple technique you can use to easily eliminate duplicate code. Try not to let the word “delegates” scare you away from learning the technique and I’ll try to refrain from using the word “delegate” as much as possible. I’ll start small and then work my way towards a more complex example that really demonstrates its power.
How many times have you complained about how much repetitive code is required to properly dispose of objects in your code? How many times have you found yourself in a situation where you’re unsure whether or not you’re even supposed to dispose of an object in the first place?
I want to show you a technique which completely (or, at least, temporarily) avoids the need to bother yourself with those very important concerns. This is an extremely powerful technique which can be used for much more than dealing with IDisposable related issues, but that seems to be the scenario I use it on most often.
On occasion, I get to perform such profound tasks as shifting columns to the right so the labels don’t wrap in our Employee Self Service application. Oh, and I think I get to remove the “12” from the right column of the Box 12 data. I just kinda figured the world would want to know […]
In 2002, I purchased AlexDresko.com with the sole purpose of creating the most badass website to ever grace this beautiful planet. However, much like a mechanic who never has time to work on his own car, none of the dozen or so drastically different versions of AlexDresko.com I started on over the years ever got […]