Hacker News new | ask | show | jobs
by spoils19 1235 days ago
Pain. You write endless tests to ensure that you cover for all types coming into critical code paths, but you can't cover for all of them. At the same time, you have no guarantee of the type of something like a function argument, so a huge amount of time is wasted if you accidentally misread or assume the wrong type.

Data scientists giving me code and not telling me what Python libraries they are using or which dataframe to use has caused a week of headache, personally.

2 comments

I was just saying in another comment how I wish the ML community would replace python with a statically typed language with truly concurrent multi threading. FastAI tried to pivot to Swift but unfortunately failed.
You can write `assert`'s in your code at the top to limit the scope of types coming in or handle them if the values are bad.