What’s Wrong With This Code: Type Design

Here is something I see all the time. Maybe done by lazy programmers. This is real in production code. What is wrong with this type design and why? public class Metadata {     public int videoId = 0;     public string Filename = string.Empty;     public long Filesize = 0;     public double Speed = 0;     public long Time … Continue reading What’s Wrong With This Code: Type Design

What’s Wrong With This Code: Exceptions

This is my first post on a series of posts that are going to be devoted to seeing if you can spot the problem with this code. All code is REAL code in production or close to going live. Here is the first one: Not properly handling Exceptions is .NET is very important part of … Continue reading What’s Wrong With This Code: Exceptions

SoCal Code Camp 2013 – San Diego

I hope everyone in southern California is planning to attend this years SoCal Code Camp on 7/27 – 7/28 in San Diego. It’s always a great time and lots of free training! I will be presenting the following sessions and I hope you will attend. Wear your favorite concert t-shirt to my sessions and be … Continue reading SoCal Code Camp 2013 – San Diego

Desert Code Camp 2012

I hope everyone in Arizona is planning to attend this years Desert Code Camp in Chandler, AZ on 11/17.  It’s always a great time and lots of free training! I will be presenting the following sessions and I hope you will attend. .NET Coding Standards For The Real World 4:45 pm Room IRN-140 Revamped for … Continue reading Desert Code Camp 2012

Silicon Valley Code Camp 2012

I hope everyone in northern California is planning to attend this years Silicon Valley Code Camp Ca on 10/6 – 10/7. It’s always a great time and lots of free training! From what I heard this is the largest Code Camp in the US with over 3,000 attendees in 2011. I will be presenting the … Continue reading Silicon Valley Code Camp 2012

SoCal Code Camp – Fullerton 2012

I hope everyone in southern California is planning to attend this years SoCal Code Camp in Fullerton, Ca on 1/28 – 1/29. It’s always a great time and lots of free training! I will be presenting the following sessions and I hope you will attend. .NET Coding Standards For The Real World Revamped for 2012, … Continue reading SoCal Code Camp – Fullerton 2012

Introduction to .NET Code Contracts

This video will introduce developers to the new powerful new feature that is part of the .NET framework called Code Contracts. Code Contracts brings the advantages of design-by-contract programming to .NET programming. Contracts are used to improve testing via runtime checking, enable static contract verification, and documentation generation.

Should You Use var in C#?

I get asked this question or get in heated discussions about this all the time: "I have a standards question regarding the var keyword. I’m starting to see it pop up a LOT in our code and I was wondering if there were any official Microsoft standards regarding its usage. I was under the impression … Continue reading Should You Use var in C#?

San Diego .NET User Group May Meeting

Tonight, May 24th I will be speaking on the following topics at the San Diego .NET User Group meeting. Hope to see you there. Back-2-Basics: .NET Coding Standards For The Real World Revamped for 2011 (90% new material), this session will guide any level of programmer to greater productivity by providing the information needed to … Continue reading San Diego .NET User Group May Meeting

ROCK! – (Developer) Rockstars (in) Orange County Kickstart

I hope everyone in SoCal will join me at this event on Tuesday, April 10th at 7pm at the Microsoft store in Mission Viejo.  I will be doing the following session: Back-2-Basics: .NET Coding Standards For The Real World Revamped for 2011 (90% new material), this session will guide any level of programmer to greater … Continue reading ROCK! – (Developer) Rockstars (in) Orange County Kickstart