'Y'

Code Refactoring for C++

Our training focuses on the approaches and methods for improving source code readability in C++. During it you will have the chance to practice refactoring small programs, focusing on various aspects of improving the existing code.
Code: DEV-006_C++
Duration: 24 hours

Description

Is your source code difficult to read? Do you spend a lot of time trying to understand what the developer wanted to do with a particular code fragment?

If you find yourself in these types of situations, this training will be useful for you. You’ll learn about code smells, why and where they appear, and what techniques are used to remove them. We will 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.

Roadmap

Refactoring
  • Introduction
  • 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
  • Smells in architecture
  • Smells in personnel management

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

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

Moving feature between objects
  • Single responsibility principle
  • Cohesion
  • The Law of Demeter
  • Moving methods/fields
  • Extract class
  • Inline class
  • Hiding delegates
  • Remove middle man

Problems in communication between classes
  • Data
  • Inheritance
  • Responsibility
  • Adopting changes
  • Library classes

Objectives

  • Understand code smells
  • Discover best practices for improving existing code readability
  • Identify problems in C++ program code
  • Improve readability of C++ source code

Target Audience

  • C++ developers with 1 to 2 years of experience

Prerequisites

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


Schedule in Online Prices
Course is scheduled in: Online
6.09.2021 - 13.09.2021
Time: 13:30-17:30
Timezone: UTC +3
City: Online
Duration: 24 hours
Language: Romanian
Trainer
Stoica, Marius
-15% €410
€349
Register for the next course
+
Registering in advance ensures you have priority. We’ll notify you when we schedule the next course on this topic
6.09.2021 - 13.09.2021
Time: 13:30-17:30
Timezone: UTC +3
City: Online
Duration: 24 hours
Language: Romanian
Trainer
Stoica, Marius
-15% €410
€349
Register for the next course
+
Registering in advance ensures you have priority. We’ll notify you when we schedule the next course on this topic
Online €410
Bucharest €410
Krakow €410
Wroclaw €410

Invoices for the course will be issued in local currency. All fees above can change according to training location and delivery mode and are subject to change while scheduling. Price does not include VAT.

Courses you may be interested in:
C-003
40 hours
SCRIPT-002
20 hours

Sign up

Choose dates
First Name*
Last Name*
Company
Email*
Phone
Your Comment
Still have questions?
Connect with us
Thank you.
Your request has been received.
Thank you!
The form has been submitted successfully.