News for hackers. Stuff that matters.
Re:Scala – 1 Star – Would Not Program Again by nnq on Monday December 02, 2013 @01:36AM (#6832133)
> The only real outlier being Javascript which gets its popularity from being the only option for the browser.

This is probably the reason for Javascript's popularity, but if you ignore some bad language design, Javascript is a very simple language with a very small number of concepts that you need to understand to start getting work done in it. Even Python (which I think is the simplest of the widely used dynamic languages) has a larger number of concepts that you need to understand than Javascript.

So I don't think Javascript it's an outlier according to your theory, it's very much a simple language, the only remarking features compared to C/Java/C#/etc are the fact that it's dynamic and that some corners of it are badly designed, plus exceptionally badly designed API if you're doing anything in the browser that's not abstracted by a platform library.

Re:Scala – 1 Star – Would Not Program Again by w0utert on Monday December 02, 2013 @05:58AM (#6832979)
>> This is probably the reason for Javascript's popularity, but if you ignore some bad language design, Javascript is a very simple language with a very small number of concepts that you need to understand to start getting work done in it

I hear this a lot. JavaScript is great unless you [insert example why JavaScript isn't great]. You could easily turn that statement around: JavaScript sucks, unless you don't [insert example why JavaScript sucks]. It's an empty statement that could apply to almost any development language no matter how objectively 'good' or 'bad' it is.

I don't know Scala, but judging from the (interesting) article it appears that Scala can be perceived as a bad language because it allows you to write obfuscated, hard to read code that hides many details of what's going on in the program. This can be both a good and a bad quality, depending on the kind of program, and the kind of developer. Personally I like languages that aren't too opinionated or restrictive, so I might like Scala. Compare this to JavaScript, which is a bad language for the simple fact that it's downright dangerous to program in looking at all the idiotic, arbitrary corner cases you have to avoid.

You could have a philosophical discussion about the merits of the design choices in Scala, I don't think you could say the same about JavaScript though, it really is popular only by accident.

Re:Scala – 1 Star – Would Not Program Again by berntb on Monday December 02, 2013 @06:55AM (#6833125)
>>It's an empty statement that could apply to almost any development language no matter how objectively 'good' or 'bad' it is.

No, it isn't really contentless.

All really complex systems will have ... well, less than perfect parts. That goes for programming languages in (at least) a subset of their use cases.

You can either live in denial of "cruft" when choosing programming language or accept that you need to enforce a standard of best practices in your group.

Then you evaluate languages with how they works if the best practices are followed. JavaScript's "good parts" -- and bad -- are well documented and discussed, most everyone knows about this subject.

The overhead of designing/teaching and following those "best practices" needs to be factored into the equation too, of course. It might e.g. be too much of a pain for the std library of PHP (example chosen because I don't know PHP enough to have an opinion.)

Re:Scala – 1 Star – Would Not Program Again by Sirenos on Monday December 02, 2013 @03:53AM (#6832567)
That doesn't qualify as simple in my book though. Javascript has fewer concepts that programmers need to keep in their heads, but they are horribly inconsistent and quirky. Python, on the other hand, is consistently designed so that there are very few cases where you get hit with unexpected behavior.
Re:Scala – 1 Star – Would Not Program Again by Skinney on Monday December 02, 2013 @04:19AM (#6832643)
Well, to be fair, most unexpected behaviour in js comes from people not knowing the language, or people expecting js to behave like other languages. I do agree though, that js does have its share of design quirks.
Re:Scala – 1 Star – Would Not Program Again by chilldream on Monday December 02, 2013 @09:52AM (#6833944)
> most unexpected behaviour in js comes from people not knowing the language

Isn't this just a rationalization? Any unexpected behavior is by definition something the user didn't know to expect.

Re:Scala – 1 Star – Would Not Program Again by Skinney on Tuesday December 03, 2013 @05:34AM (#6839542)
Well yes. But in that case Haskell is full of unexpected behaviour for someone completely new to functional programming, as C++ is to someone used to Lisp.
Re:Scala – 1 Star – Would Not Program Again by edwinnathaniel on Tuesday December 03, 2013 @05:42PM (#6843729)
The problem is we can't ignore the bad language design.

Look around and see those (depending on how you view them) odd/complex "design patterns" that only exist in JavaScript to emulate missing features.