Community

개발자 99% 커뮤니티에서 수다 떨어요!

← Go back
Chapter 3 Functions
#clean_code
2년 전
676


TIL (Today I Learned)

// 2022.02.22

오늘 읽은 범위

// Chapter 3 Functions

책에서 기억하고 싶은 내용을 써보세요.

  • Functions are the first line of organization in any program.

    (p. 101).

  • The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that.

    (p. 106).

  • FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.

    (p. 110).

  • is choosing good names for small functions that do one thing.

    (p. 117).

  • The ideal number of arguments for a function is zero (niladic).

    (p. 119).

  • Functions should either do something or answer something, but not both.

    (p. 129).

  • Functions are the verbs of that language, and classes are the nouns.

    (p. 139).

오늘 읽은 소감은? 떠오르는 생각을 가볍게 적어보세요

  • 명료하게 , 심플하게 . 일하면서도 늘 새겨야 할 것 이다.

  • 글자로 꽉찬 PPT를 보면서 느끼는 답답함이 있다. 각 페이지마다 논문을 써놨구만..프로그래밍에서도 성격이 들어날 듯.

궁금한 내용이 있거나, 잘 이해되지 않는 내용이 있다면 적어보세요.