News for hackers. Stuff that matters.
Re:Dynamic Languages are Unmaintainable by jccooper on Monday July 01, 2013 @12:02PM (#5971501)
Are so many bugs really caused by type problems? I run into type based errors in Python almost never. It is not hard to keep track of dynamic types, and takes the same effort (or less) than static typed programming. In both cases, you have to know what type you are working with, right?

If you have this problem you have probably been trained to be sloppy by compilers.

Re:Dynamic Languages are Unmaintainable by prewett on Monday July 01, 2013 @09:52PM (#5975224)
I often get burned by doing something like `key = "player" + playerId`. Unfortunately, playerId is an int, and I forget that even though most other languages besides C/C++ will convert that for me, Python will not, so I get a runtime exception. Same thing with `print "no space after this" + number`, because I get used to `print "space after this", number` and then sometimes I don't want the space and inevitably I forget to do `str(number)`.

Mind you, this is the sort of thing you usually discover quickly, but it's also the sort of thing that most other languages will catch at compile time.