개발자 필독도서 리뷰

[노개북] "클린코드" 챌린지 13일차

개발자 배찌 2022. 3. 7. 14:25
728x90

"노개북" 노마드 개발자 북클럽 13일차!!

#코딩 #개발자 #노마드북클럽 #노개북 #노마드챌린지 #클린코드 #3주스케쥴

 

월 | Assignment #13

  • 📚 복습
  • ✔️ 퀴즈 Quiz (2)

QUESTION 1

What is better, to throw Exceptions or return error codes?

>Exceptions

 

QUESTION 2

When should we write try/catch/finally?

>First, before we write any code.

 

QUESTION 3

What kind of information should our error messages have?

>The operation that failed, type of failure, more information about the error.

 

QUESTION 4

Why shouldn’t we return ‘null’ from methods/functions?

>We might forget to check for null and can easily have null pointer exceptions.

 

QUESTION 5

Is passing ‘null’ as an argument a good practice?

>No

 

QUESTION 6

Having dirty tests can be worse than having no tests at all.

>True

 

QUESTION 7

Test code is as important as production code.

>True

 

QUESTION 8

How many concepts should a test function test?

>One

 

QUESTION 9

Should tests depend on each other

>No

 

QUESTION 10

What output should a test have?

>Boolean