D
Deleted member 43669
Guest
A silly attempt to keep my other thread from derailing.
So I've always had an irrational dislike for Python. I tried some programming ages ago and didn't like it, but I didn't really go deep enough to judge. Cue a few years ago; Django is released, I take a look at it and think "this is pretty neat, I ain't seen nothing like it, shame it's Python". A wee later, a suitable project for using Django shows up at work; a small website with news and a directory of artists- I plunge into Django and produce a great website in *two* weeks. The admin works as advertised and then more. I do have some issues with the templating stuff, but nothing serious.
Later on, I manipulate one of my programming leads to work on a significant project on Django. He's one of the best coders I've seen, falls in love with the framework and produces a highly successful complex project using Django.
Somewhat later, I'm looking for a job after a hiatus and a Django gig comes up. I take it.
I'm two months in. My thoughts on Django are in another thread. This one is about Python.
1) Dynamic typing is not good
Really. I haven't seen any major benefit from it. Our project's coders are quite good and I've got yet to see some place where I say "gee, this would suck using static typing". On the contrary, I get subpar tooling- pydev sucks compared to JDT.
2) Lambdas and comprehensions are good
God, I missed this doing Java. I prefer lambdas to comprehensions, and it seems that the latter are more Pythonic, but the syntax is unclear to me [ {x} for {f} for {f2} if {cond}] doesn't flow nicely for me, doing stuff with map, filter is more readable for me
3) Weird for the sake of being weird is bad
Ternary operator. WTF! Spaces for indentation required, "pass", having to break-down in multiple expressions introducing unneeded parens or splitting things awfully... why?
4) Java, no map syntax is braindead
MapUtils.<String,Integer>build("a", 1).put("b", 2).map vs. { 'a': 1, 'b': 2 } is a complete no contest. Maps are essential and having them so verbose leads you to not using them as often as you should
5) imports, paths, oh my
OK, this might not be a problem itself with the language, but with coders. imports having side-effects is just wrong. Aliasing stuff in __init__ is gggg... Having circular imports is fun.
6) Inconsistencies
Here I might be spoiled by the Java API, but the Python libs feel inconsistent
7) Pypi / pip is great
Much better than Maven
8) Nice ecosystem
Django is great. Celery looks good too.
I'll continue some other day...
So I've always had an irrational dislike for Python. I tried some programming ages ago and didn't like it, but I didn't really go deep enough to judge. Cue a few years ago; Django is released, I take a look at it and think "this is pretty neat, I ain't seen nothing like it, shame it's Python". A wee later, a suitable project for using Django shows up at work; a small website with news and a directory of artists- I plunge into Django and produce a great website in *two* weeks. The admin works as advertised and then more. I do have some issues with the templating stuff, but nothing serious.
Later on, I manipulate one of my programming leads to work on a significant project on Django. He's one of the best coders I've seen, falls in love with the framework and produces a highly successful complex project using Django.
Somewhat later, I'm looking for a job after a hiatus and a Django gig comes up. I take it.
I'm two months in. My thoughts on Django are in another thread. This one is about Python.
1) Dynamic typing is not good
Really. I haven't seen any major benefit from it. Our project's coders are quite good and I've got yet to see some place where I say "gee, this would suck using static typing". On the contrary, I get subpar tooling- pydev sucks compared to JDT.
2) Lambdas and comprehensions are good
God, I missed this doing Java. I prefer lambdas to comprehensions, and it seems that the latter are more Pythonic, but the syntax is unclear to me [ {x} for {f} for {f2} if {cond}] doesn't flow nicely for me, doing stuff with map, filter is more readable for me
3) Weird for the sake of being weird is bad
Ternary operator. WTF! Spaces for indentation required, "pass", having to break-down in multiple expressions introducing unneeded parens or splitting things awfully... why?
4) Java, no map syntax is braindead
MapUtils.<String,Integer>build("a", 1).put("b", 2).map vs. { 'a': 1, 'b': 2 } is a complete no contest. Maps are essential and having them so verbose leads you to not using them as often as you should
5) imports, paths, oh my
OK, this might not be a problem itself with the language, but with coders. imports having side-effects is just wrong. Aliasing stuff in __init__ is gggg... Having circular imports is fun.
6) Inconsistencies
Here I might be spoiled by the Java API, but the Python libs feel inconsistent
7) Pypi / pip is great
Much better than Maven
8) Nice ecosystem
Django is great. Celery looks good too.
I'll continue some other day...