> For the complete documentation index, see [llms.txt](https://hansanguk0222.gitbook.io/peanut/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hansanguk0222.gitbook.io/peanut/refactoring.md).

# Refactoring

- [Chapter 01. 리팩터링, 첫 번째 예시](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-01..md): 리팩터링이 왜 필요하고 어떤 것인지 간단히 설명해주는 챕터
- [Chapter 06. 기본적인 리팩터링](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06..md): 가장 기본적인 리팩터링을 설명해주는 챕터
- [6-1. 함수 추출하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-1..md)
- [6-2. 함수 인라인하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-2..md)
- [6-3. 변수 추출하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-3..md)
- [6-4. 변수 인라인하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-4..md)
- [6-5. 함수 선언 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-5..md)
- [6-6. 변수 캡슐화하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-6..md)
- [6-7. 변수 이름 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-7..md)
- [6-8. 매개변수 객체 만들기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-8..md)
- [6-9. 여러 함수를 클래스로 묶기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-9..md)
- [6-10. 여러 함수를 변환 함수로 묶기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-10..md)
- [6-11. 단계 쪼개기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-06./6-11..md)
- [Chapter 07. 캡슐화](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07..md)
- [7-1. 레코드 캡슐화하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-1..md)
- [7-2. 컬렉션 캡슐화하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-2..md)
- [7-3. 기본형을 객체로 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-3..md)
- [7-4. 임시 변수를 질의 함수로 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-4..md)
- [7-5. 클래스 추출하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-5..md)
- [7-6. 클래스 인라인하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-6..md)
- [7-7. 위임 숨기기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-7..md)
- [7-8. 중재자 제거하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-07./7-8..md)
- [Chapter 08. 기능 이동](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08..md)
- [8-1. 함수 옮기기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-1..md)
- [8-2. 필드 옮기기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-2..md)
- [8-3. 문장을 함수로 옮기기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-3..md)
- [8-4. 문장을 호출한 곳으로 옮기기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-4..md)
- [8-5. 인라인 코드를 함수 호출로 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-5..md)
- [8-6. 문장 슬라이드하기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-6..md)
- [8-7. 반복문 쪼개기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-7..md)
- [8-8. 반복문을  파이프라인으로 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-08./8-8..md)
- [Chapter 09. 데이터 조직화](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-09..md)
- [9 - 1. 변수 쪼개기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-09./9-1..md)
- [9 - 2. 필드 이름 바꾸기](https://hansanguk0222.gitbook.io/peanut/refactoring/chapter-09./9-2..md)
