Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Same, but the best software engineers write code that's maintainable and understandable by anyone, including themselves on 5 years.

If you ever find yourself asking what's actually in this variable, and the code is too dynamic for the IDE to tell, it's going to be too hard for a lot of developers to tell, and maybe even the author themselves in a few years.

If the type hints are too complex and involve multi line annotations with 500 unioned types, then we should remember: the programmer does still have to remember what type that parameter can be, even if it's not annotated. Leaving out the annotation doesn't simplify the program, it just moves some information from from explicit to implicit.

Calling static typing a crutch is like calling a passenger airliner's takeoff checklist a crutch. I mean maybe it is from one perspective...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: