목록2023/11/14 (2)
넘치게 채우기
어떤 클래스를 어느 컴포넌트에 포함시켜야 할까? 이는 중요한 결정이므로 제대로 된 소프트웨어 엔지니어링 원칙의 도움을 받아야 한다. 이 장에서는 컴포넌트 응집도과 관련된 세 가지 원칙을 논의한다. REP: 재사용/릴리스 등가 원칙(Reuse/Release Equivalence Principle) “재사용 단위는 릴리스 단위와 같다.” 지난 십 년은 메이븐(Maven), 라이닝언(Leiningen), RVM 같은 모듈 관리 도구가 우후죽순으로 등장한 시기였다. 이 같은 도구는 점점 중요해졌는데, 이 기간에 재사용 가능한 컴포넌트나 컴포넌트 라이브러리가 엄청하네 많이 만들어졌기 때문이다. 우리는 이제 소프트웨어 재사용의 시대에 살고 있다. 객체 지향 모델의 오랜 약속 중 하나가 실현되었다. 돌이켜보면 REP..
https://leetcode.com/problems/unique-length-3-palindromic-subsequences/description/ Unique Length-3 Palindromic Subsequences - LeetCodeCan you solve this real interview question? Unique Length-3 Palindromic Subsequences - Given a string s, return the number of unique palindromes of length three that are a subsequence of s. Note that even if there are multiple ways to obtain the same subseleetcod..