Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
fuckwit12187yFor general scripting I find ruby way nicer to type than python or bash.
The only thing I don't like is the gem management if you don't have bundler installed -
Timay217y@PrivateGER I can decide to use or not use parentheses??
Like I have to make up my mind about that too?
Automatic returns???
Why????
Elsif?
WHYYYY???
There’s too many ways to do one thing...
Should I go on?
I’d take python any day... -
knight297yEver looked up one liners in Ruby?
Also ever had to do any operation for two arrays, intersection, union etc, too easy to do in Ruby than python.
Irb is my calculator for anything. I find it super easy and handy. -
@knight
Is it really that hard? Doesn’t seem like it.
list(set().union(a, b, c))
or
list(set.intersection(*[set(i) for i in [a, b, c]])
The day I decide to learn Ruby will be the day I discover it can be used it for something interesting other than Rails
rant