Guido认为程序员大多数工作不需要递归
Python的创造者Guido在最近一篇关于为什么Python里没有 Tail Recurssion Elimination (暂译:尾递归优化)的文章中提到一个我们可能经常听到的观点“真正的程序员一般不用递归”。
http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html
Third, I don’t believe in recursion as the basis of all programming. This is a fundamental belief of certain computer scientists, especially those who love Scheme and like to teach programming by starting with a “cons” cell and recursion. But to me, seeing recursion as the basis of everything else is just a nice theoretical approach to fundamental mathematics (turtles all the way down), not a day-to-day tool.
翻译:(第三点)我不认为递归是编程的基础。递归是一些计算机科学家们,尤其是那些热爱Scheme (lisp的一支)和喜欢用‘cons’ 来教表头表尾和递归的人们。但是对我(Guido)来说,递归只是一些为基础数学研究而存在的理论手段(例如分形几何学),而不是日常的编程工具。
这也再次证明当年“耗”哥当年在楼下遛弯时候给我的教导,好的程序员不在于多么会写看似非常聪明的代码,重要的是能够思路清晰的用最简单的方式解决问题。
转载于酷壳CoolShell 无删改 仅以此纪念陈皓(左耳朵耗子)
比如这个网页: developer.arm.com/documentation/ 打开后有 3 个白点显示一直在加载,每次打开都要加载十几秒才能显示出来。 我是使用梯子访问的…
腾讯云轻量 先搞个应急用的梯子 #1 直接封 ip 探针交友: github.com/liuquanhao/moyu 一般来讲只能吃灰 需要 dd 干掉监控 …
上周忍不住从用了很多年的 win10 升级到 11 ,UI 风格变化实在有点大,各种用不习惯。 吐槽几点不能接受的地方 开始按钮不是斜的,开始菜单的磁贴也没有 win10 好…