Category: .NET Code Related

Use of Generics to Eliminate Casting

17 May, 2005 (18:49) | .NET Code Related, Asp.Net 2.o | No comments

Uuuuuhhhhh, ahhhh…. nice!
Peter Provost touches on the use of generics to replace casting certain interfaces. Now thats what I’m talking ’bout! What a fun concept.
Read more

ASP.NET 1.1 database cache dependency (without triggers)

8 May, 2005 (05:51) | .NET, .NET Code Related | No comments

Jon Galloway explains a technique that I had never heard of before. Sounds nice.
“…Here’s a way to implement a database cache dependency in an ASP.NET 1.1 application. At a high level, it uses a timer on a background thread (in an HTTP Module) that checksums database tables. No database triggers are required.”
read more

Then there were 2….

18 April, 2005 (07:31) | .NET Tools, .NET Code Related, Asp.Net 2.o | No comments

MikeG has a quick review of the Constable Authorization Engine. I like the idea behind this product a lot. The only other tool on the market that is somewhat similar is Desaware’s State Coder.
Both products are much better realizations of the “Wizard Tool” that ships with ASP.NET 2.0.
Both tools use a state machine […]

Spring.NET - Application Framework

18 April, 2005 (07:09) | .NET Tools, .NET Code Related | No comments

Very interesting. I have friends who work in the Java world. One of my buddies mentioned Spring a few weeks ago as a lighter weight easier to “get your head around” alternatice to Struts. Looking over the Java implementation I had to agree. This morning I was mildly excited (probably need more coffee) to […]

Mea Culpa Joel

27 March, 2005 (20:45) | General, .NET Code Related | No comments

Mea culpa Joel Spolsky for thinking that you are a windbag (or gust pocket). I’ve just finished reading “Joel on Software” by Apress ( my favorite publisher). The book is funny, and chockful of incredible insight and commentary. I even forgive you mentioning the fact that you worked at MS as many times as you […]

ComputerZen.com - A Boilerplate HttpHandler

19 March, 2005 (11:37) | .NET Code Related | No comments

Hanselman shows his example of an HTTPHandler. Personally I love working with them - to them point that on days of lesser sanity I contemplate websites composed entirely of handlers and custom controls. All code, no declarative interface. And then I wake up….
Anyways, here is what he says:” …I’ve been writing HttpHandlers lately for […]

Consume a .NET Assembly from a classic ASP page.

18 March, 2005 (20:27) | .NET Code Related | No comments

Because I had a bit of a slow day I started to wonder what happens when you try to call a .NET assembly from classic asp. Found a link to someone who did it.
read more

Fredrik Normens blog - NSQUARED2

14 March, 2005 (18:34) | .NET Code Related, Asp.Net 2.o | 2 comments

Fred discusses the changes in Configuration Section Handlers in .NET 2.0.
“…In this post I will write something about the new section handler feature. I have written about the new way of creating section handler before. But this time I will focus on how to create a collection of adding child elements by using the […]

Sorting & Filtering Custom Collections Part 1

14 March, 2005 (17:55) | .NET Code Related | No comments

Tim Price has an example of filtering collections. Its a nice first cut but I think there are better ways to do it. And if I ever got my act together I might write one….
Nonetheless in the meantime Tim’s is an interesting starting point.
read more

On the Way to Mastering ASP.NET: Introducing Custom Entity Classes

14 March, 2005 (17:49) | .NET Code Related | No comments

Lo and behold an article on MSDN that very nicely verbalizes the stuff I’ve been grunting on about in my own way fro almost 3 years now. Way to go MSDN!
“…..The days of ADODB.RecordSet and the oft-forgotten MoveNext are gone, replaced by the powerful and flexible capabilities of Microsoft ADO.NET. Our new arsenal is […]

Ivan’s Terrible Encryption Machine

12 March, 2005 (18:56) | .NET Code Related | No comments

Well I hope that Ivan doesnt mind a wordplay on his name. In any case, he did post some interesting work with encryption. He says” I am seeing a lot of question people are asking on how to do encryption/decryption. To help those people I have written a simple class encorporating several encryption/decryption functions…”
Read More

public MattBerther : ISerializable: Popup Tester Web Control

5 March, 2005 (19:24) | .NET Code Related | No comments

A discussion of a control that tells the user the browser is set to block pop-ups
link here

Debug vs. Release - The Best of Both Worlds

1 March, 2005 (06:05) | .NET, .NET Code Related | No comments

Scott Hanselman points out that “…You can have the best of both worlds with a rather neat trick. The major differences between the default debug build and default release build are that when doing a default release build, optimization is turned on and debug symbols are not emitted.” read more

Keith Brown - Securing the Username Token with WSE 2.0

20 February, 2005 (07:21) | .NET Code Related | No comments

Summary: Get guidance on dealing with the Username token: examine two classes of attacks against a typical system that employs Username tokens, and discover mitigating techniques to bolster your system against these attacks. (10 printed pages)
read more

Painless Project Management with FogBugz

19 February, 2005 (20:27) | General, .NET Tools, .NET Code Related | No comments

That’s the title of a new book by Mike Gunderloy, one of my favorite bloggers and authors.
I should tell you that Fogbugz is produced by Joel Spolsky who in my opinion seems to be rather taken with himself. I always thought Joel was a bit of a windbag. If I talked about my adventurous […]

Interesting Note on Delegates, Events and Multithreading

15 January, 2005 (16:33) | .NET Code Related | 2 comments

I like the note that Brad Abrams made regarding the common usage of code for calling Event Handlers. I had no idea this much publicized approach was not thread safe. Very interesting stuff.

Get the number of days between two DateTimes

8 January, 2005 (16:39) | .NET Code Related | No comments

Calculate the number of days between two dates seems really simple, but there are some exceptions. The simplest idea is to substract two DateTime and get the number of days in the resulting TimeSpan. The method doesn’t work when the two dates are set with different year or the number of hour are less than […]

Collection Templates

6 January, 2005 (06:29) | .NET Tools, .NET Code Related | No comments

Christoph Nahr has some collection templates for Codesmith. I wonder if these are the same as the ones shipping with Codesmith itself, since Eric is pretty cool about adding third party templates to his tool.
Link here

Performance comparison of Interfaces vs. Abstract Classes vs Generics

3 January, 2005 (21:03) | General, .NET Code Related, Asp.Net 2.o | No comments

Mike Gunderloy had a post of Saliks performance comparison. Very interesting results. It seems that Generics are wicked fast compared to the other 2 ways of building code.

DataSets were not an architectural decision

2 January, 2005 (04:52) | General, .NET Code Related | 2 comments

I swear that I could have mentioned this before…..
OK, picture it is four or five years ago and you are among the powers that decide how ADO.NET will be shaped. With all the new functionality ( especially oo-centricity of .NET) what would make you come up with such a thing as a Dataset. In […]