Follow

Ok, so, be straight (or gay, or pan, or whatever wiggles your guinea-pig) with me:

Why do people like Ruby on Rails?

Cynical answers are also okay, but I'm hoping to steelman my understanding of the mindset.

· · Web · 6 · 0 · 2

@woozle@toot.cat I've never looked into it but from what I hear it's just super easy to learn.

@woozle people liked ruby as it was trendy, it was a unique, opionated take on a web fw for the time, it had a lot of magic that reduced common boilerplate at the time

@woozle The best reason I can think of is that it's a framework that lets people write web back-ends in Ruby. I honestly can't find another advantage to it.

@woozle back in the day, there was a really energetic and friendly community around it (and ruby in general) on sites like hackernews. resources like poignant.guide/ were amazingly approachable, humble, and human to me as a baby computer person. it's the Django or CakePHP of ruby.

@woozle I remember it being all the rage, once upon a time. But I also remember never quite figuring out how to use it.

@woozle I like 's use of blocks, its legible code and how easy it is to prototype something with it. (Though these days I'm more likely to grab for instead as I feel it's more likely to be have a fairly recent version installed on other people's systems.)

When I still was employed as a Rub web dev, was a nice, simple, opinionated framework to prototype and further develop a dynamic site, with a mostly friendly community to boot. But if I needed something less full-featured, I'd go for instead.

I think for a lot of Rubyists RoR was their first experience with an MVC framework and a lot from there on just stuck to what they knew.

It's been a while since I used RoR (or any web framework for that matter), so I'm not sure what it's like now and what people still attract to it, apart from it probably being what most people use.

@FiXato "Blocks" -- is that a data concept, or code-formatting, or...?

@woozle I believe they are called in most other languages: en.wikipedia.org/wiki/Ruby_(pr

Simple example could be:

5.times do |x|  
puts "x inside the block: #{x}"
end

or:

File.open('file.txt', 'w') do |file| # 'w' denotes "write mode"
file.puts 'Wrote some text.'
end # file is automatically closed here

Though 's way to do the latter actually looks better to me now:

with open('workfile') as f:
read_data = f.read()
Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!