在这期Lex Fridman播客中,Ruby on Rails的创始人、37signals的联合创始人兼CTO戴维·海涅迈尔·汉森(DHH)分享了他独特的编程之路。从5岁渴望Commodore 64却得到另一台电脑的失望,到青少年时期运营BBS和参与盗版游戏,再到多次尝试学编程失败,DHH的故事充满波折。直到接触互联网和PHP,他才找到了编程的“心流”体验。而真正让他从爱好者转变为职业程序员并爱上这门艺术的,是Ruby语言。访谈中,DHH不仅深情回顾了Ruby如何以其人性化的设计美学俘获了他,还犀利地批评了JavaScript生态的过度复杂化,辩护了Chrome浏览器对开放网络的贡献,并猛烈抨击了GDPR带来的Cookie横幅是“好意通向地狱”的纪念碑。
论据 / 案例:Java强制沙箱防护 vs Ruby允许自定义Integer#days;Rails的ActiveRecord语法示例
金句
"No one anywhere who's serious believes that Cookie banners does anything good for anyone. Yet, we've been unable to get rid of it." —— 任何一个认真思考的人都不会认为Cookie横幅对任何人有任何好处。然而,我们却无法摆脱它。
"A lot of people, I think, are very uncomfortable with the fact that they are essentially CRUD monkeys... And they have to compensate for that existential dread by over complicating things." —— 我认为,许多人对自己本质上只是“增删改查猴子”的事实感到非常不适……他们不得不通过过度复杂化事物来补偿这种存在性恐惧。
"Ruby is, as beautiful as it is, is not an accident and it's not easy." —— Ruby的美丽并非偶然,也来之不易。
"Matts believes in humanity. He believes in the unlimited capacity of programmers to learn and become better." —— Mats(Ruby创始人)相信人性。他相信程序员拥有学习和成长的无限潜力。
"I make sure that when I release the first version of any new thing I work on, it's a little broken... there's no easier way to get the collaboration of other programmers than to put something out that they know how to fix and improve." —— 我确保发布的第一个版本总是有点小毛病……吸引其他程序员协作的最简单方法,就是放出一个他们知道如何修复和改进的东西。