4 ms·
Code is way less readable without types. If I see this: def create_user(user): other_function(user) Then how do I know what `user` is? Is it a dictionar
by goodoldneon 4y ago
Code is way less readable without types. If I see this:
def create_user(user):
other_function(user)
Then how do I know what `user` is? Is it a dictionary? An object? If it's an object, where's its class definition? To find the answer I need to search for all the code that calls `create_user`, and then code that calls that code, and then code that calls that code, ad nauseam.
Onboarding into a huge, untyped codebase is brutal