News for hackers. Stuff that matters.
Re:Ruby Together by mooreds on Wednesday March 09, 2022 @10:40PM (#30622996)
> what's the selling point of ruby?

I'd say it is custom webapp development (with rails) and scripting on the command line (anything bash can do, ruby can do better).

PHP is good on the web with the huge installed base of wordpress, but when it comes to custom web app development, ruby (well, rails, really) holds its own with laravel, symfony and the other MVC frameworks.

Re:Ruby Together by girvo on Wednesday March 09, 2022 @10:49PM (#30623035)
As someone with years (oh god, so many years) of experience in Laraval and Symfony, I think Rails is superior to both. They're all excellent mind you, I just think Rails is even nicer in usage.
Re:Ruby Together by brigandish on Wednesday March 09, 2022 @11:59PM (#30623385)
> scripting on the command line (anything bash can do, ruby can do better)

That's true but you could say that about zsh too, and any number of other languages. Usually, the important reason that shell programming is used is the lack of need to install anything to run a script, which makes it easy and portable, and hence, reliable.

I can't write a script in Ruby and share it safe in the knowledge it will work on another system, especially if it relies on a gem or two. I'd much rather go with something that compiles and move a binary around if I'm dropping dash/bash/zsh. If I was forced to choose an interpreter to do that kind of work, perl would be much safer than Ruby, Python or Javascript.

Re:Ruby Together by sohooo on Thursday March 10, 2022 @02:44AM (#30624241)
Inline Bundler is a nice way to include gems in a single script file, which proved to be useful for me: https://bundler.io/guides/bundler_in_a_single_file_ruby_scri...
Re:Ruby Together by l30n4da5 on Thursday March 10, 2022 @10:43AM (#30628155)
> scripting on the command line (anything bash can do, ruby can do better)

completely agreed. on a linux system, most of my shell scripts are written in ruby at this point, simply because it is much better to work with than bash.