훌륭한 코드를 읽기

../_images/34689452831_93d7fd0571_k_d.jpg

위대한 파이썬 프로그래머가 되기 위한 비밀 중 하나는 바로 탁월한 코드를 읽고, 알아듣고, 이해하는 것입니다.

탁월한 코드란 문자 그대로 코드 스타일 의 가이드라인을 따르는 것이며, 명쾌하고 간결하게 코드의 의도를 독자에게 표현하기 위해 최선을 다하는 것입니다.

아래에 삽입한 목록은 읽어보시길 추천하는 파이썬 프로젝트들입니다. 각각의 프로젝트는 파이썬 코딩의 모범입니다.

  • Howdoi Howdoi는 파이썬으로 쓰여진 코드를 검색하는 도구입니다.
  • Flask Flask는 Werkzeug와 Jinja2를 기반으로 하는 파이썬 마이크로 프레임워크입니다. 아주 빠르게 시작할 수 있도록 만들어졌으며, 이러한 취지에 따라 개발되었습니다.
  • Diamond Diamond is a Python daemon that collects metrics and publishes them to Graphite or other backends. It is capable of collecting CPU, memory, network, I/O, load, and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
  • Werkzeug Werkzeug started as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger, full-featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system, and a bunch of community-contributed addon modules.
  • Requests Requests는 파이썬으로 작성된 Apache2 라이선스의 HTTP 라이브러리입니다. 인류를 위해 만들었습니다.
  • Tablib Tablib은 포맷에 구속받지 않는 tabular 데이터셋 라이브러리입니다. 파이썬으로 작성했습니다. (역주: Requests, Tablib은 저자 본인의 프로젝트)

과제

리스트에 올라간 프로젝트의 코드 샘플 추가 필요왜 좋은 코드인지 복잡한 예를 들어 설명할 것

과제

Explain techniques to rapidly identify data structures and algorithms and determine what the code is doing.