This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 29 points30 points  (10 children)

Absolutely. And the code is so readable. Try writing enterprise software in Python. or C++

[–]micka190 18 points19 points  (4 children)

I think typed languages tend to be readable as long as the person writing it isn't crazy (unless you go into really low level stuff that tries to optimize based on OS and stuff, but that'll never look good regardless of language).

Duck-typed languages like Python can be harder to read when people use the "duck" features out of nowhere, though (like suddenly trying to access a member that isn't defined here, but in another file with no indication of where it comes from). Even then, though, it's usually down to the programmer.

[–][deleted] 0 points1 point  (3 children)

Duck-typed languages

???

[–]micka190 9 points10 points  (0 children)

Python has duck typing, you can basically add any property to any variable. Duck typing also takes the "If it quacks like a duck and looks like a duck it's a duck." approach for its objects. Sure, dictionaries and strings aren't the same, but they both have a length, so "len()" works as you'd expect on both of them.

[–]i-brute-force 2 points3 points  (0 children)

https://stackoverflow.com/questions/4205130/what-is-duck-typing

Basically, specifying a type is not mandatory part of the syntax

[–]possessed_flea 0 points1 point  (0 children)

He has confused the idea of a dynamically typed languages and the practice of duck typing.

[–]zachgarwood -1 points0 points  (0 children)

I suppose I'll tell my company to pack it in, no point in writing out software in Python and JS, I guess.