gazetteer
Python Gazette
Re:Statically Typed Languages Encourage Bad Code
on Wednesday October 20, 2010 @08:21AM (#1810856)
It seems I have communicated poorly. The point is not that the type info makes the code bad code, but that one-liners are bad code and that one-liners are encouraged by requiring type declarations.
Re:Statically Typed Languages Encourage Bad Code
on Wednesday October 20, 2010 @05:38AM (#1810567)
I take it you find the one-liner more aesthetically appealing? I'm not arguing, just taking a survey. I'm deeply interested in what constitutes "good" code.
Re:Statically Typed Languages Encourage Bad Code
on Wednesday October 20, 2010 @05:35AM (#1810562)
There is an inferred point in this post, touched on in the last paragraph: that this tendency to lump a lot of operations into one line is less about bad language design and more about lazy programmers. I never stated that statically typed languages ARE bad, but that they ENCOURAGE (lazy) programmers to write bad code. A lazy programmer might see that as bad code but not fix it because he doesn't want to go through the work mentioned in the post. A lazy programmer may not know the IDE functions that would do the work for him.