dotNetDave Rocks IT/DevConnections

For the first time the  dotNetDave “Rock The Nation Tour” is coming to IT/DevConnections on September 15th – 19th in Las Vegas! I hope you will attend my sessions below.

Please click here to donate to the tour to keep the buses rolling (gas prices are going up)!

Rock Your .NET Coding Standards

Thursday – September 18, 2014 – 10:45AM – 12:00PM

The Code Isn't RightWith lots of new material for 2014 (126.190%), this session will guide any level of programmer to greater productivity by providing the information needed to write consistent, maintainable code. Learn about common coding mistakes, defensive programming, writing better types and much, much more. Code tips are included to help you write better, error free applications. You will also find out what ‘Progniant’ is. This session is based on my latest book, David McCarter’s .NET Coding Standards. Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

We will be playing a game during the session where you can win fabulous prizes!

Please take my Coding Standards Survey before attending this session (you could win a free copy of my Rock Your Code DVD).

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Check out the Coding Standards For The Real World webcast I did for SubMain.com.

Rock Your Code Using Code Contracts

Thursday – September 18, 2014 – 9:00AM – 10:15AM

This session will introduce developers to the new powerful new feature that is part of the .NET 4.5 framework called Code Contracts. Code Contracts brings the advantages of design-by-contract programming to .NET programming. Contracts are used to improve testing via run-time checking, enable static contract verification, and documentation generation. Sit close and you just might catch a custom dotNetDave guitar pick. Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Shop the "Rock The Nation Tour" store by clicking here. 
Anyone seen wearing a t-shirt from the store will win 
some geeky swag!

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

dotNetDave Rocks Desert Code Camp (2014.2)

I hope to see you at this years Desert Code Camp on October 18th! This is an awesome Code Camp drawing 800+ people. I hope you will attend my sessions listed below.

Please click here to donate to the tour to keep the buses rolling (gas prices are going up)!

Tour Sessions

Röck Yoür Technical Interview™

Have you ever not gotten a job because you weren’t prepared for the interview? Would you like a big raise? Do you need motivation to rock your career? I’ve interviewed 100’s of software developers and will share my knowledge on how to survive, what we look for and even divulge some of the secrets we use during the process. This session (62.5% new material for 2014) will include crazy and strange interview stories from engineers just like you! This session includes tips to get you started, working with recruiters, getting prepared, the technical interview and more. You will also learn what is the #1 question you need to ask during an interview… it’s a game changer! Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

New: Rocking Your Technical Interview with David McCarter interview on dotNetRocks!

Here’s What People Are Saying About This Session

  • Chris S. – I wanted to thank you for your DVD on Technical Interviews. I attended your presentation at Desert Code Camp in 2012 and purchased the DVD. Your guidance on how to handle technical and even non-technical questions gave me great support and confidence going into a round of interviews I had. That confidence translated into performance, as I was able to receive attractive offers from multiple companies, and I was able to make an important move that has been a life-altering, exciting change for me.
  • Bill W. – Good information! I had forgotten to study the technical questions, did that this morning and I felt I aced my technical interview just now  Thanks Dave!
    • GO now!!! Dave is why I have the best job I have ever had!!!
  • Daniel I. – Great presentation because you made me realize that I’m not doing enough to better my career! You struck a chord when you said we should keep our resume up-to-date and on-hand at all times. Thanks for helping me realize something I should have been doing a long time ago. Your DVD is very helpful. The fact that you have hiring managers and recruiters giving interviewing tips is great. I’m glad I bought it!
  • Ken – Thanks for the great presentations – really enjoyed all your presentations at the code camp, learned a lot about interviewing and gained a lot of insight into how recruiting process works.
  • Stacy P. – An invaluable presentation for less experienced developers and a great review for senior developers that should know better.

Please take the How Do You Find A Job survey before attending this session (you could win a free copy of my Rock Your Technical Interview DVD).

You can purchase a DVD for this session (sponsored by AbleForce) for only $15 (credit cards accepted) or purchase online by clicking here.

Röck Yoür Cöde With Defensive Programming ™

This is a companion session to the “Rock Your .NET Coding Standards” that takes writing better code to the next level. Do you enjoy receiving bug tickets from QA? Didn’t think you would, so this session will provide solid practices that I have been using for most of my programming career to check-in to source only rock solid code. You will learn my #1 mantra, along with 13 rules, that I use while writing code that allows me to write new code (features) and stay out of maintenance mode hell.

Please take my Coding Standards Survey before attending this session (you could win a free copy of my Rock Your Code DVD).

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Check out the Coding Standards For The Real World webcast I did for SubMain.com.

Shop the "Rock The Nation Tour" store by clicking here. 
Anyone seen wearing a t-shirt from the store will win 
some geeky swag!

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

Anyone seen with any item from my Code Camp store, will win some cool swag!

