DEV Community

Discussion on: Why do you love Ruby, actually? An ode.

Collapse
 
saraid profile image
Michael Chui

My personal reason is "expressivity". When I write Ruby, I feel like I'm writing poetry: trying to maximize how much I can say with very precise terms. Communication matters a lot to me, more and more as I grow both professionally and personally, and Ruby's one of the few languages where wanting to be able to say something differently is not only completely okay, but also not superficial.

Through refinements and permissive syntax, I regularly write new DSLs just because I think that's the best way to communicate. I can pare away all the irrelevant stuff and be clear and precise in what's going on for the sake of both people reading the code and the computer.

I enjoy it a lot. I don't really need it to be the fastest or the most math-y or whatever. It just works really well for me. Thank you for writing this post and giving me a reason to put this into words!

Collapse
 
sylwiavargas profile image
Sylwia Vargas

Thank YOU for your comment and sharing your thoughts.

It's funny that you mentioned poetry. Right before reading your comment, I tried to describe to a non-tech person why I love Ruby so much. I said that it looks pretty and you need to be very intentional about your code design to follow SOLID. "It sometimes feels like writing haiku", I added.

Speaking of poetry and code, have you heard of ./code --poetry? It's a super-fascinating project!

Collapse
 
saraid profile image
Michael Chui

I had not heard of it. That's pretty cool.