scott galloway's personal blog...
posts - 916, comments - 758, trackbacks - 11

My Links



Post Categories

Misc. Coding


ViewState does not suck...part 1

I was trawling through new posts on the ASP.NET blog site and came across this one from Tess (who is someone I should probably know but don't...). What I found interesting (as well as the post which is excellent) was the first comment:   "When will MS simply drop the Viewstate completely?    This is a good example of a solution to a problem that shouldn't be a problem to begin with. " This got me to thinking, ViewState has gotten a really bad rap over the years (with notable exceptions). Let's look at what ViewState actually is and...

posted @ Tuesday, September 09, 2008 12:24 PM | Feedback (2) | Filed Under [ ASP.NET ASP.NET Tips ]

Grrr...poor use of singletons and a very cool Generic Singleton pattern!

I posted earlier that I'm switching to, as part of this I've been fiddling around with the code (as is my way..I'll contribute back to the source when I've finished). One of my major pet hates is poor use of the singleton pattern, especially as there's a definitive article on the pattern in .NET and how to do it well. It's actually likely that this pattern is overkill in this case and a ReaderWriterLockSlim could be better (though it has it's own problems) . Anyway, on the assumption that a Singleton is the best choice here, let's look at...

posted @ Wednesday, April 30, 2008 10:42 PM | Feedback (7) | Filed Under [ .NET Code Snippets ASP.NET Tips ]

Powered by: