Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
50 Things You've Been Doing Wrong in C# and .NET Core
Rating: 4.3 out of 5(40 ratings)
320 students

50 Things You've Been Doing Wrong in C# and .NET Core

Avoid common C# mistakes to improve your apps' productivity
Last updated 3/2020
English

What you'll learn

  • Deeply understand popular data structures (such as lists, arrays, LinkedList, HashSet, and dictionaries) and use the most efficient one depending on the problem you are trying to solve
  • Persist your data to a database properly by learning about efficiency and concurrency aspects when using the Entity framework
  • How to use HTTP verbs, and HttpClient properly, and classify your resources appropriately
  • Why circular dependencies are bad and how to avoid chatty traffic, eventually leading to more robust microservices
  • How to use SOLID principles the right way with improved code quality and readability
  • Identify and fix common programming problems with proven design patterns
  • Effectively debug, design, and secure your code
  • Navigate the complicated world of microservices and deliver robust RESTful APIs that follow the best industry standards

Course content

11 sections51 lectures2h 48m total length
  • The Course Overview2:15

    This video provides an overview of the entire course.

  • Misunderstanding Pass by Reference2:39

    In this video, we will learn about Pass by Reference.

       •  Understand how references are passed by

       •  Observe assigning a reference doesn't change the actual reference

       •  Use ref keyword to modify the original reference

  • Misunderstanding Dispose and Garbage Collector Relation4:46

    In this video, we will learn how developers usually mix up disposing and garbage collection.

       •  Create a disposable object

       •  Dispose it

       •  Observe if the object is still alive

  • Incorrectly Implementing Equals and GetHashCode4:29

    In this video, we will learn how to implement Equals and GetHashCode correctly.

       •  Override Equals properly

       •  Override GetHashCode properly

       •  Understand GetHashCode doesn't have to be unique

  • Handling Exceptions Correctly3:07

    In this video, we will learn where and how to handle exceptions.

       •  Spot the exception location

       •  Move as high as possible in the call stack

       •  Add exception handling if necessary or consider not implementing handling at all

  • Misunderstanding Virtual and Override4:56

    In this video, we will learn which method is called if there is a virtual override pair.

       •  Create a virtual method

       •  Override in the derived method

       •  Observe regardless the reference type the actual object's method is called

  • Ignoring Compiler Warnings0:58

    In this video, we will learn how to deal with warnings.

       •  Always observe the warnings

       •  Either suppress or fix them

       •  Without existing warnings new warnings will easily take your attention

  • Test your knowledge

Requirements

  • Please note that this course assumes familiarity with C#, .NET Core, and ASP .NET Core, together with Visual Studio (2017 or 2019).

Description

Professional software development involves many different skills. As a C# developer, you must be skilled in the C# language and the .NET Core runtime. With this course, you'll take your C# and .NET Core skills to the next level by avoiding common mistakes when coding, using design patterns, developing microservices, persisting your data, securing your application, and even debugging problems.

Learning the basics of a language or platform can easily be done by following a course/book and with some hands-on practice. The path to becoming a software developer encounters many edge cases. During this course, you'll learn from my hard-earned experience, garnered from real-life situations, regarding the C# language and .NET platform. You can take this course as a vaccination against future coding infections!

By the time you finish this course, you will have developed your skills to "sniff out" coding issues effectively and avoid mistakes. Whatever your issues, the aim of this course is to take you to the 'Bring it on!' point when it comes to solving your .NET and C# problems.

Please note that this course assumes familiarity with C#, .NET Core, and ASP.NET Core, together with Visual Studio (2017 or 2019).

About the Author

Onur Gumus works as a lead software engineer in Dubai UAE. He has 15 years of experience in .NET and web development. He is a functional programming enthusiast and has completed many large projects with ASP.NET.

Who this course is for:

  • Beginners, experts, and anyone familiar with C#, .NET Core, and ASP .NET Core who would like to learn the best ways to do things in .NET Core and related tools will learn something new and benefit from this course.