3 ms·
I think I'm in the other side of your problem? I found easier to read Rust code than untyped Python. My big issue with python (and others like plain JS) is the
by Saphyel 3y ago
I think I'm in the other side of your problem? I found easier to read Rust code than untyped Python.
My big issue with python (and others like plain JS) is they don't type things and it's easy to forget what is what
Also Rust program are usually small, in the other hand in Python I see objects that extends from 6 objects and they can be as big as 1k lines with data inside
If you really have ADHD after 10mins reading untyped python how can you remember if you are passing a dict or an object? or what it was 200 lines above of the same object ? or what it has the 6 other objects that you are extending from?
- extasia 3y agoThe answer to your last question is that you can't. Even with types the multiple inheritance example you describe is incredibly frustrating and near impossible to grok. I love huggingface's transformers library and use it every day, but trying to find out what the fuck is actually going on when I 'call' a model instance (yes, they overloaded __call__) is a kafkaesque journey through the inheritance tree. I must have tried like 5+ different times and I still don't know what's going on. edit: sorry for the rant, it's just an example of multiple inheritance and python pain.