[노개북 1기] TIL (2022.02.03)

yourjin·2022년 2월 26일
0

read.log

목록 보기
15/37
post-thumbnail

TIL (2022.02.03)

DAY 13

🔖 MISSION2: QUUUUUUUUIZ


Chapter 4 & 5 & 6

Quiz is based on Clean Code Chapter 4. 5. and 6.Good Luck!

💡 Is better to write code that does not need comments. *10점

  • True
  • False

💡 We write comments when we fail to communicate using only our code. *10점

  • True
  • False

💡 We should try to minimize comments as much as possible by writing better code. *10점

  • True
  • False

💡 The best place to find information about the code is should be the code itself rather than comments. *10점

  • True
  • False

💡 Where should we declare our variables in a function? *10점

  • At the top of the function.
  • Only just before we use them.

💡 If one function calls another, they should be vertically close. *10점

  • True
  • False

💡 A function that is called should be below a function that does the calling. *10점

  • True
  • False

💡 What does DTO mean? *10점

  • Data Transfer Object
  • Date Time Object

💡 When do we use DTOs? *10점

  • When working with DBs or parsing WebSocket messages.
  • When publishing and transferring our code.

💡 Objects expose functions to operate in their data. *10점

  • True
  • False
    • 객체는 동작을 공개하고 자료를 숨긴다.
    • 자료 구조는 별다른 동작 없이 자료를 노출한다.

소감 3줄 요약

  • Quiz (9/10)
  • 객체는 동작을 공개하고 자료를 숨긴다. 즉, 객체에는 동작(function)이 중요하다!
  • 자료 구조는 별다른 동작 없이 자료를 노출한다. 즉, 자료 구조에서는 자료 구조 그 자체(자료의 형태)가 중요하다!
profile
make it mine, make it yours

0개의 댓글