Community

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

← Go back
Clean code #5
#clean_code
2년 전
749

오늘 읽은 범위

5장 형식 맞추기

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

  • 신문 기사처럼 작성하라 (The Newspaper Metaphor)

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

이 챕터는 코드의 내용을 건드리지 않는다

거의 단 한 글자의 코드도 변경하지 않는다

대부분은 행간 거리, 행의 위치등 어떻게 보면 사소하게 보일 이야기를 다룬다

그렇지만 따로 챕터를 둘 정도로 저자는 형식을 강조한다

신문기사처럼 작성하라라는 요지가 챕터의 전반에 이어진다

신문은 그 특유의 형식만으로도 굉장한 가독성을 가진다 그 형식을 코드에 넣어보자

This chapter is not about the actual 'content' of code

It barely touches the word

Mostly it talks about leading between lines, setting the code in proper position

which maybe sound like trivial things

But it has own's chapter that means the author think formatting is a thing for readability

'The Newspaper Metaphor' concept across whole chapter

Newspaper has great readability by it's peculiar formatting

Let's bring that formatting in my code it will be better for reading and working