Python is not a great programming language
11–20 of 156 posts
Re: Python is not a great programming language
#12I love Rob Pikes idea that is dumb to have scope determined by invisible characters
Re: Python is not a great programming language
#13Yeah, I thought so when I was reading the list of "problems". In fact, many of those are features (e.g. lists & tuples being different, list comprehensions, lazy evaluation, distinction between maps/dicts and objects, ...) but the author doesn't actually understand them. I hate to sound so negative, I guess I just didn't realize how bad a programmer knowing (only/mainly) JavaScript causes you to be.
Re: Python is not a great programming language
#14Re: Python is not a great programming language
#15Django is ok if you have a web site with content and forms that map nicely onto SQL tables. Any 1998 website, basically, with not too much of a load. Any other setup, and it gets messy. > Needing to put dict property names `{'in': 'quotes'}. Now that's a part I like.
Does the author not realize that you can use (almost) anything as a dict key?
a = 123
b = 'foo'
d = {a:456, b:123, 2.3:'2.3'}
print(d)
>>> {123: 456, 'foo': 123, 2.3: '2.3'}Re: Python is not a great programming language
#16Django is ok if you have a web site with content and forms that map nicely onto SQL tables. Any 1998 website, basically, with not too much of a load. Any other setup, and it gets messy. > Needing to put dict property names `{'in': 'quotes'}. Now that's a part I like.
Re: Python is not a great programming language
#17I think I agree. Here are a couple of more, from someone who has worked for years in a number of languages: - few limitations means you can easily make a serious mess, which means you are more dependent on good programmers to avoid the mess. - lack of typing information isn't "free solo" hard but it certainly makes life a lot less pleasant.
> lack of typing information isn't "free solo" hard but it certainly makes life a lot less pleasant. One of the projects I work on has switched to full type hinting along with heavy mypy¹ usage, and it has become an absolute pleasure to work with. Along with hypothesis², I can't recommend mypy enough. It must be said that retrofitting either to an existing project is a lot of work though. 1. http://www.mypy-lang.org/…
Re: Python is not a great programming language
#18Re: Python is not a great programming language
#19There are two paths to take when one encounters something new; adapt and learn, or reject and mock. This sounds like the latter.