News for hackers. Stuff that matters.
Re:A first naïve look at Truffle Ruby by grover_hartmann on Friday February 02, 2018 @07:31PM (#16295378)
It always bothered me that Ruby isn't used as much as Python is used outside of web development.

I think Ruby is a nicer language than Python is in many ways.

Re:A first naïve look at Truffle Ruby by busterarm on Friday February 02, 2018 @07:46PM (#16295434)
Lots of operations code was written in Ruby. Just look at Chef, Capistrano and Puppet.

That whole field wants to be Google though and thinks they have Google's problems, so now it's mostly all Python and Go. HashiCorp has written some great stuff at least.

Re:A first naïve look at Truffle Ruby by dictum on Friday February 02, 2018 @08:17PM (#16295548)
> That whole field wants to be Google though and thinks they have Google's problems

It's becoming a recurring phenonemon, isn't it? I feel the same with frontend web development: everyone wants to be Facebook.

Re:A first naïve look at Truffle Ruby by busterarm on Friday February 02, 2018 @08:33PM (#16295605)
preaching to the f'ing choir here mate.

The volume of material out there written to help people improve the performance of their React applications makes it pretty clear to me that folks aren't looking before they leap.

I've seen more than a couple dozen projects with ~20-40 lines of simple, performant, vanilla JS turn into multi-hundred line behemoths + _an entire React framework_ for exactly zero benefit to end users because of "best practices".

Re:A first naïve look at Truffle Ruby by Twirrim on Saturday February 03, 2018 @08:17AM (#16297492)
> That whole field wants to be Google though and thinks they have Google's problems, so now it's mostly all Python and Go

Python has been more relevant in operations work for quite a while, and for a lot longer Google has been talking about their use of it. (speaking as someone with approaching 2 decades experience on the sysadmin/operations side of work)

Readability and ease of learning were big bonuses, particularly given sysadmin types were historically more likely to fall in to the work, and as likely to not have formal compsci backgrounds. That it also made life a heck of a lot easier to interact with APIs was also invaluable. Perl used to be an incredible pain for API work (I learnt python and wrote automation around APIs in less time than it took me as an experienced perl programmer to write similar tooling in perl.)

You also have to remember that python has perl's advantage, it's everywhere. Every major Linux distro has shipped with it for a long time. I'm rusty on that specific aspect historically, I would guess it's probably due to Redhat and all their automation being historically python based.

Re:A first naïve look at Truffle Ruby by metacontent on Saturday February 03, 2018 @11:08AM (#16298124)
* Ruby is a nicer language than Python.

Not only that, it's cleaner, more flexible, and faster.

It's a shame more people don't think for themselves rather than just jumping on the PR bandwagon. But that's life.