DHH 谈 Lex Fridman:一场长达数小时的 Ruby on Rails 颂歌,但它真的好吗?

1作者: oleksandr_dem5 个月前
过去几天,我一直在听 Lex 采访 DHH(只听了编程部分,我对他在其他话题上的观点不太感兴趣)。 这已经不是我第一次听到人们称赞 Ruby on Rails 了,但每次我查看文档时,我都会想:“我不明白为什么人们会喜欢它。” 我对 Ruby 的主要批评是: * 语法不太好:它使用了大量的特殊字符,这使得编写代码的速度变慢。 * 没有静态类型:当我刚开始编程时,动态类型(比如 JavaScript 中的)似乎很酷。但在大型企业项目中工作之后,我再也不会选择动态类型语言了(根据 DHH 的说法,这可能让我成为一个“糟糕的开发者”)。 我还没有亲自尝试过它,主要是因为将编程语言用于业余项目和专业产品是完全不同的体验(有人可能会尝试 JavaScript 并认为它比 TypeScript 更好,直到他们不得不重构某些东西)。 所以我想知道,这是否是那种工具主要被一小部分狂热爱好者使用的案例,所以所有的反馈都是正面的?还是说,一旦你深入了解 Rails,它真的像 DHH 说的那样好用?
查看原文
Over the past few days, I&#x27;ve been listening to Lex interview DHH (just the programming parts, I&#x27;m not particularly interested in his views on other topics).<p>It&#x27;s not the first time I&#x27;ve heard people praising Ruby on Rails, but every time I look at the documentation, I find myself thinking, &quot;I don’t get why people are into this.&quot;.<p>My main critiques of Ruby are: - The syntax isn&#x27;t great: it uses a lot of special characters, which makes writing the code slower. - No static types: when I first started programming, dynamic typing (like in JavaScript) seemed cool. But after working on large enterprise projects, there’s no way I’d choose a dynamically typed language again (Based on what DHH says, that probably makes me a &quot;bad developer&quot;).<p>I haven&#x27;t tried it myself, mainly because using a programming language for a side project versus a professional product is a completely different experience (someone might try JavaScript and argue it’s better than TypeScript, until they have to refactor something).<p>So I&#x27;m wondering, is this one of those cases where a tool is mainly used by a passionate niche, so all the feedback is positive? Or is Rails really as good as DHH says it is once you get into it?