有没有类似阿里巴巴 Java 开发手册一样的 Python 开发手册?

2019-01-07 15:34:37 +08:00
 apeshit

想请问 v2er 知不知道 python 有没有类似这样的开发规范手册? 里面包含了开发技巧,和大企业里面的规约 之类的.

楼主自己读过 java 的开发手册, 没事就会翻一翻,像参考书一样很有用, 如果 python 也有就好了

4316 次点击
所在节点    Python
19 条回复
kmer
2019-01-07 15:53:18 +08:00
haoz1w0w
2019-01-07 15:59:10 +08:00
有人会按照那个开发规范开发么。。。
likuku
2019-01-07 16:05:24 +08:00
lihongjie0209
2019-01-07 16:13:09 +08:00
Python 社区要的是自由和优雅, 手册这么死板的东西是不可能的
PhpBestRubbish
2019-01-07 16:24:45 +08:00
自由和优雅,对于企业级多人开发来说不是灾难吗?
alexmy
2019-01-07 16:50:27 +08:00
我欲成仙,我只想写 a,b,c,d 的变量名。
Raisu
2019-01-07 16:54:02 +08:00
用 pycharm 的话,默认会有 pep-0008 风格提示的,只要没有提醒那应该就 OK 了
qq976739120
2019-01-07 17:19:18 +08:00
忘掉所有乱七八糟的语法糖
longaiwp
2019-01-07 18:30:03 +08:00
如果选择忘掉乱七八糟的语法糖,那我为什么不用 Jawa ?
enchilada2020
2019-01-07 18:39:52 +08:00
不懂 Java 也不懂 Python 只写过几行 hello world 级别的垃圾代码
感觉 Java 好啰嗦
Python 又不好好说话
tiedan
2019-01-07 19:20:36 +08:00
用 pep8 作为参考就行了
chroming
2019-01-07 19:52:05 +08:00
就谷歌那个吧
shmilypeter
2019-01-07 21:58:47 +08:00
那不是开发手册,那是代码规范
smdbh
2019-01-07 22:43:38 +08:00
@Raisu alt f8 ?
gitandgit
2019-01-07 23:30:43 +08:00
bestkayle
2019-01-08 08:34:27 +08:00
自从 py 被培训班盯上之后半吊子越来越多,招人筛选难度也越来越大
passerbytiny
2019-01-08 09:04:26 +08:00
作为 Java 开发,我已经很久没看过那个开发手册了。

所谓的规范,是团队合作用的,那么自然团队不同,规范也就不同。

阿里那个手册,当你在阿里,或者想去阿里的时候,才是参考手册;否则就只是个参考,不是手册。
lazyfighter
2019-01-08 13:18:22 +08:00
@passerbytiny 参考也不错,小公司没有规范的遍地都是。
iorilu
2019-01-18 13:55:03 +08:00
import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/524661

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX