Wednesday, 13 January 2021

SOLID: The Single Responsibility Principle

 

Why should a class have only one reason to change? A quick look at the first SOLID principle.

Topics include:

  • SOLID Code
  • SRP
  • Single Responsibility Principle
  • Rock, Paper, Scissors, Lizard, Spock

C# Events

 

Most C# developers use events, but do you know how they relate to delegates? Have you ever implemented an event manually? All is explained here.

Topics include:

  • C#
  • Events
  • Delegates
  • Lambda expressions
  • Auto-implemented events
  • Manually-implemented events
  • add
  • remove
Related videos:

C# Delegates and Lambdas

 

C# programmers use delegates and lambdas every day. But do we really understand what they are and how the are related?

Topics include:

  • C#
  • Delegates
  • Lambda expressions
  • Func
  • Action
Related videos:

C# Null Forgiving Operator

 

One of the more obscure features of C#8 is the Null Forgiving Operator. Here's how it works, and when it can get you out of a bind.

Topics include:

  • C#
  • C#8
  • .NET Core
  • Nullable references
  • Null forgiving operator
  • null!
Related videos:

C# Nullable References

 

The biggest new feature in C#8 is nullable references. Here's a quick look at how they work and why you should use them.

Topics include:

  • C#
  • C#8
  • .NET Core
  • Composition
  • Association
  • Nullable references
  • Nullable values
Related videos:

C# async, await and Task

 

Just like JavaScript, C# has async and await keywords. Here we explore the similarities and differences between the two languages.

Topics include:

  • C#
  • async
  • await
  • Tasks
  • Task Parallel Library
  • Asynchronous programming
Related videos:

EF Core In-Memory DB Best Practices

 

In-memory databases are great for unit testing, but tread carefully if you want to avoid false positives - and worse, false negatives.

Topics include:

  • .NET Core
  • Entity Framework Core
  • Unit testing
  • Test Driven Development
  • Mocking
  • In-memory databases
Related videos:

The State Pattern

  How many developers does it take to change a lightbulb? With the State pattern, not very many. Topics include: The State Pattern Design Pa...