News for hackers. Stuff that matters.
Re:TypeScript: a language for application-scale JavaScript d... by jakejake on Monday October 01, 2012 @01:23PM (#4598215)
I have a theory about this - how you feel about static typing is related to whether you see the compiler as your friend or as your enemy.

If you see the compiler as your friend then you tend to like type checking because it blocks certain bugs and typos. It won't let you run your code until they're fixed. If you see the compiler as your enemy, as a barricade that you need to get past, then you tend to not like static types. The compiler prevents you from seeing your code running immediately.

Obviously there's other benefits to each system but I feel like this is the more "gut reaction."

Re:TypeScript: a language for application-scale JavaScript d... by masklinn on Monday October 01, 2012 @03:31PM (#4598918)
> I have a theory about this - how you feel about static typing is related to whether you see the compiler as your friend or as your enemy.

An alternative explanation is a dislike of overly verbose languages with terrible type systems (the poster child for this category being Java), and as a result of low exposure to better statically typed languages painting all of the category with a Java brush.

Re:TypeScript: a language for application-scale JavaScript d... by jakejake on Tuesday October 02, 2012 @03:01PM (#4603623)
probably true if people equate static typing to Java then they assume it adds a lot of overhead.
Re:TypeScript: a language for application-scale JavaScript d... by airfoil on Monday October 01, 2012 @03:19PM (#4598850)
Ha! I think you may be on to something. I've always had a "fear of rejection" with the compiler and I tend to get more enjoyment when coding in Python, Lisp, etc..