News for hackers. Stuff that matters.
Re:"Useless Ruby sugar": Argument forwarding by hu3 on Friday November 24, 2023 @12:26PM (#38406159)
This (syntactic sugar) is the kind of thing that wouldn't even be considered in Go. And that's fine.

I find it interesting that Go and Ruby can be placed at two different ends in so many spectrums and yet both still managed to be popular.

Goes to show that trying to build THE ONE TRUE LANGUAGE THAT WILL UNITE ALL DEVS is a fool's errand.

Re:"Useless Ruby sugar": Argument forwarding by Gh0stRAT on Friday November 24, 2023 @12:45PM (#38406346)
I think that Javascript's massive success with the terrible syntax it used to have goes a long way toward confirming your hypothesis.
Re:"Useless Ruby sugar": Argument forwarding by loloquwowndueo on Friday November 24, 2023 @12:49PM (#38406386)
“Used to have” :)
Re:"Useless Ruby sugar": Argument forwarding by Gh0stRAT on Friday November 24, 2023 @02:24PM (#38407248)
Haha yeah, I was being charitable to avoid starting a flamewar ;)
Re:"Useless Ruby sugar": Argument forwarding by pphysch on Friday November 24, 2023 @12:57PM (#38406467)
JavaScript's massive success has nothing to do with the language and everything to do with the fact that its embedded in every web browser. There were no alternatives.
Re:"Useless Ruby sugar": Argument forwarding by vkou on Friday November 24, 2023 @12:50PM (#38406393)
Do people do real work in JS in 2023, or do they do it in languages that compile down to JS?
Re:"Useless Ruby sugar": Argument forwarding by dtech on Friday November 24, 2023 @02:04PM (#38407054)
Ignoring compiling and polyfilling for older JS versions, Typescript is extremely popular. While it's compiled, all things beside the type system are from Javascript by design including syntax.
Re:"Useless Ruby sugar": Argument forwarding by epcoa on Friday November 24, 2023 @02:25PM (#38407255)
Probably of all people a lot of ruby acolytes do since a sizable portion of that community is a DHH personality cult. And plain JS is the 2nd best language ever made in that realm.
Re:"Useless Ruby sugar": Argument forwarding by still_grokking on Saturday November 25, 2023 @04:01AM (#38412275)
That's like saying "Objective C was a broadly successful language"…
Re:"Useless Ruby sugar": Argument forwarding by endorphine on Friday November 24, 2023 @12:51PM (#38406403)
Even more interesting to me is the fact that there are people whose most favorite languages are Ruby and Go. (I'm one of those people.)
Re:"Useless Ruby sugar": Argument forwarding by nunez on Friday November 24, 2023 @12:56PM (#38406453)
Same. Ruby is easy to read. Golang is super efficient and much safer.
Re:"Useless Ruby sugar": Argument forwarding by appleskeptic on Friday November 24, 2023 @12:57PM (#38406465)
Ruby and C here.