Browse by Tags

30 December 2012
Singleton Pattern Implementation in C#: One Global Object Instance, One Entry Point
This post is going to explain how to implement the Singleton Pattern in .Net/C#. In most other programming languages/frameworks, global variables are allowed. In modern day programming this is extremely frowned upon, hence where this design pattern comes in handy: It provides a global object with only... Read More...
23 September 2012
Template Method Implementation in C#: An Easy Way to Make Your Code Hum Along
A pet project I’ve been working on (on and off, time permitting) has been in need of some serious refactoring, so I finally sat down to eliminate some redundancy, and work on some design pattern work. A common problem in software design is making sure base class implementation is always called from overrides... Read More...
04 March 2007
Required Reading -- Framework Design Guidelines
I've been slacking off a bit on my new Programming Paradigms category. Besides the usual "I have a new job and I'm busy" excuses, I've also been reading the daddy of all .Net Programming Paradigms books: Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries by Krzysztof... Read More...
04 March 2007
Your Database Administrator Is Your Best Friend
Let's face it...as developers we're expected to know a lot of stuff about a lot of things: Database design, application design, numerous languages and constructs, testing, debugging, etc. I don't know about you guys, but my head can only hold so much information before an implosion is imminent. Do yourself... Read More...
19 January 2007
Coding Paradigms -- Minimize Your Public API Surface Area
Programming frameworks such as .Net have access modifiers for a reason..yes this is coding 101, but more often than I'd care to admit I've worked with developers who only seem to know 2 of them: public and private; they seem to forget that the protected and internal modifiers exist (as well as the ability... Read More...
15 January 2007
Programming Paradigms -- Test For Nulls, Have A Plan B
I recently saw a post by Jeremy Miller which inspired me to create a new post category called Programming Paradigms. I've been doing .Net development for a while now, and even though by no means am I an expert in every facet of .Net development I figured I'd start posting some basics for any developers... Read More...