DAY 8
๐ย ์ค๋ ์ฝ์ ๋ฒ์ : 4์ฅ ~ commented out code
<aside>
๐ ์ฑ
์์ ๊ธฐ์ตํ๊ณ ์ถ์ ๋ด์ฉ์ ์จ๋ณด์ธ์.
</aside>
- Few practices are as odious as commenting-out code. Donโt do this! Others who see that commented-out code wonโt have the courage to delete it. Theyโll think
it is there for a reason and is too important to delete. So commented-out code gathers like
dregs at the bottom of a bad bottle of wine.
- It is just plain silly to have a rule that says that every function must have a javadoc, or every variable must have a comment.
<aside>
๐ค ์ค๋ ์ฝ์ ์๊ฐ์? ๋ ์ค๋ฅด๋ ์๊ฐ์ ๊ฐ๋ณ๊ฒ ์ ์ด๋ณด์ธ์
</aside>
This book mentions the time before the existence of source code control system. (60s) ๐ฎ
<aside>
๐ ๊ถ๊ธํ ๋ด์ฉ์ด ์๊ฑฐ๋, ์ ์ดํด๋์ง ์๋ ๋ด์ฉ์ด ์๋ค๋ฉด ์ ์ด๋ณด์ธ์.
</aside>
<aside>
๐ก ์๊ฐ 3์ค ์์ฝ
</aside>
- โSo if you find yourself wanting to mark your closing braces, try to shorten your functions insteadโ โก๏ธย this is funny because when I learned HTML, the teacher told us to leave a comment at the each closing tags.
(ie)
</div>
<!-- section1 end -->
- It says โALL COMMENTS ARE BAD! THEY ARE FAILURE!โ in the beginning of the chapter and then slowly brings the example of the cases where comments could be useful ๐
- We use doc block in the Storybook files to display componentsโ prop description in the prop table in my team.
