5 ms·
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 u
by wrp 6y ago
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?
- burlesona 6y agoRubocop 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.
- jherdman 6y agoThis. 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.
- ashtonkem 6y agoRuby’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.
- allis10 6y agoFor what it's worth, non-alphanumeric Ruby is Turing-complete: https://ideone.com/55WtMM https://ideone.com/55WtMM
- qiqitori 6y agoExplanation: https://threeifbywhiskey.github.io/2014/03/05/non-alphanumeric-ruby-for-fun-and-not-much-else/ https://threeifbywhiskey.github.io/2014/03/05/non-alphanumer...
- wrp 6y agoThe "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."
- cutler 6y agoTIMTOWTDI is what I loved about Perl and the reason I found the transition to Ruby so enjoyable.