Readability of source code
wikipedia Readability of source code
NOTE:
如何来保证代码的可读性?
wikipedia Self-documenting code
关于self-document code,在阅读namedtuple()
的文档的时候,看到了它的身影:
Named tuples assign meaning to each position in a tuple and allow for more readable, self-documenting code. They can be used wherever regular tuples are used, and they add the ability to access fields by name instead of position index.
Code style
正如python有:
PEP 7 -- Style Guide for C Code