News for hackers. Stuff that matters.
Re:Ruby 2.4.0-preview1 released by skewart on Tuesday June 21, 2016 @11:04AM (#11946126)
> The truth of it is, is that once you've picked up Ruby, nothing feels quite as nice as a scripting glue language.

I today agree. Ruby is amazing as a light scripting language - heck, I think it's pretty great as an all-around language, but quick glue scripts are where it really shines.

I wouldn't be sad to see it fade in popularity if it weren't for the fact that the language(s) and/or ecosystems eclipsing it are so, well, lame. For a profession that demands so much careful, reasoned thought software engineers as a whole can be incredibly irrational.

Re:Ruby 2.4.0-preview1 released by CGamesPlay on Tuesday June 21, 2016 @12:29PM (#11946927)
> the language(s) and/or ecosystems eclipsing it are so, well, lame. For a profession that demands so much careful, reasoned thought software engineers as a whole can be incredibly irrational.

How do you reconcile an unsupported "lame" without being "irrational"? Do you have technical reasons they're lame?

Re:Ruby 2.4.0-preview1 released by skewart on Tuesday June 21, 2016 @01:07PM (#11947323)
Haha, good point.

I don't have time to go into much depth right now, but basically the ascendent languages don't seem to offer many compelling technical advantages. For example, I've yet to hear a compelling reason why JS makes a better serverside language than Ruby for most use cases. To be fair, Node and some of the JS libraries for a long time offered advantages over the Ruby ecosystem for things like websockets (EventMachine used to swallow stack traces in a really annoying way). But that has more to do with the ecosystem than the languages themselves.

I think part of the problem had to do with how dominant Rails was/is in Ruby. I wish a framework that better catered to emerging app design trends had gotten traction in Rubyland in, say, 2012.

As for specific complaints about JS, well, it's a perfectly fine language, but I don't think it's an improvement in any way over Ruby. It has a number of quirks and compromises - prototype inheritance, basically no support for modules, clumsy typing, to name a few - which people have been patching over and working around in lots of different ways over the years. You end up with a forest of different solutions to things that wouldn't have been a problem in other languages. Now some fairly dramatic changes are being introduced, which is probably good, but it means the ecosystem is even more complicated. Working with the JS ecosystem feels like working with a poorly maintained legacy codebase - there are lots of places where people have come up with workarounds to things that shouldn't have been a problem in the first place; it makes you tired just thinking about all the mental energy spent solving all the little unnecessary problems.

Re:Ruby 2.4.0-preview1 released by mark_l_watson on Tuesday June 21, 2016 @01:36PM (#11947610)
I agree. I am happy writing code in Ruby: NLP stuff, Sinatra light weight web apps, and short text handling utilities.

I also use Haskell, Java, Common Lisp, and Clojure (and Python for machine learning libraries) but I am happiest working in Ruby.

Re:Ruby 2.4.0-preview1 released by igravious on Tuesday June 21, 2016 @03:56PM (#11948931)
How do you do NLP stuff in Ruby? I thought Python was the go-to dynamic interpreted language for that work what with recent efforts by SpaCy and of course NLTK modules and Sci.py and Num.py ? What do you know that I don't. I'd love to be able to do stylometrics/topic-modelling/part-of-speech analysis/word vectors/… in Ruby -- please show me the way :)
Re:Ruby 2.4.0-preview1 released by mark_l_watson on Tuesday June 21, 2016 @06:13PM (#11949868)
I have a live demo: http://kbsportal.com

Edit: however, stick with Python for deep learning NLP, and NLTK works well and is exceedingly well documented.

Re:Ruby 2.4.0-preview1 released by igravious on Tuesday June 21, 2016 @07:14PM (#11950235)
Thanks!