推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
EarlGrey
V2EX  ›  Python

Python 开发指南:最佳实践精选

  •  
  •   EarlGrey · Nov 11, 2015 · 3301 views
    This topic created in 3979 days ago, the information mentioned may be changed or developed.

    本文总结了 Python 开发过程中,应该要注意的一些准则,涉及变量命名、代码风格等各个方面;并推荐了最佳实践方法,给出了具体实例,是一篇非常好的指南。

    译文链接:传送门
    原文链接:Github Gist

    在学习翻译这篇文章的时候,有几个地方不太懂,希望高手解答!

    1. 什么是 fixtures ?中文对应的术语应该是什么?
    2. Human-Driven Development 具体该怎么理解?人力驱动开发,对吗?
    2 replies  •  2015-11-13 21:06:49 +08:00
    bladeback
        1
    bladeback  
       Nov 13, 2015   ❤️ 1
    Fixture 是测试中的概念, Python 里有一个 fixtures 的包,用来创建和销毁 fixtures.Fixture 指的是测试中依赖的数据和条件等等,参考文档: https://pypi.python.org/pypi/fixtures/

    这个 Human-Driven 还真没听说过,可能他想表达的意思是,编码过程中的良好风格和习惯,最佳实践,一个较为规范的编程模式,要比 TDD 更为重要吧。
    EarlGrey
        2
    EarlGrey  
    OP
       Nov 13, 2015
    @bladeback 谢谢详细解答~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2352 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    ♥ Do have faith in what you're doing.