News for hackers. Stuff that matters.
Re:Is Rails still relevant in 2018? by joelbluminator on Tuesday August 28, 2018 @04:19AM (#17857321)
I think the types argument is bullshit but it's just my opinion. Do python or ruby devs really feel they are less productive than java devs because they have no types? What I see happening is languages like java becoming more dynamic (var etc) and languages like ruby/python getting better IDEs (auto completion will continue to improve).
Re:Is Rails still relevant in 2018? by strken on Tuesday August 28, 2018 @06:23AM (#17857719)
I'm absolutely terrified of refactoring in big python, ruby, or javascript codebases, because there's less chance that I'll be able to find all the side effects of changing something. Tests help, but maintaining high-enough test coverage over possible code paths can be harder and less useful than working with a type system and writing fewer tests.
Re:Is Rails still relevant in 2018? by lmm on Wednesday August 29, 2018 @02:46AM (#17866196)
> What I see happening is languages like java becoming more dynamic (var etc) and languages like ruby/python getting better IDEs (auto completion will continue to improve).

I agree that that's what's going to happen in the short term, but var doesn't mean becoming dynamic; type inference doesn't compromise soundness at all. I think it's going to be much easier for sound type systems to get good-enough inference (indeed Hindley–Milner already offers "perfect" inference: you don't need to write any explicit types if you don't want to) than for dynamic languages to retrofit soundness. And while one can live with a few unsound constructs as long as it's locally clear when unsoundness is happening, as soon as you have pervasive soundness issues with action-at-a-distance your type system becomes almost useless.

Re:Is Rails still relevant in 2018? by meijer on Tuesday August 28, 2018 @05:40AM (#17857586)
> Do python or ruby devs really feel they are less productive than java devs because they have no types?

Yes, I do.

Re:Is Rails still relevant in 2018? by joelbluminator on Tuesday August 28, 2018 @07:04AM (#17857862)
OK, it's a fair opinion to have. But that's all it is, an opinion. Also - what makes you stick to python/ruby then?
Re:Is Rails still relevant in 2018? by IMTDb on Tuesday August 28, 2018 @04:40AM (#17857390)
I don't know about ruby and python but in JS there a significant number of projects that aim at adding a type system on top of the launguage
Re:Is Rails still relevant in 2018? by joelbluminator on Tuesday August 28, 2018 @05:17AM (#17857518)
I don't think it's such a huge trend, if it was Python wouldn't be one of the top 3 most popular languages in the world. Yes, there is typescript for Angular. Outside of that how often is it used? Pure JS is still used tons.
Re:Is Rails still relevant in 2018? by scns on Wednesday August 29, 2018 @04:25AM (#17866645)
It may not be a "huge trend", but those investing into static typing reap the rewads. Facebook rewrote messenger in ReasoML, bugs reported by users went from hundreds a year to less then ten. Fearless refactoring is another plus, the compiler will find everything you need to change to make the program run correctly.
Re:Is Rails still relevant in 2018? by philwelch on Tuesday August 28, 2018 @11:01AM (#17859288)
Python 3 has type annotations and there are static type analyzers for it.
Re:Is Rails still relevant in 2018? by UK-Al05 on Tuesday August 28, 2018 @05:01AM (#17857465)
Var is hardly more dynamic. Type inference is comes from statically type functional languages.
Re:Is Rails still relevant in 2018? by cutler on Tuesday August 28, 2018 @12:49PM (#17860406)
Java's var is only for type inference so nothing to do with dynamic typing.