Code Refactoring for .NET

Code Refactoring for .NET
We look at the approaches and methods for improving source code readability in C#. You’ll practice refactoring of small programs, focusing on various aspects of improving the existing code.
Продолжительность
24 часы
Тип курсу
Онлайн
Мова
Англійська
Продолжительность
24 часы
Місцезнаходження
Онлайн
Мова
Англійська
Код
DEV-006_NET
Тренінг для 7-8 чи більше людей? Налаштуйте тренінги для ваших конкретних потреб
Code Refactoring for .NET
Продолжительность
24 часы
Місцезнаходження
Online
Мова
English
Код
DEV-006_NET
€ 550 *
Тренінг для 7-8 чи більше людей? Налаштуйте тренінги для ваших конкретних потреб

опис

Have you ever encountered source code is difficult to read? Where you spend a lot of time trying to understand what the developer wanted to express in that particular code fragment.

In this training we’ll show you how to not become that developer. You will learn about code smells, why and where they appear, and what techniques are used to remove them. We’ll start from simple problems in a single function and end with problems of communication between classes. We will also discuss what should and what should not be done to make your code easy to read.
сертифікат
Після проходження курсу видається сертифікат
на бланку Luxoft Training

Цілі

  • Provide an overview of code smells
  • Best practices for improving the readability of existing code
  • How to identify problems in C# program code
  • How to improve readability of C# source code

Цільова аудиторія

  • C# developers with 1 to 2 years of experience

передумови

  • General basic knowledge of programming
  • Basic knowledge of script languages
  • Understanding code logic flows

Дорожня карта

Refactoring
  • Introduction
  • The notion of refactoring, purpose of refactoring
  • Test-driven development

Code smells
  • Overview
  • Definition of code smell
  • Good design principles
  • Code smells in tests, smells in databases (overview)
  • Smells in architecture, smells in personnel management

Common problems in code
  • Organizing data
  • Fields
  • Data arrays
  • References and values
  • Code fields
  • Simplifying conditional expressions
  • Simplifying method calls
  • Dealing with generalization
  • Composing methods

Smells inside a class
  • Easily discovered problems
  • Names
  • Excessive complexity
  • Duplication
  • Conditional logic

Moving features between objects
  • Single responsibility principle
  • Cohesion
  • The Law of Demeter
  • Moving methods/fields
  • Extracting a class
  • Inline class
  • Hiding delegates
  • Remove middle man
  • Extension methods

Problems in communication between classes
  • Data. Inheritance
  • Responsibility
  • Adopting changes
  • Library classes
Залишилися запитання?
Зв'яжітьсяз нами