C# Developers: Learn the Art of Writing Clean Code (Udemy.com)

Learn the techniques to write better C# code and stand out in technical interviews

Created by: Mosh Hamedani

Produced in 2021

icon
What you will learn

  • Tell the difference between good and bad good
  • Identify the smells in your code
  • Refactor your code in a safe and fast way using ReSharper
  • Write clean code that reveals the intent
  • Decompose long methods into smaller, more maintainable ones
  • Refactor lengthy switch statements into an object-oriented design
  • Simplify nested / complex conditional blocks
  • Remove duplicated code
  • Design the proper signature for your methods

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 90 / 100

icon
Course Description


These days, anyone can code. But if you want to get a job as an intermediate or senior-level C# developer, you must know how to write clean, maintainable code.

As Martin Fowler said:
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler

Poorly written code is hard to understand, maintain and test. But what does separate poorly written code (aka code that smells) from beautiful code that talks?

In this course, Mosh, author of several best selling C# courses on Udemy, walks you through common code smells found in C# programs and shows you how to refactor them using ReSharper. Refactoring is changing the design of the existing code without changing its external behaviour.

In every lecture, you'll see an example of a popular code smell with Mosh's commentary about what is wrong with that code and more importantly, why. You'll then learn how to change the code in a safe and step-by-step fashion while minimising breaking changes. All the source codes presented in the lectures are available for download so you can practice these techniques on your own.

By the end of this course, you'll be able to
  • Spot the smells in your code
  • Refactor your code using safe and fast refactoring techniques with ReSharper
  • Write clean code that is more readable and maintainable
  • Break long methods into smaller, more maintainable ones
  • Simplify nested / complex conditional blocks
  • Design the proper signature for your methods
  • Remove duplicated code
  • Refactor long switch/case blocks into an object-oriented design using polymorphism
  • And more...


Understanding and using these techniques are absolutely essential skills that every C# developer must have.

WHAT OTHER STUDENTS WHO HAVE TAKEN THIS COURSE SAY:

"This is a must have tutorial for every programmer. It includes the most valuable tips I have received for 5 years. Thank you Mosh you helped me a lot." -Se He

"Just Love It! Its the 4th course i bought from Mosh, and i do not regret spending any money. I'm working as a developer for 2-3 years now but keep loosing myself in code written by me / others. I can finally understand why and what to change. Thanks Mosh!" -Klaus Prnster

"This course was really great at explaining clean coding practices in a way which is easy to follow and understand. Highly recommended!" -Edin Livnjak

"Another fantastic course from Mosh. I have't seen another course that explains these essential concepts so clearly. In my opinion all Developers should be taught this type of thing before being let loose within a work environment." -Mark Baker

"This course is awesome! It's highly detailed (but easy to understand nonetheless). It has, for me personally, the right amount of information density; Mosh picked exactly the right speed of teaching and progressively intensifies the content, which is great! It is definitively worth the time and money, and one can clearly see the passionate effort the author has put in the creation of these materials. Big respects!!" -Raphael Beck

100% MONEY-BACK GUARANTEE
This course comes with a 30-day money back guarantee. If you're not happy, ask for a refund, all your money back, no questions asked.

So, do you want to take your C# skills to the next level?
Enrol in the course now and you'll see the difference between clean and smelly code within a few minutes.

Who this course is for:
  • Any C# developer who has an interest in improving the quality of their code

icon
Instructor Details

placeholder

Hi! My name is Mosh (Moshfegh) Hamedani! I'm a passionate software engineer with two decades of experience and I've taught over 3 million people who to code or how to become professional software engineers through my YouTube channel and online courses.
My goal is to make software engineering fun and accessible to everyone. That's why my courses are simple, pragmatic and free of BS.

icon
More courses by Mosh Hamedani

Unit Testing for C# Developers

$11.99

C# Advanced Topics: Prepare for Technical Interviews

$11.99

C# Intermediate: Classes, Interfaces and OOP

$11.99

C# Developers: Double Your Coding Speed with Visual Studio

$11.99

Angular Crash Course for Busy Developers

$11.99

The Complete Angular Course: Beginner to Advanced

$11.99

icon
More c# courses

C# For Beginners: Learn C# Programming From Scratch

$11.99

Language-Integrated Query  ( C# ) (LINQ)

$11.99

C# Memory Tricks: Learn How To Master The Garbage Collector

$11.99

C# - Complete A to Z C# Masterclass: Hints + Coding Tips

$11.99

Let's Code: C# Programming Exercises for Beginners

$11.99

C# Tutorial - Fundamentals for Beginners

$11.99

icon
Reviews

4.5

411 total reviews

5 star 4 star 3 star 2 star 1 star
% Complete
% Complete
% Complete
% Complete
% Complete

By Paul McKillop on 10/27/2020

very straightforward and clear. good pace.

By Abhijeet Kamble on 10/26/2020

Another masterpiece from Mosh. This will help me improve my code a lot. Looking for some more good courses from Mosh.

By Dylan Fenech on 10/24/2020

This course is a great way to learn not just about clean code and best practices, it also demonstrates helpful ways to use ReSharper as a refactoring tool, which ultimately makes programming easier and faster. Thanks Mosh!

By Tod Filer on 10/22/2020

This is like a commercial for refactor

By Slobodan on 10/21/2020

Good, but maybe to much resharper.

By Thomas Lison on 10/19/2020

Ja, der Kurs war gut geeignet. Man achtet nun mehr auf Codesmells (wo man vorher vielleicht auch keine erkannt hat.) Das Refactoring muss man sich aber auch erst trauen (wegen der Gefahr/Befrchtung etwas kaputt zu machen).

By Ashwitha Crasta Jerome Magdaline on 10/17/2020

Really helpful.

By Harry Nikitopoulos on 10/12/2020

Resharper is all over the place. However, this is not free. Visual studio 2019 has its own tricks, Mosh should rely on that version instead of something that is not available for free.

By Rohan Mukherjee on 10/11/2020

Great course, learned a lot. Went through very specifically, and very easy to learn from. Very descriptive.

By Gabriel Gomez on 10/11/2020

Always fan of Mr. C# Mosh!! I already take a few Mosh courses. This course definitely is a must-do course, if you want a professional C# software. A few best practices for development. Once again, Thank you Mosh

By Mike Kight on 10/9/2020

Very useful

By Vishwas Chaugule on 9/27/2020

very helpful course to improve coding