3 ms·
I am a Python (green) programmer who joined a team using Java (Brown), but I have found that working with Java has overall been a great experience. Most of tha
by roland35 6y ago
I am a Python (green) programmer who joined a team using Java (Brown), but I have found that working with Java has overall been a great experience. Most of that may be because of Intellij, but I find the verbosity helps prevent future bugs and helps more strickly define interfaces.
- rowanseymour 6y agoI imagine a lot of Python programmers find themselves using strongly typed language, and love that a whole class of bugs has just disappeared.
- pydry 6y 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 6y agoHow is it 40% more code??
- roland35 6y 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 6y 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 6y 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 6y 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 6y agoPython is strongly typed. You mean static typing.
- CodeGlitch 6y agoI am also a Python programmer, and would much rather write code in Java these days. Having a compiler tell you when you've made a mistake rather than waiting for a test to run is so much more productive. People who tell you that scripting languages improve productivity are lying.
- vardump 6y agoScripting languages can be great for very quick iterations, but they can also cause serious issues in larger, mature projects.