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

Tests, types and field names get checked on build.


If someone adds functionality to a type so the name isn't really applicable anymore I don't think the build catches that.


As soon as you form something that should conform to the type (according to its name) and find that it doesn't, you notice the problem, and then you fix it once and for all (because the type is defined in one place). So yes, you can have misleading type names in the codebase, but there's a natural pressure to correct them, in a way that there largely isn't for misleading comments.




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

Search: