357 karma · joined January 27, 2014
https://github.com/yedpodtrzitko
---
meet.hn/city/vn-Da-Nang
Interests: Digital Nomad
---
Could you elaborate? I'm in the opposite camp and any time I try to use VSCode with Python, I really miss the Semantic Highlighting there, which helps with orientation in the code quite a lot.
from https://old.reddit.com/r/Unity3D/comments/16hgmqm/unity_want...
But you got the answer for your original question, right?
> In Python, you will never do post.__str__ for example. Instead, you’ll do str(post)
No you dont. You do the same thing you did with `puts post` in your Ruby example: `print(post)`, which will call `__str__()` method.
> In Python, it’s easy to accidentally write to the count attribute — which can break your program.
To address writing into attribute directly - you can use @property decorator, which will stop you into writing into given attribute, unless you add a setter.
However the main problem in this fabricated example wouldnt be that you can break your program by accidentally writing into an attribute. I'm not sure how common is it in Ruby, but mixing the instance variables together with class variables this way seems like a bad design, and that is what will break your program.
Regarding the Django example - ok that is far from perfect, but comparing a framework which maintains backward compatibility for years with code you write from scratch without worrying about anything is barely a fair comparison.
#1 Performance
#2 Performance (to make the list longer I guess?)
#5 Fast compile time... which is an advantage over Python how exactly?
#7 Strong ecosystem... which brings us to disadvantage #1 - lack of frameworks (?)