HACKER Q&A
📣 oleksandr_dem

DHH on Lex, a multi-hour ode to Ruby on Rails, but is it any good?


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).

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.".

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").

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).

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?


  👤 codingdave Accepted Answer ✓
I can't find it anymore, but I remember way back when Rails first launched, DHH saying something along the lines of: "I don't know databases, so I found one way that worked and ran with it as an ORM." I'm sure the dude has learned more since then, so Rails has improved, but if you are asking if you should listen to DHH, you need to know that he is a pragmatist, not an idealist. That is not a bad thing... but if you are an idealist, it would explain why his work does not appeal to you.

👤 aeonflux
Types are helpful in large codebases, but in Web Apps they tend to get into the way more than they help. You can still use semi-typed constructs in Ruby, but you have the freedom to choose where you need them.

After moving to writing web in Go (from Ruby) I am still baffled how much more boiler plate there is and how much slower things move because of this. Types are great when you want to refactor some things, but thats just part of the job.

In Ruby I loved how can you just quickly jump into REPL or just do inline breakpoint to inspect state: `scope.map(&:names).last.tally.sort_by(&:last).reverse.first(10)`

Something like this is such a chore in Go that I simply skip it more often than not.

> it uses a lot of special characters, which makes writing the code slower

I don't get this part. What special characters?