Clean Code .....................................................................................................................................................................................................................................................................................................................................................................................................
Clean Code .....................................................................................................................................................................................................................................................................................................................................................................................................
Clean Code . ...................................................................................................................................................................................................................................................................................................................................................................................................
Clean Code .....................................................................................................................................................................................................................................................................................................................................................................................................
Clean Codee ....................................................................................................................................................................................................................................................................................................................................................................................................
Clean Codee ....................................................................................................................................................................................................................................................................................................................................................................................................
본 게시글은 도서, Clean Code를 읽고 정리한 글입니다. https://product.kyobobook.co.kr/detail/S000001032980 1. 작게 만들어라! 함수는 작으면 작을수록 좋다. if문, while문 등에 들어가는 블록은 한 줄이어야 한다. 대개 거기서 함수를 호출하기 때문이다. 그렇게 된다면 바깥을 감싸는 함수 (enclosing function)가 작아질 뿐만 아니라, 블록 내부에서 호출하는 함수의 이름을 적절히 짓는다면 이해하기도 더욱 쉬워진다. 중첩 구조가 생길 만큼 함수가 커져서는 안된다는 뜻이다. 그래야 읽고 이해하기 쉽다. 2. 한 가지만 해라! 지정된 함수 이름 아래에서 추상화 수준이 하나인 단계만 수행한다면, 그 함수는 한 가지 작업만 한다. 단순히 다른 ..
도서, [Clean Code]를 읽고 정리한 글입니다 . ................................................................................................................................................................................................................................................................................................................................................................................