3 ms·
This is something I noticed different to Python. Go modules love to hide all their internals, and its made impossible to access the privates. If you need to twe
by stubish 8y ago
This is something I noticed different to Python. Go modules love to hide all their internals, and its made impossible to access the privates. If you need to tweak behavior, you are forced to fork. Unlike Python, where it is not unusual to reach in, ignoring the suggestions about privates, and mess around at runtime ('monkey patching'). Both approaches have problems, but the Python approach seems faster.
- jerf 8y agoAt this point in my career, I'd fork the Python library anyhow, if it were for any non-trivial professional usage. Monkeypatching is a maintenance nightmare. Of course, if it's a true one-off script or some personal hackery, go for it. But I wouldn't consider it a professional option. (I find myself thinking more and more lately about how to program professionally in the long term, rather than simply solving the problem at hand.)