정적 팩터리 메서드
-
이펙티브 자바 - 정적 팩터리 메서드책책책 책을 읽읍시다/프로그래밍 2023. 6. 22. 23:46
저자 : 조슈아 블로크(Joshua Bloch) 옮긴이 : 이복연 들어가며 2015년 11번가 인턴 때 중도포기, 2017년쯤 이랜드에서도 중도포기... 영화든 책이든 재미없더라도 끝까지 가고 보는 성격인데 왠지 이 책만큼은 재미있음에도 완독을 못했다. 이번에는 꼭 성공하길 바라는 마음에서 완독 전에 먼저 블로그 글을 올리는 배수진을 쳤다. 그땐 몰랐는데 지금은 당연하게 실무에서 적용하고 있는 패턴이 여기에 소개되어있어 신기했다. 그만큼 내용적으로 훌륭해서 다른 곳에서 재생산되어 나에게 왔다는 의미로 받아들여졌다. 알고 있는 패턴들을 다시 찬찬히 보며 생각할게 많아져서 이번에는 소단원 단위로 정리하겠다. 정적 팩터리 메서드 너무나도 유명하므로 장단점만 간단하게 짚어본다. 장점 첫째, 이름을 가질 수 있다..