was successfully added to your cart.

All posts by Tim Corey

C# Dependency Injection – Video and Resources

By | C# | 8 Comments

The What, How, and Why Dependency Injection in C# can be a really confusing topic. Yet, when done right, Dependency Injection can be one of the best things you do for your application. It allows you to disconnect pieces of your application from each other easily and it allows you to test the various parts of your application independently. Today, I am going to get you started using Dependency Injection using a free tool called Autofac. We will take a small sample application and first apply the Dependency Inversion Principle (the D in SOLID). Then, we will wire up Autofac…

Read More

C# Access Modifiers – Video and Resources

By | C# | No Comments

The What, How, and Why An access modifier in C# specifies who can see and use a resource. You probably are familiar with public and private. We use those a lot but did you know that there are others? In this video, I am going to cover six different access modifiers and when you would use each. We are also going to discuss why we have various modifiers and it isn’t just about security.  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 Code from the video: …

Read More

SQLite in C# – Video and Resources

By | C# | 2 Comments

Using a Simple, Powerful, Portable Database Have you ever wanted to store data for an application but didn’t want to deal with the hassle of a full database server? Or maybe you wanted to have one database per installation. Those and many other scenarios are a perfect fit for SQLite. Today I am going to show you how to get started using SQLite in C#. We will build a small database, attach it to a C# project, and then wire up our project to read from and write to the database.  Resources mentioned in the video Patreon Signup for…

Read More

Refactoring in C# – Video and Resources

By | C# | No Comments

Improving an Existing Application Most of your development career will be spent fixing and improving existing code. That is called refactoring. In this video, I am going to walk you through a project that is badly in need of some refactoring. Along the way, I will show you some techniques for spotting areas that should be refactored. By the end of the demo, what was a jumbled mess of code should be cleaned up so that it is more readable and reusable.  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

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 | 4 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