dotNetDave Rocks Silicon Valley Code Camp (2014)

I hope to see you at this years Silicon Valley Code Camp on October 11th & 12th! This is the largest Code Camp in America drawing 2,500+ people each day. This is by far my favorite Code Camp to speak at and it’s FREE! If you only go to one Code Camp a year, this should be it. I hope you will attend my sessions listed below.

Please click here to donate to the tour to keep the buses rolling (gas prices are going up)!

Tour Sessions

Röck Yoür Technical Interview™

Have you ever not gotten a job because you weren’t prepared for the interview? Would you like a big raise? Do you need motivation to rock your career? I’ve interviewed 100’s of software developers and will share my knowledge on how to survive, what we look for and even divulge some of the secrets we use during the process. This session (62.5% new material for 2014) will include crazy and strange interview stories from engineers just like you! This session includes tips to get you started, working with recruiters, getting prepared, the technical interview and more. You will also learn what is the #1 question you need to ask during an interview… it’s a game changer! Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

New: Rocking Your Technical Interview with David McCarter interview on dotNetRocks!

Here’s What People Are Saying About This Session

  • Chris S. – I wanted to thank you for your DVD on Technical Interviews. I attended your presentation at Desert Code Camp in 2012 and purchased the DVD. Your guidance on how to handle technical and even non-technical questions gave me great support and confidence going into a round of interviews I had. That confidence translated into performance, as I was able to receive attractive offers from multiple companies, and I was able to make an important move that has been a life-altering, exciting change for me.
  • Bill W. – Good information! I had forgotten to study the technical questions, did that this morning and I felt I aced my technical interview just now  Thanks Dave!
    • GO now!!! Dave is why I have the best job I have ever had!!!
  • Daniel I. – Great presentation because you made me realize that I’m not doing enough to better my career! You struck a chord when you said we should keep our resume up-to-date and on-hand at all times. Thanks for helping me realize something I should have been doing a long time ago. Your DVD is very helpful. The fact that you have hiring managers and recruiters giving interviewing tips is great. I’m glad I bought it!
  • Ken – Thanks for the great presentations – really enjoyed all your presentations at the code camp, learned a lot about interviewing and gained a lot of insight into how recruiting process works.
  • Stacy P. – An invaluable presentation for less experienced developers and a great review for senior developers that should know better.

Please take the How Do You Find A Job survey before attending this session (you could win a free copy of my Rock Your Technical Interview DVD).

You can purchase a DVD for this session (sponsored by AbleForce) for only $15 (credit cards accepted) or purchase online by clicking here.

Röck Yoür Cöde With Defensive Programming ™

This is a companion session to the “Rock Your .NET Coding Standards” that takes writing better code to the next level. Do you enjoy receiving bug tickets from QA? Didn’t think you would, so this session will provide solid practices that I have been using for most of my programming career to check-in to source only rock solid code. You will learn my #1 mantra, along with 13 rules, that I use while writing code that allows me to write new code (features) and stay out of maintenance mode hell.

Please take my Coding Standards Survey before attending this session (you could win a free copy of my Rock Your Code DVD).

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Check out the Coding Standards For The Real World webcast I did for SubMain.com.

Shop the "Rock The Nation Tour" store by clicking here. 
Anyone seen wearing a t-shirt from the store will win 
some geeky swag!

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

Anyone seen with any item from my Code Camp store, will win some cool swag!

dotNetDave Rocks The dotNetGroup.org

I hope everyone in the Las Vegas area and attendees of IT/Dev Connections will attend this special meeting of The dotNet Group.org on Thursday September 18th. Below is the session I will be doing:

Rock Your Code With Visual Studio Add-ins

This session will focus on my must have Visual Studio add-ins and other tools that makes programming faster and easier (and makes you look like a rock star programmer). All the tools that are either free or very affordable. Tool categories include add-ins for debugging and profiling and more. These tools are designed to impress your boss and get you home at a reasonable time. This session is packed full of demonstrations! Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

A few of the demos from this session are already online: – https://google.com/+SubMainSoftware

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

Don’t Show Exception Message To Users

Today, I went to a web site to enter time for a contract I’m working on and I got this:

ScreenShot

 

 

 

 

 

 

 

Never, ever, ever display messages like this to your users. Number one it makes no sense to them. Number two it could reveal some information that could be used to hack your site. In ASP.NET sites, like this one, always direct the user to a custom error page and display something that makes more sense to them. It’s easy to set this up, click here for a great article about this.

Also, make sure you log the actual error to make it much easier to figure out what went wrong.

dotNetDave Rocks Visual Studio Live! Orlando 2014

VSLive!For the first time the  dotNetDave “Rock The Nation Tour” is coming to Visual Studio Live! in Orlando on November 17-24th! I hope you will attend my sessions below.

Röck Yoür Cöde Using Code Contracts

