Rock Your Code: Coding Standards for Microsoft .NET (7th Edition)

Coding Standards Book Cover-E7@0.25xI’m excited to announce the 7th edition of my coding standards book for Microsoft .NET! This book is a compilation of common Microsoft .NET coding standards in use today. In the past, for languages like Visual Basic, Microsoft published coding standards in a single document that developers could follow or use as a basis to build their own standards. Microsoft has not provided this with .NET. They have provided some standards on their document website, but you would have to dig through many web pages, and there are few or no examples provided.

The purpose of this book is to consolidate the standards on the site, enhance them with additional standards, and take guidance from Microsoft code-checking programs like Visual Studio Analyze, FXCop, and StyleCop. The code examples in this book show real-world usage of coding standards. Also included in this book is proper architecture for code and apps that will help the reader write rock-solid apps with fewer issues that will lead to attracting and keeping users.

This 7th edition covers an evolving set of standards that includes over 130 new pages! New chapters include defensive programming, development with Visual Studio, code quality, what can be done to make code quality better, programming acronyms, and more! I use this book every day and I hope you will too. This book is written for Visual Studio 2019 & .NET 5+.buyonamazon

Also purchase from Amazon: UKDEFRESIT,  JPCN

“David McCarter once again demonstrates his knack for pulling best practices into one cohesive unit with his new book. This book includes everything from how to set up your project to how to declare variables on how to use exception handling. It is a great place to start building your own coding standards.”
– Deborah Kurata

Click here to watch info in the book recorded live at a conference!

Rock Your Code: Code & App Performance for Microsoft .NET (3rd Edition)


I am announcing the 3rd edition of my book titled Rock Your Code: Code & App Performance for Microsoft .NET, now available on Amazon. I worked on this book for a big chunk of 2022 so I hope that you and your team will find it useful.

How fast your code executes is very important for your users and back-end server processes. This is even more important for the future as more and more users, use your app or services. Thinking about performance while you are first writing the code will save tons of time and money in the future! There are many ways to write the same block of code, some more performant than others.

Short of requiring your users to purchase faster machines with more memory and faster processors or the same for back-end servers, this book will show you the best practices when writing business applications, so your code can run as fast as possible and could lead to cost savings for your servers or cloud services.

This book discusses and shows common code performance guidelines for Microsoft .NET with example code. Topics include general tips, string performance, reference type & structure performance, collection performance, internationalization & localization, serializing objects, how to analyze code for performance problems, how to benchmark your projects, and more. This new edition of the book includes data from 6,678 benchmark tests and brand-new chapters on how to speed up performance and benchmark your projects using NuGet packages.

This book is written for Microsoft .NET 6 & 7 using Visual Studio 2022. All examples in this book are in C#. Most of these tips should still be valid if you are using an older or newer version of Microsoft .NET.buyonamazonClick on one of these links to purchase!

Click here to watch info in the book recorded live at a conference!

Rock Your Career: Surviving The Technical Interview (5th Edition)

Tech Interview 5th Edition@0.5xHave you ever not gotten a job because you weren’t prepared for an interview? Would you like a big raise? Do you need the motivation to rock your career? I’ve interviewed hundreds of software developers in the past 26 years and will share my knowledge on how to survive the process, what we look for, and even divulge some of the secrets we use during the process.

Whether you are looking for a new position within your company or at a new company, you need this book. Included are crazy and strange interview stories from myself and engineers just like you! Learn tips to get you started, working with recruiters, getting prepared, the technical interview, and more. You will learn what is the #1 question you need to ask during an interview… it’s a game-changer! This 5th edition has new information and an interview questions workbook!


Click here to watch info in the book recorded live at a conference!