Live data from Hacker News

MRI Developers Don't Use RubySpec and It's Hurting Ruby

rubini.us

91–100 of 118 posts

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#91
post #40

Earlier quoted context omitted.

That attitude is exactly why I have no interest in working with Java.

Wait, you're saying you'd prefer undocumented bugs and a constant stream of breaking changes to the runtime that force you to constantly port and report existing, working code? I don't get it... the Java way seems pretty right to me. That said, I will allow that they might have been a little bit too rigid about not allowing breaking changes. At the very least this policy has resulted in Java evolving more slowly than…

I prefer that bugs get fixed when found.

In my experience the Java way is 'oh, a bug, well, that's a bug defined in the spec so we can't fix it now, we'll make a note for the next version'...5 years pass.

The 'I don't want to touch working code' argument is another strange Javaism. If you expect your code to not rot your going to have to constantly maintain it anyway.

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#92
@senthilnayagam: . @yukihiro_matz can you respond http://t.co/qeeVAluOhJ

@yukihiro_matz: @senthilnayagam I am not in charge of testing. But as far as I understand it has been communication problems. Blaming no use.

@senthilnayagam: . @yukihiro_matz when merb could merge with rails, rubyspec shpuld merge with MRI & become official reference for all Ruby implementations

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#93

Earlier quoted context omitted.

You can't call code a spec. Saying you're defining Ruby by coding it just means you don't have a spec.

In my experience, executable specs are much more useful than their non-executable brethren. They prove their own correctness, and can't gloss over important details.

A program can't prove its own correctness in any useful way. Especially for a system that is under continual development.

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#94
post #30

Earlier quoted context omitted.

When did it become a serious Enterprise™ language? Not being flippant or denigrating Ruby, but when I do work for established enterprises, it's never in Ruby. Java, .NET, PHP, and occasionally Python. Just because startups use it to get off the ground quickly, or to build the front end of their website doesn't make it enterprise.

yes I don't want to get into a flamewar either, but I am an ex-RoR dev and since switching to enterprise Java I hear almost nothing about it largely due to enormously widespread acceptance of Spring (JavaEE is even re-gaining some traction). Long story short (and hope my facts are right! not swearing by this, was just some googling...), I had to optimize some old code for an RoR client I freelance for and wanted to a…

DataMapper isn't gaining traction, sadly. v1 is abandonware, v2 forked off to become a different project called ROM (which explicitly "isn't an ORM"). I still use DataMapper v1 because I find it a thousand times nicer than ActiveRecord, but it's a minority taste.

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#95
post #91

Earlier quoted context omitted.

Wait, you're saying you'd prefer undocumented bugs and a constant stream of breaking changes to the runtime that force you to constantly port and report existing, working code? I don't get it... the Java way seems pretty right to me. That said, I will allow that they might have been a little bit too rigid about not allowing breaking changes. At the very least this policy has resulted in Java evolving more slowly than…

I prefer that bugs get fixed when found. In my experience the Java way is 'oh, a bug, well, that's a bug defined in the spec so we can't fix it now, we'll make a note for the next version'...5 years pass. The 'I don't want to touch working code' argument is another strange Javaism. If you expect your code to not rot your going to have to constantly maintain it anyway.

And sadly, it seems the same with JS. Year 2015:

  x = null;
  typeof x; //object
  x.a = 1;  //TypeError: x is null

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#96
post #49
post #30

Earlier quoted context omitted.

yes I don't want to get into a flamewar either, but I am an ex-RoR dev and since switching to enterprise Java I hear almost nothing about it largely due to enormously widespread acceptance of Spring (JavaEE is even re-gaining some traction). Long story short (and hope my facts are right! not swearing by this, was just some googling...), I had to optimize some old code for an RoR client I freelance for and wanted to a…

That sounds like a philosophy of RoR, not Ruby. How would adopting RubySpec help with that?

The author claims that he is a professional developer, while bashing at a programming language (Ruby) because he wanted more abilities from an ORM (AR) of a web framework (Rails).

He thinks that DattaMapper is trending, when it's clearly not(!!) and doesn't know Sequel (another popular actively developed ruby ORM). Hence it's easy to deduce that he doesn't have a clue about the landscape he is talking about.

Yet he is bashing Ruby as if it's hard to write a module with a couple of complex, custom-made raw SQL queries.

... blah! ...

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#97
post #13
post #6

The thing I find depressing and frustrating about this kind of discussion is the fatalism and non-constructiveness. I really wish it was: "I set up a server that runs ruby spec on ruby-head daily and automatically reports spec failures to ruby-bugs" So many companies are making big bucks off Ruby, yet so little are willing to fork out a bit of money and time to make Ruby better.

it's unreasonable to expect the dev who has already put a ton of work into developing and maintaining rubyspec and making it work nicely with all the ruby implementations and versions he could to have to put in the additional work to do this as well. I don't blame him for getting discouraged at having to chase a moving target on top of all that - I agree with him that having the MRI devs contribute to rubyspec was a…

RS needs work contribution from each Ruby to make it sustainable.

It would also show leadership from MRI to encourage a semi-independent Ruby self-test framework that can run on any Rubyish interpreter. (Granted RS has RBX bias, but it would show leadership to coordinate common infrastructure.)

Since RS exists, seems like a good idea to go with that for full up integration testing, but each Ruby should still unit test it's own, low-level bits. (Is MRI doing that at least?)

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#98

Why don't MRI developers use RubySpec?

As linked in another comment, basically: https://bugs.ruby-lang.org/issues/7549#note-2 1. Matz is, and always will be BDFL. 2. The core Ruby team wants to talk in terms of C and MRI being the Ruby spec, not a third party/written RubySpec

That's an absolutely terrifying attitude from a language developer....

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#99
post #81

Earlier quoted context omitted.

Now that the main maintainer quit, can those nontechnical reasons be resolved?

Hopefully. I would be willing to take a crack at it.

If you (or anyone else) do, I'd be ready to help.

Re: MRI Developers Don't Use RubySpec and It's Hurting Ruby

#100
post #98

Earlier quoted context omitted.

As linked in another comment, basically: https://bugs.ruby-lang.org/issues/7549#note-2 1. Matz is, and always will be BDFL. 2. The core Ruby team wants to talk in terms of C and MRI being the Ruby spec, not a third party/written RubySpec

That's an absolutely terrifying attitude from a language developer....

Is it? Python is exactly the same. It has no language spec (defined by its implementatation), and it has a BDFL who hasn't pushed for one.
Post reply on HN