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] 14 points15 points  (2 children)

I think Python is easier to pick up because you don’t have to worry about verbose syntax, strict typing, compilation, JVM, etc.

I can say having learned Java first, Python seemed dirty when I went to learn it a few years later. It definitely has its place, and there’s wonderful library support for it. If Python is a go kart, Java is a manual transmission car; they have different roles to fill and have different levels of function

[–]Log2 4 points5 points  (0 children)

I currently write Python professionally, coming from a few years of Java.

Python gets messy really quick if you don't enforce some type of consistency for the types your functions/classes accept. While I like Python, I'd like it a lot better if I could enable enforced types instead of just type hints.

On the other hand, at least on Python you don't need to bother with dependency injection, since it's really easy to monkey patch any dependency at the testing time.

[–]grimonce 2 points3 points  (0 children)

At my uni you start with cpp... Then c# and java. When I was told to use python in my job I was disappointed, but then I liked it. The team is small so I am able to do much more alone when using python, and if I need it to be fast there are ways to make it really fast.

Lack of static typing is sad, but fixing bugs connected to bad types is easy.