모든 메서드가 공유하는 코드 — 중복의 시작AOP(관점지향 프로그래밍)와 횡단 관심사(Cross-cutting Concern)를 이해하려면, 먼저 중복이 어디서 시작되는지 봐야 한다. 아래 두 클래스를 비교해보자.// Bad Code: 핵심 로직 한 줄을 위해 나머지가 전부 중복public class Engineer { public void execute() { System.out.println("장비를 준비한다."); // 중복 try { System.out.println("열심히 작업한다."); // 핵심 로직 System.out.println("결과를 커밋한다."); // 중복 } catch (TaskExcepti..