由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - code swarm (video)
相关主题
如何自学python在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
a question abou dll, 3x!!C++ software engineer 3 years expectation
這版的碼工每一個都弱爆了脚本语言 vs 编译语言
Python中如何快速查询dict是否存在某keyFP的教材是怎么误导人的
妈的怎么那么多鸡毛语言/软件问个数组地址的问题
有没有static return type和static as function arguement?数学的美
interview questionsstl iterator has "NULL" like const?
C++ Q03:神经网络研究的致命伤
相关话题的讨论汇总
话题: python话题: java话题: logic话题: document话题: code
进入Programming版参与讨论
1 (共1页)
r****t
发帖数: 10904
1
http://vis.cs.ucdavis.edu/~ogawa/codeswarm/
有 Eclipse and Python videos. 不明白为什么 coconut says python 不好 document
, 不过可以看到 python document activity percentage 确实比较大。
h***z
发帖数: 233
2
Depends what you mean by "document". It's harder to specify formally the
function/method interfaces for python modules/classes because of duck typing
. But documentation on a framework level is much easier in Python because
there are usually far fewer classes and methods used and less reliance on
convoluted design patterns.

document

【在 r****t 的大作中提到】
: http://vis.cs.ucdavis.edu/~ogawa/codeswarm/
: 有 Eclipse and Python videos. 不明白为什么 coconut says python 不好 document
: , 不过可以看到 python document activity percentage 确实比较大。

c*****t
发帖数: 1879
3
I think that we have demonstrated fairly well that python doesn't
save on logic. Thus your statement of saying python relies less
on convoluted design patterns is false.

typing

【在 h***z 的大作中提到】
: Depends what you mean by "document". It's harder to specify formally the
: function/method interfaces for python modules/classes because of duck typing
: . But documentation on a framework level is much easier in Python because
: there are usually far fewer classes and methods used and less reliance on
: convoluted design patterns.
:
: document

r****t
发帖数: 10904
4
fairly well 可能谈不上。就算是拿你说 fairly well 的 Exception 处理的例子,
python has much more concise yet more readable way to manage the same logic
than Java does, I mean the "with" statement. However the point of using
python is not saving on logic, 这么多人讲过 why (not) python, 好像你还是第一
个这么讲的。
Only speak of syntax, Python allows to do the same logic more concisely and
more clearly. But even that is not the point compared to Java/C++, because
if you stick to the same logic in every piece of code, then do not bothe

【在 c*****t 的大作中提到】
: I think that we have demonstrated fairly well that python doesn't
: save on logic. Thus your statement of saying python relies less
: on convoluted design patterns is false.
:
: typing

c*****t
发帖数: 1879
5
One could always write crappy code, but using good python code against
bad Java code isn't a fair comparison. Also, some codes may consider
more situations than others.
My statement was regarding "python could do without convoluted design
pattern". Doesn't save on logic means that if one thing could be done
in python, similar approach could be done in Java or other staticly
typed languages (which have better documentation support).
Python has nothing to save on frameworks. We are talking abou

【在 r****t 的大作中提到】
: fairly well 可能谈不上。就算是拿你说 fairly well 的 Exception 处理的例子,
: python has much more concise yet more readable way to manage the same logic
: than Java does, I mean the "with" statement. However the point of using
: python is not saving on logic, 这么多人讲过 why (not) python, 好像你还是第一
: 个这么讲的。
: Only speak of syntax, Python allows to do the same logic more concisely and
: more clearly. But even that is not the point compared to Java/C++, because
: if you stick to the same logic in every piece of code, then do not bothe

1 (共1页)
进入Programming版参与讨论
相关主题
神经网络研究的致命伤妈的怎么那么多鸡毛语言/软件
Re: [BSSD] GTX1080是业余GPU (转载)有没有static return type和static as function arguement?
CNN相关的Scale,Translation Invariant都是伪概念interview questions
caffe等CNN里面convolution和relu是分开的两层?C++ Q03:
如何自学python在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
a question abou dll, 3x!!C++ software engineer 3 years expectation
這版的碼工每一個都弱爆了脚本语言 vs 编译语言
Python中如何快速查询dict是否存在某keyFP的教材是怎么误导人的
相关话题的讨论汇总
话题: python话题: java话题: logic话题: document话题: code