This session will introduce developers to the new powerful new feature that is part of the .NET 4.5 framework called Code Contracts. Code Contracts brings the advantages of design-by-contract programming to .NET programming. Contracts are used to improve testing via run-time checking, enable static contract verification, and documentation generation. Sit close and you just might catch a custom dotNetDave guitar pick. Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Röck Yoür Cöde With Visual Studio Add-ins™

This session will focus on my must have Visual Studio add-ins and other tools that makes programming faster and easier (and makes you look like a rock star programmer). All the tools that are either free or very affordable. Tool categories include add-ins for debugging and profiling and more. These tools are designed to impress your boss and get you home at a reasonable time. This session is packed full of demonstrations! Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

A few of the demos from this session are already online: – https://google.com/+SubMainSoftware

You can purchase a DVD for this session (sponsored by ComponentOne) for only $15 (credit cards accepted) or purchase online by clicking here.

Shop the "Rock The Nation Tour" store by clicking here. 
Anyone seen wearing a t-shirt from the store will win 
some geeky swag!

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

Anyone seen with any item from my Code Camp store, will win some cool swag!

dotNetDave Rocks SQL Saturday #340

I hope everyone in southern California will make it to the SQL Saturday #340 San Diego on September 20th. Not in San Diego? Well the weather is always awesome here! Below are the session I am doing this year.

Please click here to donate to the tour to keep the buses rolling (gas prices are going up)!

Rock Your Technical Interview

Have you ever not gotten a job because you weren’t prepared for the interview? Would you like a big raise? Do you need motivation to rock your career? I’ve interviewed 100′s of software developers and will share my knowledge on how to survive, what we look for and even divulge some of the secrets we use during the process. This session (62.5% new material for 2014) will include crazy and strange interview stories from engineers just like you! This session includes tips to get you started, working with recruiters, getting prepared, the technical interview and more. You will also learn what is the #1 question you need to ask during an interview… it’s a game changer! Sit close and you just might catch a custom dotNetDave guitar pick. Some of some of them will win you free software!

New: Rocking Your Technical Interview with David McCarter interview on dotNetRocks!

Here’s What People Are Saying About This Session

  • Chris S. – I wanted to thank you for your DVD on Technical Interviews. I attended your presentation at Desert Code Camp in 2012 and purchased the DVD. Your guidance on how to handle technical and even non-technical questions gave me great support and confidence going into a round of interviews I had. That confidence translated into performance, as I was able to receive attractive offers from multiple companies, and I was able to make an important move that has been a life-altering, exciting change for me.
  • Bill W. – Good information! I had forgotten to study the technical questions, did that this morning and I felt I aced my technical interview just now  Thanks Dave!
    • GO now!!! Dave is why I have the best job I have ever had!!!
  • Daniel I. – Great presentation because you made me realize that I’m not doing enough to better my career! You struck a chord when you said we should keep our resume up-to-date and on-hand at all times. Thanks for helping me realize something I should have been doing a long time ago. Your DVD is very helpful. The fact that you have hiring managers and recruiters giving interviewing tips is great. I’m glad I bought it!
  • Ken – Thanks for the great presentations – really enjoyed all your presentations at the code camp, learned a lot about interviewing and gained a lot of insight into how recruiting process works.

Please take the How Do You Find A Job survey before attending this session (you could win a free copy of my Rock Your Technical Interview DVD).

You can purchase a DVD for this session (sponsored by AbleForce) for only $15 (credit cards accepted) or purchase online by clicking here.

More Info

All slides and videos can be found here: http://www.slideshare.net/dotNetDave and on YouTube.

Wear your favorite concert t-shirt to my sessions and be in the running to win free software!

Formatting LINQ Statements

Language-Integrated Query (LINQ) was introduced in Visual Studio 2008/ .NET 3.5 and was actually one of my favorite features. It makes writing queries so much easier, especially for XML and object collections. Even though Visual Studio 2013 auto-formats the queries better, there is even a even better way to make them more readable.

Here is how Visual Studio 2013 auto-formats a LINQ query:

var query = from p in persons
            where p.Age > 30 && p.HomeAddress.City == "Los
                                                      Angeles"
            select new
              {
                  Name = string.Format("{0} {1}",
                             p.NameFirst, p.NameFirst),
                    SSN = p.SSN
              };

After working with LINQ ever since it came out, I have come up with the following formatting that I like better because it’s easier to read:

var query = from
               p in persons
            where
                p.Age > 30 &&
                p.HomeAddress.City == "Los Angeles"
            select new
                {
                    Name = string.Format("{0} {1}",
                               p.NameFirst, p.NameFirst),
                    SSN = p.SSN
                };

Indent on each LINQ keyword like from, were etc. and then as it makes sense in the select statement. Also put each logic operator on it’s own line. This is a short LINQ statement but when it gets to be a very large one this formatting makes it much easier to read.