> For the complete documentation index, see [llms.txt](https://koseungbin.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koseungbin.gitbook.io/wiki/books/undefined/part-1./undefined.md).

# 들어가기

## **지저분해지는 코드**

객체 지향적으로 설계하지 않을 경우, 구조는 같지만 내부 상태만 다른 **구조의 중복**이 발생한다. 이는 코드 수정이 어렵게 되므로 새로운 요구 사항이 발생했을 때 반영하는데 오랜 시간이 걸리고 버그 위험을 지닌다.

## **수정하기 좋은 구조를 가진 코드**

> 요구 사항 변경시, 그 변화를 좀 더 수월하게 적용할 수 있다는 장점을 가지고 있다.

1. 새로운 기능 추가시 기존 코드가 영향을 받지 않음
2. 기능 분리가 잘 되었을 경우, 코드분석 및 수정이 용이

위의 장점을 얻기 위해, **객체 지향 기법**을 사용한다. **객체 지향 기법**을 적용하면 소프트웨어를 쉽게 변경할 수 있는 **유연함**을 얻을 수 있고 이는 곧 **요구 사항의 변화를 빠르게 수용**할 수 있다는 것을 뜻한다.

## **소프트웨어의 가치**

> 소프트웨어의 가치는 사용자가 요구하는 기능을 올바르게 제공하는 것이다.
>
> 소프트웨어는 변화할 수 있어야 한다.
>
> 변화 가능한 **유연한 구조**를 만들어 주는 핵심 기법중의 하나가 바로 **객체 지향**이다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://koseungbin.gitbook.io/wiki/books/undefined/part-1./undefined.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
