bad (2,225)


optimization - Data verifications in Getter/Setter or elsewhere?

optimization - Data verifications in Getter/Setter or elsewhere?

I'm wondering if it's a good idea to make verifications in getters and setters, or elsewhere in the code. This might surprise you be when it comes to optimizations and speeding up the code, I think y…


testing - What is Object Mocking and when do I need it?

Many people use Mock Objects when they are writing unit tests. What is a Mock Object ? Why would I ever need one? Do I need a Mock Object Framework?…


sql - What point should someone decide to switch Database Systems

When developing whether its Web or Desktop at which point should a developer switch from SQLite, MySQL, MS SQL, etc…


Extension interface patterns

The new extensions in.Net 3.5 allow functionality to be split out from interfaces. For instance in.Net 2.0 public interface IHaveChildren{string ParentType{get;}int ParentId{get;}…


asp.net - Replicating load related crashes in non-production environments

We're running a custom application on our intranet and we have found a problem after upgrading it recently where IIS hangs with 100% CPU usage, requiring a reset. Rather than subject users to the han…


.net - How to return a page of results from SQL?

Many applications have grids that display data from a database table one page at a time. Many of them also let the user pick the number of records per page, sort by any column, and navigate back and…


sql - Good Resources for Relational Database Design

I'm looking for a book/site/tutorial on best practices for relational database design, tuning for performance etc. It turns out this kind of resource is a bit difficult to find; there's a lot of "her…


language agnostic - Singletons: good design or a crutch?

Singletons are a hotly debated design pattern, so I am interested in what the Stack Overflow community thought about them. Please provide reasons for your opinions, not just "Singletons are for lazy p…


Refactoring away labeled loops

After I was convinced that labeled breaks/continues are a total "nono" over here, I need help to remove the label out of my code. I have a square matrix and a vector that has the same length. The vec…



frameworks - Best way to implement a dirty flag in EF

You can easily use the PropertyChanges events to set the flag. But how do you easily reset it after a save to the ObjectContext?…




why net how java example not best error use code