was successfully added to your cart.

All posts by Tim Corey

Delegates in C# – Video and Resources

By | C# | No Comments

A practical demonstration, including Action and Func Delegates in C# are really powerful but most people don’t know how to use them effectively, if at all. Today I am going to show you what delegates are, how to use them, why they are useful, and really how to take your code to the next level. Along the way I will cover the special types of delegates named Func and Action. Now if all of these new words seem intimidating, don’t worry. This topic is actually really simple at its foundation. Yes you can do some complex things with delegates but…

Read More

Debugging in C# – Video and Resources

By | C# | No Comments

Finding and Fixing Problems in Your Application One of the most overlooked skills in a developer’s toolbox is the ability to find and fix problems. Too often new developers avoid learning to diagnose problems because they want to get back to real programming but the reality is that you will probably spend more time debugging problems than you will building new applications. Today I am going to walk you through the five steps I go through every time I fix an error.  Resources mentioned in the video Patreon Signup for behind-the-scenes access: https://www.patreon.com/IAmTimCorey Sign up for my mailing list…

Read More

C# Events – Video and Resources

By | C# | No Comments

Creating and Consuming Events in Your Application You almost certainly know what an events are in C#. Even if you don’t, you’ve probably used them before. What you may not know is how to create your own events. In this video, I am going to introduce you to events and walk you through creating your own events. We will also discuss the features we can take advantage of and what best practices are that we should know about.  Resources mentioned in the video Patreon Signup for behind-the-scenes access: https://www.patreon.com/IAmTimCorey Sign up for my mailing list here: https://iamtimcorey.com/general-sign-up Initial Source…

Read More

Where Should I Validate Data in my Application?

By | Ask Tim | 2 Comments

Which Layer is the Right Layer?   When you are writing an application that has many layers, the question often comes up as to where do you validate. I have heard a number of answers on this but I think there is, in general, one right (or at least best practice) answer: everywhere. Let’s think about a web application I built for my company. It has a JavaScript user interface, a C# WebAPI middle layer, and a SQL Server database (very simplified version of our application). Now we can talk through the layers in my application and you can apply…

Read More

C# Generics – Video and Resources

By | C# | No Comments

The What, Why, and How Have you ever used a List of T and wondered what the T meant? Or maybe you heard the term generics but you didn’t really know what that was or why it was important. Maybe you have been using generics for a while but didn’t know you could create your own. Whatever the case, this video is for you. In this video, I am going to lay the foundation of what generics are and what makes them so powerful. Then, we will look at a demonstration I have set up on how you can keep…

Read More

Should I say “I Don’t Know” to an Interviewer?

By | Ask Tim | 3 Comments

Acting Confident vs. Being Truthful I could give you the easy answer (tell the truth) and it would be true up to a certain point but there is much more to this situation. Let’s start with a hypothetical question: “How would you fix the hyperdrive on the Millennium Falcon?” Obviously a nonsensical question but it gives us somewhere to start from. The truth is that I have no idea how to accomplish this task. Now that we have question we don’t know the answer to, let’s look at what we can do. Step 1 – State the Truth Be very…

Read More

Interfaces in C# – Video and Resources

By | C# | 2 Comments

The What, Why, and How What are interfaces, how do you use them, and what are they good for? Those are the questions I get a lot. They also happened to be my questions when I first learned about interfaces. At first, I didn’t really understand why we needed interfaces. Now, after working with them for years, I understand just how indispensable they are. In this video, I am going to answer all of those questions about interfaces by showing off how they can be used in actual code.  Resources mentioned in the video Sign up for my mailing…

Read More

Which Certifications Should I Get as a C# Developer?

By | Ask Tim | No Comments

Showing Off Your C# Skills Let’s start off by saying that getting a certification is not typically the best way to show a potential employer that you are a good candidate. There are a lot of better ways to do that. The problem with certifications is that people study for the test instead of actually learning how to do the work. Microsoft has worked to make the tests more real-world focused, which does make them better but nothing replaces experience. With that being said, being certified does differentiate you from your peers so if you have the money and the…

Read More

Design Patterns: Dependency Inversion Principle – Video and Resources

By | C# | No Comments

Tackling the D in SOLID When you are writing code, are you doing it right? That is a question that worries a lot of people, and it should probably at least be something every developer thinks through. Design patterns are best practice concepts that we can implement into our code to make it better in some way. Think of them as guardrails that keep our code safe. In this video, we are going to look at the fifth and final entry in the famous SOLID principle. The D stands for Dependency Inversion Principle. We are going to dive into what…

Read More

I’m Getting a “Cannot insert the value NULL into column ‘id'” Message in SQL

By | Ask Tim | One Comment

SQL Insert Error Message This is a fairly common issue. You go to insert data into SQL, either directly or through C# or another programming language only to get the error “Cannot insert the value NULL into column ‘id’”. It probably continues by saying “column does not allow nulls. INSERT fails.” Something like this: You look at your SQL statement first, to see if that is the issue. Here is what mine looks like: Pretty simple, right? Now if you look at the table, you see the following: OK, so there is the Id column that it says is the…

Read More