Thoughts on Software Development, .Net, OOP, Design Patterns and all things cool
Browse by Tags
All Tags »
Best Practice (
RSS)
-
|
One thing I like to do when I am using a IoC (Inversion of Control) container is to create simple test that ensure that my objects have been wired up correctly and can be created via the IoC container. I know this may seem like overkill, but I feel that...
|
-
|
This is post is more about me asking the question then giving direction on best practice. The question is simple. When dealing with viewdata with the MVC framework, what type of usage of viewdata is preferred? Approach 1 If you watch Scott's screencasts...
|
-
|
Because I was stumped on the various ways to build links (hyperlinks)with the new MVC framework, I thought I would save others the pain that I went through and show the various ways to build links. You can also get this information by watching Scott Hanselman's...
|
-
|
Let me start of by publicly admitting this, I am have OCD (Obsessive-compulsive disorder) when it comes to code. My code must be clean and it must be uniform. And because I am a ReSharper lover my disorder is even more drawn out. Over the past month or...
|
-
|
Just wanted to dump a quick how-to on doing branch to trunk merges in VS Team. It is pretty simple really, only a few steps. Pull the latest of the branch to your local disk Pull the latest of the trunk to your local disk Merge and Pray (more on this...
|
-
|
In my humble opinion the worst code smell you can have is Dead Code. I know that other smells such as large methods, large classes, overly complex logic, interwoven dependencies, etc are all smells, but nothing, I MEAN NOTHING smells worse than...
|
-
|
There was once a time where I did not care about compiler warnings, but times have changed. In fact, I remember having a debate with a fellow developer some time ago about why compiler warnings were not that bad..... Oh how times have changed. In...
|
-
|
Ok, so I know this is a odd question but I am stumped. Normally when I have a private instance level variable that is exposed via a property I format my class file as such. { ..... all instance variables ..... any constructors ..... any public/private...
|
-
|
Over on the Alt.Net mailing list ( here ) the topic of where to put your unit tests was the hot topic a few days ago. This is a topic that I have debated with various people over the past few years. With all the debates I have had, it is clear to me that...
|
-
|
<disclaimer> This posting is purely my personal opinion. I am sure many of you out there will disagree, if this is the case, let me know. </disclaimer> Today, during my bug hunting I stumbled across the dreaded 'Null reference' exception...
|
-
|
I know that SQL 2005 has been out for a while now, but I did not do ANY sql for over a year. Anyway, anyone that has had to write anything more than trival procs knows that error handling can be a pain. In the past you have had to do something along...
|
-
|
Before I get started, I personally am a fan of using #regions in my code. I think it cleans up everything, allowing me to only see what I want to see. I also know that many of you disagree with me, and that is fine. Here are 2 posts that voice...
|
-
|
Sorry we have interrupted your daily blog reading, but we have a special service announcement for all developers. <SpecialServiceAnnouncement> Only make properties public on an object when you KNOW they are needed. Please make all properties private...
|
-
|
Today I was refactoring some sql procs along with the corresponding .net code that called the procs. My primary focus was to implement some new business rules (ways to get totals) in the proc. In doing so, I completely re-wrote the proc. In...
|
-
|
Pretty much any developer with half a brain (or any real world experience) knows that you MUST keep your source code in some sort of source code repository. There are many of them out there, VSS, Vault, TFS, CVS, SVN, the list goes on. If putting your...
|
More Posts
Next page »