4 ms·
please, don't do any of this in your python, thanks
by adammarples 4y ago
please, don't do any of this in your python, thanks
- deleted 4y ago[deleted]
- mariorojas 4y agoI really feel overwhelmed. I like coding in Python because it makes me feel free from Java stuff, but those patterns have getting me worried.
- bussierem 4y agoA decade of python here. I have found that Python really can show you what other language is someone's primary language. You can write Python to look VERY Java-like, or very Ruby-like, or many others. Idiomatic Python does not look like this generally. Another commenter hit it well that this is just badly-hidden Java code written with Python. Python is what you make it to be; don't let this kind of stuff from random people on the internet scare you into thinking you have to use GoF and Java-like patterns and classes everywhere. You CAN, but only if those are actually _useful_ to you.
- mariorojas 4y agoI agree! You know? When I feel burned out of Java, I usually write a quite simple script in Python and then, normally I get energy to complete my tasks. I don't imagine myself struggling against the same design patterns in Java when coding in Python. Thanks for your advice.
- kortex 4y agoDependency injection and lazy_property are excellent, I use those all the time. I've used visitor on occasion. The rest? Mostly meh, some are straight up bad.