Mathew Nolton Blog
Software dementia unleashed...
-
Aspect Oriented Programming
The following is a link to an interview with Gregor Kiczales on the java site www.theserverside.com The interview provides valuable insights into exactly what AOP is and how it can be used. It is obviously geared to the Java developer but the concepts he discusses and implements will have a strong influence on any .Net implementation.
-
Another site work bookmarking
A friend of mine pointed out this site to me and it is well worth a bookmark. It contains articles and misc. information relating to tuning t-sql.
-
File or assembly name %0, or one of its dependencies, was not found" exception
I hate this error. Does nothing to tell you what really happened....but then I found Chris Sell's tool XmlSerializerPreCompiler.exe.....Thanks Chris.
-
Santa (e.g. Bill G). For Christmas can I get control of the xml serialization process?
When implementing ICollection in a strongly-typed collection, don't expect any pier properties to be serialized via XmlSerialization. MSDN was quite clear on this.
-
User Defined Functions, UDF, Scalar and Constraints
Some of you probably already know this, but UserDefined functions acting as a constraint aren't as intuitive as you might imagine. For example, I created a function that checks two values on a data row and returns the count. Simple enough. Sure. Unit Test It against different records with different values. Works everytime. Now put it in as a constraint and it acts a bit differently. For example, given the following scalar UDF:
-
Follow the .Net convention of appending Attribute to the name of your Attribute class at your own risk.
I have been delving more and more into custom attribute programming more and more lately and the following is a quote from my validation article (click here to view the article).
-
Validators in the Middle-Tier-A New Article on TheServerSide.Net
I just published an article on TheServerSide.Net. It's about creating and using validators in the middle-tier. Specifically, it talks about how to use attribute progamming along with reflection to decorate and then validate parameters, properties and fields.
-
Problems with P/Invoke.....Check out ClrSpy
Adam Nathan posted a cool little tool called CLRSpy for finding problems with P/Invoke on the GotDotNet board. We have a problem where we think a Cash Reader Device and Crystal are stepping on each others memory with a Kiosk Framework written in .Net .... I haven't used it yet to see if it solves my problems but it looks like it is worth a look.
-
Performance Metrics
Performance Tips and Tricks of .Net Applications. All too often we fall into what is easy versus what is right. I saw a comment in a discussion on www.TheServerSide.Net where someone pointed out the evil-ness of foreach. The trade-off and ease of use that enables us to write tight-compact code can sometimes cause a bloat in performance. We all must be diligent in the code we write....IMHO
-
Do you ever forget the correct format for a connection string? I know I do. Check this site out.
I always forget how to properly format a connectionstring. Whether it's the correct spelling of the parameters. Or when to declare a provider and when not to. If I need a provider, what's its name. I know. I know I can look it up on msdn or online help or better yet google for it. But there is an easier way. www.connectionstrings.com. It's a simple site that does nothing but, you guessed it, give examples of connectionstrings. It's simple to remember and the answers seem to be correct. At least the ones I am looking for.