DHH在Lex Fridman节目上:对Ruby on Rails的多小时颂歌,但它真的好吗?
在过去的几天里,我一直在听Lex采访DHH(我只关注编程部分,对他在其他话题上的看法并不特别感兴趣)。这并不是我第一次听到人们赞美Ruby on Rails,但每次我查看文档时,我都会想:“我不明白为什么大家对这个这么感兴趣。”
我对Ruby的主要批评有:
- 语法不太好:它使用了很多特殊字符,这使得编写代码的速度变慢。
- 没有静态类型:当我刚开始编程时,动态类型(比如JavaScript中的)似乎很酷。但在参与大型企业项目后,我绝对不会再选择动态类型语言(根据DHH的说法,这可能让我成为一个“糟糕的开发者”)。
我自己并没有尝试过,主要是因为将编程语言用于副项目和用于专业产品是完全不同的体验(有人可能会尝试JavaScript并争辩它比TypeScript好,直到他们不得不重构某些东西)。
所以我在想,这是否属于那种工具主要被热情的小众使用,因此所有反馈都是正面的情况?还是说,一旦深入了解,Rails真的像DHH所说的那样好?
查看原文
Over the past few days, I've been listening to Lex interview DHH (just the programming parts, I'm not particularly interested in his views on other topics).<p>It's not the first time I've heard people praising Ruby on Rails, but every time I look at the documentation, I find myself thinking, "I don’t get why people are into this.".<p>My main critiques of Ruby are:
- The syntax isn'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 "bad developer").<p>I haven'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'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?