Re:Absolute truths I unlearned as junior developer
by lmm on Friday June 07, 2019 @10:09PM
(#20130191)
Tests, types and field names get checked on build.
[ Parent
| on HN ]
Re:Absolute truths I unlearned as junior developer
by JamesBarney on Friday June 07, 2019 @11:05PM
(#20130378)
If someone adds functionality to a type so the name isn't really applicable anymore I don't think the build catches that.
Re:Absolute truths I unlearned as junior developer
by lmm on Saturday June 08, 2019 @05:12AM
(#20131439)
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.