News for hackers. Stuff that matters.
Re:Why's (Poignant) Guide to Ruby (2004) by cutler on Wednesday November 11, 2020 @07:48PM (#25064943)
Yes. In a perfect world Ruby would have left Python in the dust and enterprise software would be written in Clojure.
Re:Why's (Poignant) Guide to Ruby (2004) by berkes on Thursday November 12, 2020 @02:55AM (#25067538)
I'm more and more convinced Rails has caused much of the demise of Ruby. As well as make it big in the first place.

I love Ruby. And with a decade of fulltime Rails development, know and like both Rails and Ruby very well. But 'sharp knives' have caused just too many rails projects to become mudballs over time. This makes teams or companies 'move to language X'. When it really was (their use of) Rails causing the mudballing. Let alone Ruby.

'Performance' is often cited, but I'm certain hardly anyone ever had severe performance issues in practice with Ruby. Maybe with Rails, probably activerecord and quite likely their own implementation thereof. But hardly Ruby the Language

Re:Why's (Poignant) Guide to Ruby (2004) by joelbluminator on Thursday November 12, 2020 @05:32AM (#25068450)
If those teams were all moving to Java / C# I would agree, but they mostly moved to Node. They're gonna run into very similar problems.
Re:Why's (Poignant) Guide to Ruby (2004) by berkes on Thursday November 12, 2020 @07:43AM (#25069195)
1. Start writing software -greenfield-. "Wow this framework is really neat".

2. Grow it over years. Maintain it. "This language/framework/architecture really sucks"

3. We should rewrite it in Rust. Goto 1.

The real problem is that architecture is hard. Maintainance is difficult, scope creap a thing and accumulating technical debt will kill you eventually.

In Rails, getting a Proof of Concept "blog" out there, is done in hours. But all the "shortcuts" like "throw in Devise for auth" will get back to you in future, turning "hours of rapid development" into "months of stagnation". Getting a basis that will survive pivots, quick market changes, scope creep and allow to tackle technical debt when time is right, takes years of experience with not just Rails, but with "software architecture" in general.

Re:Why's (Poignant) Guide to Ruby (2004) by joelbluminator on Thursday November 12, 2020 @07:54AM (#25069305)
Yes, no argument there. Growing projects is plain hard, no matter what language/framework you use. People talk so much about stack choices as if that's where the problem/solution lies. It's more about building effective teams, respecting seniority, not churning out your employees, having good product people (e.g knowing what to build). That's way more important to most businesses than the endless chat about graphql/react/rails/node/php. But as techies, we tend to view every problem as a technical problem that can be solved by throwing more graphql at it...
Re:Why's (Poignant) Guide to Ruby (2004) by nl on Thursday November 12, 2020 @06:38AM (#25068753)
> They're gonna run into very similar problems.

Once they get the build fixed. Again.

Re:Why's (Poignant) Guide to Ruby (2004) by treeman79 on Wednesday November 11, 2020 @10:18PM (#25066023)
I left python for ruby A dozen years ago.

I always missed the simplicity of Python.

Ruby community was just awesome. Pushing at the bleeding edge of getting stuff done fast, if a bit magical.

Been debating about going back. Cleaning up 8 year old magical ruby apps is getting old.

Re:Why's (Poignant) Guide to Ruby (2004) by joelbluminator on Thursday November 12, 2020 @05:46AM (#25068518)
Off topic, but how do you evaluate whether you should switch stacks? I have lots of Ruby experience and am not that young anymore. The "easy" thing for me to do is sticking to Ruby, but I'm sometimes anxious about the availability of jobs 10-15 years from now.
Re:Why's (Poignant) Guide to Ruby (2004) by fastball on Thursday November 12, 2020 @02:27AM (#25067377)
Definitely worth a shot.

I've really enjoyed working with FastAPI in Python for web apps.

Re:Why's (Poignant) Guide to Ruby (2004) by antod on Wednesday November 11, 2020 @10:43PM (#25066173)
> In a perfect world Ruby would have left Python in the dust

It pretty much did, but then Rails and Ruby's hype cycle faded a bit, and Python kept going, recovered and found new niches.

Re:Why's (Poignant) Guide to Ruby (2004) by porker on Thursday November 12, 2020 @04:47AM (#25068197)
> It pretty much did, but then Rails and Ruby's hype cycle faded a bit

It was Rails' hype cycle that turned me off using Ruby & Rails in the first place. It had more in common with the cult I grew up with than I wanted to be part of, and made it hard for a sceptical outsider to get in.

Which is a shame as I think I'd have enjoyed it very much.

Re:Why's (Poignant) Guide to Ruby (2004) by nl on Thursday November 12, 2020 @06:40AM (#25068762)
I agree.

I couldn't stand DHH's "I'm right" attitude about everything. I listened about programming and then he started talking about things I know lots about and I realised he wasn't exactly wrong, just hadn't seen other ways of doing things.

Re:Why's (Poignant) Guide to Ruby (2004) by ksec on Saturday November 14, 2020 @12:15AM (#25090466)
That is still a problem today in Rails. So it is a double edge sword for Ruby and Rails.
Re:Why's (Poignant) Guide to Ruby (2004) by burgertime on Thursday November 12, 2020 @12:09AM (#25066672)
You left out Python 3. That lack of a clear transition from Python 2 didn’t help. Despite that, I still think it’s great, but it made it multiple times more difficult for a newbie to get setup.
Re:Why's (Poignant) Guide to Ruby (2004) by Cthulhu_ on Thursday November 12, 2020 @04:14AM (#25067974)
I've not done Python outside playing around really early on in my career during an internship, but I've never felt attracted to it; the 2 vs 3 debacle, installing the odd tool is like "what" (yeah just do `pip install this`, but first you need to install pip by using `easy_install`), and I've heard dependency management and environment setup is still quite backwards.

It needs a big ecosystem and tooling overhaul for me to be interested.

ATM I'm doing Go, which seems to have gotten the tooling part right at least.

Re:Why's (Poignant) Guide to Ruby (2004) by ForHackernews on Thursday November 12, 2020 @07:24AM (#25069049)
The Python dependency/environment management situation is slowly improving. Poetry is quite good, IMO: https://python-poetry.org/
Re:Why's (Poignant) Guide to Ruby (2004) by rozab on Thursday November 12, 2020 @12:15PM (#25071986)
Python dependency management is the dragon-tyrant, and Poetry slayed it. And now we all wonder why it wasn't done years ago.