3 ms·
I imagine a lot of Python programmers find themselves using strongly typed language, and love that a whole class of bugs has just disappeared.
by rowanseymour 5y ago
I imagine a lot of Python programmers find themselves using strongly typed language, and love that a whole class of bugs has just disappeared.
- pydry 5y agoI went in the opposite direction coz 40% more code to maintain didn't seem like a worthwhile price to pay to catch some pretty shallow bugs. Especially since more code correlates pretty strongly with more bugs.
- kaba0 5y agoHow is it 40% more code??
- roland35 5y agoJava is certainly more verbose, but I feel that nothing is free and being more concise comes with some costs. For some applications the trade off is certainly worth it! I use python and Django for personal projects to move quickly. But if I need to build something that will be rock solid I need to move more slowly and carefully, and Java works well for that.
- dunefox 5y ago> But if I need to build something that will be rock solid I need to move more slowly and carefully, and Java works well for that. Rock solid with features like null references, AbstractFactoryFactories, extremely over-engineered class and inheritance architectures, object fetishism, etc. I know what you mean, but Java and rock solid are not something I would mention together.
- rowanseymour 5y agoFor me it depends what I'm working on.. I love writing loosely typed magic in Python for small scripts. But if I'm working on something big in Python, I take the time to use type annotations. IMO it makes the code easier to understand.
- dzonga 5y agohonestly types are overrated. if you still what's now known as data oriented programming or passing values then Python isn't a pain. However in the wild, yeah Python code can be an abomination due to people doing OOP then heavy classes without types and that is a pain. This is the main reason, I avoid Django most times even though I like Django because maintenance can be a pain.
- dunefox 5y agoPython is strongly typed. You mean static typing.