python禅语,Python是一种禅语吗?

Greetings,

I have a rough classification of languages into 2 classes: Zen

languages and tool languages. A tool language is a language that is,

well, a *tool* for programming a computer. C is the prototypical tool

language. Most languages in the Algol family are tool languages. Visual

Basic and Java are also tool languages. On the other hand, a Zen

language is a language which is purported to transform your way of

thinking about programming. Lisp, Scheme, Forth, Smalltalk and (maybe)

C++ are Zen languages. Disciples acknowledge that it is difficult to

pick up these languages but claim that, if you persevere, you sooner or

later reach a state of computational satori in which it all makes

sense. Interestingly enough, these languages often have books which

approach scriptural status e.g. SICP for Scheme.

So (assuming my classification makes sense) which is Python? The

emphasis on simplicity and the beginner-friendly nature of it seems to

put it in the tool category. On the other hand, the emphasis on the ONE

TRUE WAY to accomplish most tasks and the tendency for participants in

this newsgroup to criticize one another''s code as being "unpythonic"

seems to move it towards the Zen category. Of course, even tool

languages have their idioms which the novice needs to pick up, so maybe

this isn''t decisive, but I detect an element of zeal in this newsgroup

that I don''t detect in (say) Excel VBA programming newsgroups.

No value judgement is intended by my classification. There is no

denying that Zen languages are often very powerful tools (for those who

have reached satori) and that there is a Zen to really mastering, say,

C. Personally, I have never been able to master any Zen language but

can pick up tool languages fairly quickly, so I prefer tool languages.

This is probably because I am not a programmer (I''m a mathematician who

likes to program as a hobby and for numerical simulations) and so don''t

have the time to invest in picking up a Zen language. Hard-core hackers

might presumably lean towards the Zen languages.

Just curious

-John Coleman

解决方案

don''t know but there is "Zen of Python".

Actually, Python has the distinction of being both a great tool

language *and* a great Zen language. That''s what makes Python so cool

;-)))

Ron Stephens

Python411

www.awaretek.com/python/index.html

Mu.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值