News for hackers. Stuff that matters.
Re:Ruby 3.0 Preview 1 by wrp on Friday September 25, 2020 @07:30PM (#24595096)
Ruby has been referred to as Smalltalk meets Perl, and the problem of dealing with other people's code is one of the main things that kept me in the past from using Perl on text processing projects. The problem of collaborating in Perl was lessened a lot by adhering to Damian Conway's Perl Best Practices. Is there anything similar for Ruby?
Re:Ruby 3.0 Preview 1 by burlesona on Friday September 25, 2020 @07:33PM (#24595108)
Rubocop and you're done. It's the first thing I'd add to any team project just because life's too short for an inconsistent codebase.
Re:Ruby 3.0 Preview 1 by jherdman on Friday September 25, 2020 @09:20PM (#24595649)
This. Rubocop is first class. I'm just flat out done bikeshedding in code. If I'm writing JS, it's an ESLint + Prettier combo — or whatever your taste is, I just don't care. Let's write code and let the machine deal with making sure it isn't too ugly.
Re:Ruby 3.0 Preview 1 by ashtonkem on Saturday September 26, 2020 @12:39AM (#24596464)
Ruby’s heavier use of key words rather than symbols saves it from the worst of Perl.

Yes, there’s still some symbols, but nowhere near as many.

Re:Ruby 3.0 Preview 1 by wrp on Saturday September 26, 2020 @01:57AM (#24596741)
The "line noise" aspect of Perl never bothered me, because I'm already a heavy user of regexes. The cause of my misery was Perl's "There Is More Than One Way To Do It."
Re:Ruby 3.0 Preview 1 by cutler on Saturday September 26, 2020 @04:44AM (#24597338)
TIMTOWTDI is what I loved about Perl and the reason I found the transition to Ruby so enjoyable.
Re:Ruby 3.0 Preview 1 by allis10 on Saturday September 26, 2020 @01:03AM (#24596569)
For what it's worth, non-alphanumeric Ruby is Turing-complete: https://ideone.com/55WtMM
Re:Ruby 3.0 Preview 1 by qiqitori on Saturday September 26, 2020 @02:27AM (#24596837)