Hacker News new | ask | show | jobs
by tdeck 199 days ago
This heavily depends on the particular era of the language and the particular coding practices of the team though.

For example, I'm happy to maintain Python codebases with type annotations and type checking enabled. Those without better have a pretty solid docstring culture and be willing to add progressive type checking. It doesn't so much matter what version of Python it is.

1 comments

> For example, I'm happy to maintain Python codebases with type annotations and type checking enabled.

"Python codebases with type annotations and type checking enabled" is not the norm. Consider a random file from the famous `pytorch` framework.

https://github.com/pytorch/pytorch/blob/main/torch/_functorc...

Even this file does not have type annotations everywhere.

They're becoming the norm for newer systems written in Python though. So I don't think the language is enough information to go on. This heuristic simply biases against languages that have been around a long time because more of their code was written before practices evolved.