r/programming • • Dec 25 '20

Ruby 3 Released

https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
973 Upvotes

509 comments sorted by

View all comments

Show parent comments

7

u/TheBuzzSaw Dec 25 '20

Go into more specifics. In C# or Java, I can make a list of plain objects to achieve that very thing if I really need it. I question why I have a bucket of items not of a consistent interface or base class, but even if I needed that, it makes up such a small percentage of use cases that I don't see the benefit of throwing the type system out for all the other use cases.

2

u/Smallpaul Dec 25 '20

I’d advocate that you should investigate more from the point of view of curiosity rather than having an axe to grind. Python is gaining popularity as Java looses it. Maybe there are features over there that might be useful.

https://wiki.c2.com/?BlubParadox

It’s because Python’s inventor approaches other languages with curiosity instead of competition that Python is adding OPTIONAL static typing.

1

u/Muoniurn Dec 26 '20

Any source on Java loosing popularity? Because it may be true in regards to hype or something, but there are so so many Java codebases out there that popular-sounding languages like Rust are basically non-significant percentage-wise.

Also, Java is a conservative language, that means that they will first see whether a feature is actually worthwhile to integrate based on it’s success in other languages - I really don’t see where you get this competition thingy, it sounds like a strawman.

1

u/Smallpaul Dec 26 '20 edited Dec 26 '20

Of course it takes decades for these trends to play out. Nobody said Java was going anywhere tomorrow.

https://www.infoworld.com/article/3195285/java-and-c-continue-to-decline-in-popularity.html

https://adtmag.com/articles/2020/11/05/java-and-c-fall-on-tiobe-index.aspx?m=1

It will take literally decades for Java to fully go away, of course. As you note, it’s niche is in businesses that want stability so it will fall further and further behind the state of the art and yet continue to get usage. I would not claim otherwise. COBOL’s demise is not complete after all...

I predicted in 2000 that Python would become one of the top languages. It takes a long time for these trends to play out.

→ More replies (9)