generated from jetbrains-academy/java-course-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
RefactoringAndItsPurpose/RefactoringTechniques/Theory/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Task 1/2: Refactoring techniques | ||
|
||
Developers refactor code to achieve different goals. | ||
Sometimes refactoring is the goal in itself: for example, splitting one monolith project into several microservices. | ||
It affects many parts of the codebase, and it’s called _**root-canal**_ refactoring. | ||
Sometimes, refactoring is the goal in itself: for example, when splitting one monolith project into several microservices. | ||
It affects many parts of the codebase and is called _**root-canal**_ refactoring. | ||
|
||
In another case, developers may perform refactorings while solving other tasks, such as developing a new feature or | ||
In other cases, developers may perform refactorings while solving other tasks, such as developing a new feature or | ||
fixing a bug, and it’s called _**floss refactoring**_. | ||
In this case, refactoring is secondary to the main changes. | ||
|
||
There are two ways to perform refactorings: | ||
- _Manually_: it is time-consuming and error-prone. | ||
- _Using automatic refactorings_: it requires knowledge of how refactoring works and of the IDE features to invoke it. | ||
|
||
There are many refactoring techniques. In this course, we will cover the most popular ones that are supported by IDEs, more specifically, by IntelliJ IDEA. Refactoring techniques themselves are language-independent and may be applied in different languages and IDEs. | ||
There are many refactoring techniques. In this course, we will cover the most popular ones supported by IDEs, more specifically, by IntelliJ IDEA. However, refactoring techniques are language-independent and may be applied across different languages and IDEs. |