News for hackers. Stuff that matters.
Re:The JavaScript Problem by Solarsail on Sunday April 27, 2014 @06:25AM (#7654579)
Aren't these two equivalent statements? Liberty to do any particular thing, ever, increases the ability to do something wrong. And so requires more caution. That doesn't stop restrictions that would alleviate said caution from being overbearing themselves. (Maybe they aren't always overbearing, either way...)
Re:The JavaScript Problem by wyager on Sunday April 27, 2014 @12:49PM (#7655774)
> Liberty to do any particular thing, ever, increases the ability to do something wrong.

The difference is that "liberty" tends to increase one's ability to do both right and wrong. Dynamic typing tends to only increase one's ability to do wrong.

Re:The JavaScript Problem by pdonis on Sunday April 27, 2014 @06:07PM (#7657163)
> Dynamic typing tends to only increase one's ability to do wrong.

Apparently you place no value on programmer time. Why should I have to waste time with type declarations that add no benefit to my program? Why should I have to construct an artificial type hierarchy just so I can write common code to deal with two different kinds of objects that are duck-type compatible but don't happen to share a common base type that the type system recognizes?

I agree that there are certain kinds of applications where static typing can be a benefit that is worth spending the extra programmer time; but the claim you are making is much stronger than that.

Re:The JavaScript Problem by wyager on Sunday April 27, 2014 @10:16PM (#7657905)
Static typing can save a lot of time otherwise debugging later, and really isn't that much of a time investment.
Re:The JavaScript Problem by pdonis on Monday April 28, 2014 @01:07PM (#7661280)
I agree, for certain types of applications. But as a general statement applying to all types of applications, I disagree strongly.
Re:The JavaScript Problem by teacup50 on Sunday April 27, 2014 @02:48PM (#7656231)
Static typing gives me the liberty to explicitly define much more complex ideas in ways that leverage the compiler to create powerful and beneficial systems that would otherwise be untenable in a language in which one could not leverage the intelligence of the type system to offset their human limitations.