Refactoring in C#: The #1 Skill of Senior Developers
4.1 (7 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,179 students enrolled

Refactoring in C#: The #1 Skill of Senior Developers

Progress your career as a C# developer by using 35 simple refactoring techniques. Write clean code.
4.1 (7 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,179 students enrolled
Created by Kristijan Kralj
Last updated 5/2020
English
English [Auto-generated]
Current price: $125.99 Original price: $179.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3.5 hours on-demand video
  • 2 articles
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Minimise the risk of introducing bugs when changing code
  • Improve your existing code with refactoring
  • Structure the new code so it will be easy to change it in the future
  • Organize code so you can easily understand and change it
  • Use design patterns and other techniques to remove complicated conditional statements
Course content
Expand all 56 lectures 03:41:48
+ Introduction
4 lectures 14:04
What is Refactoring?
03:50
Source Code Used in the Refactoring Examples
00:07
+ Make Methods Smaller and Simpler
10 lectures 39:34
Inline Method
02:08
Inline Temp
01:59
Replace Temp with Query
04:50
Remove Assignments to Parameters
04:01
Replace Method With Method Object
06:25
Refactoring Session 1
06:19
Practice - Assignment
00:52
Practice - Solution
03:42
+ Move Methods and Fields Between Classes
10 lectures 38:34
Move Method
06:28
Move Field
07:39
Extract Class
03:41
Inline Class
02:16
Hide Delegate
02:50
Remove Middle Man
02:15
Introduce Extension Method
04:00
Refactoring Session 2
04:11
Practice - Assignment
01:12
Practice - Solution
04:02
+ Make Code Cleaner
10 lectures 01:03:42
Replace Array/List with Object
08:04
Replace Magic Number with Symbolic Constant
02:42
Replace Type Code with Enum
06:48
Replace Type Code with Subclasses
07:50
Replace Type Code with State/Strategy
09:21
Replace Conditional with Polymorphism
05:37
Replace Subclass with Fields
08:18
Refactoring Session 3
09:47
Practice - Assignment
00:11
Practice - Solution
05:04
+ Simplify Conditional Statements
9 lectures 25:20
Decompose Conditional
02:00
Consolidate Conditional Expression
02:35
Remove Duplicate Conditional Fragments
01:56
Remove Control Flag
02:35
Replace Nested Conditional with Guard Clause
03:50
Introduce Null Object
06:33
Practice - Assignment
00:30
Practice - Solution
03:29
+ Make Method Calls Simpler
11 lectures 39:48
Add Parameter
04:30
Remove Parameter
02:16
Introduce Parameter Object
04:44
Parameterize Method
03:28
Replace Parameter with Explicit Methods
03:43
Preserve Whole Object
03:44
Replace Parameter with Method Call
03:46
Replace Exception with If Statement
02:36
Refactoring Session 5
08:52
Practice - Assignment
00:20
Practice - Solution
01:49
+ Conclusion
2 lectures 00:46
Congratulations & Thank You
00:40
Bonus - Coupon for My Other Course
00:06
Requirements
  • Basic C# knowledge is required
  • No prior refactoring experience or knowledge is necessary - I'll teach you everything you need to know
  • A Mac or PC computer with access to the internet
  • No paid software required - you can follow this course by using Visual Studio Community (which is free to download)
Description

Welcome to the Refactoring in C# course. This course will teach you how to apply various refactoring techniques to improve your code.


I will take you step-by-step through every refactoring and teach you everything you need to know to improve as a C# developer.


The refactoring techniques you learn in the Refactoring in C# course will also help you if you follow test-driven development practice. With TDD and its Red-Green-Refactor, refactoring comes at the end of each cycle. After you write your tests and your code, refactoring will turn that code into a production-ready C# code.

Once you improve your codebase, you will be faster and more productive.


Throughout this course, you will see how to:

  • Eliminate longer methods in your C# code

  • Turn complex methods into its own C# classes

  • Safely move methods and features between classes

  • Remove if within an if within an if…. Kind of statements

  • Simplify conditional statements

  • Simplify method calls

  • Turn long parameter lists into a separate class

  • Remove unnecessary parameters

  • Use the Null Object design pattern to eliminate if checks for null

  • Use State or Strategy design pattern to eliminate switch statements

  • Turn messy C# code into a clean code


With the Refactoring in C# course you get:

  • Video lectures

  • Real-world practical demo for every refactoring technique

  • Access to the refactoring session, where you can see how to apply several refactorings to the same C# code to massively improve it

  • Practice assignments at the end of every section

After you finish this course, you will know how to improve any C# code, no matter how complex it is. The code you refactor will be clean and organized.


This course comes with a 30 days money-back guarantee. So, really you have nothing to LOSE and EVERYTHING to gain.


Are you ready to take your C# refactoring skills to the next level? Click the enroll button and I’ll see you in the class.


Who this course is for:
  • This course is for you if you already have some C# experience
  • This course is for you if you are an experienced C# developer and you want to improve existing code