Build it in Go and you don’t need to drag in a million weird dependencies. The whole idea you need a 300MB container image to run a simple Python program is a perfect demonstration of everything that’s wrong with software development.
Build it in Go and you don’t need to drag in a million weird dependencies. The whole idea you need a 300MB container image to run a simple Python program is a perfect demonstration of everything that’s wrong with software development.
Given how often this comes up, I think it's high time that alpine replaced the default allocator with something more modern.
I’ve seen people install numpy so they could compute Euclidean distance. math.dist() is _right there_, people.
Same with requests, if you're doing trivial things. urllib.request() exists.
:)
People will be much better off and happier if they switch to Go for 99% of tasks. I’ll understand if it’s python for machine learning.
if err != nilRe: guaranteed behavior, correct me if I'm wrong, but for anything in stdlib, you'll either get the expected return value or an exception. For example, checking an array with str.isdigit() isn't undefined if the array has a None, it raises AttributeError.
But yes, you can just yolo things and hope for the best, which is why it's a terrific scripting language. If you add typing and properly catch expected errors, it's quite capable. Whether or not Try/Except blocks are uglier than err is nil is subjective.