Navigation


RSS: Matt Pavey RSS Feed



Saturday, July 28, 2007 @ 11:16 pm,.Net,Matt Pavey

I am at the point where I am extremely comfortable developing solutions with Visual Studio 2005 and the .Net Framework 2.0... But Microsoft is about to release Visual Studio 2008 and the .Net Framework 3.5. It's pretty overwhelming at times trying to keep up with this industry, but then again, it's been a great industry to be involved in, so instead of complaining, I'll anxiously look forward to learning some new stuff. Apparently the new version is going to include JavaScript Intellisense and JavaScript debugging. I wouldn't say that I write a ton of JavaScript code, but it usually is always a pain to write and debug, so that's something I'll look forward to testing. Plus it's supposed to have some incredible AJAX support, among other things...


Saturday, July 28, 2007 @ 11:05 pm,Other,Matt Pavey

I thought this was an interesting post on Brad Abrams' blog regarding coding guidelines.
 
Design Guidelines, Managed code and the .NET Framework

Even if you don't agree with the style, following some coding standard is definitely a smart practice.
 
Consistency is worth its weight in gold.


Saturday, July 28, 2007 @ 7:29 pm,VB.Net,Matt Pavey

Excerpts from an article written by Dan Mabbutt entitled VB .NET New Logical Operators.

VB .NET features two new logical operators that help make your programming ... well ... more logical. The new operators are AndAlso and OrElse and they generally replace the VB 6 operators And and Or (but they do much more!).

The old VB 6 And and Or are still present in VB .NET. If you decide that they're what you need your program, go ahead and use them. They work the same way they used to work.

But AndAlso and OrElse have some properties that enhance your code in ways that VB 6 can't match. They offer advantages in two general categories:

  • You can avoid executing part of a logical expression to avoid problems.
  • You can optimize code by not executing any more of a compound expression than required.
AndAlso and OrElse are pretty much like And and Or except that they will "short circuit" an expression once the outcome is guaranteed.

Knowing about these two new VB .NET logical operators can help you avoid very subtle errors or achieve subtle efficiencies.


The opinions expressed on this website are my personal opinions
and do not represent my employer's or my clients' views in any way.