Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

아이템 5 + 6. 자원을 직접 명시하지 말고 의존 객체 주입을 사용하라, 불필요한 객체 생성을 피하라 #4

Open
tidavid1 opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
객체 생성과 파괴 2장 객체 생성과 파괴

Comments

@tidavid1
Copy link
Member

No description provided.

@tidavid1 tidavid1 added the 객체 생성과 파괴 2장 객체 생성과 파괴 label Jan 11, 2024
@tidavid1
Copy link
Member Author

의존에 관한 부분은 SOLID의 DIP를 통해서 공부할 수 있었고, Spring Framework의 Bean Factory를 활용해서 자동으로 주입되기 만들어서 사용할 수 있기에 의존 객체 주입을 하는 이유에 대해서 공부해 볼 수 있는 부분이었다.
자바를 사용하다 보면 메모리 관리를 GC를 통해서 자동으로 처리해주기에 객체 생성에 대해서 느슨하게 생각할 수 있다. 이러한 부분에서 불필요한 객체 생성을 하지 않는 방향으로 코드를 작성하는 부분이 매우 중요하다고 생각한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
객체 생성과 파괴 2장 객체 생성과 파괴
Projects
None yet
Development

No branches or pull requests

3 participants