3 ms·
> One of the very few empirically demonstrated facts about software engineering is that the number of defects is proportional to size of code I think you're ta
by arduinomancer 5y ago
> One of the very few empirically demonstrated facts about software engineering is that the number of defects is proportional to size of code
I think you're taking that too literally. It doesn't make sense applied to types.
If you have the same piece of code, having types doesn't increase the complexity in any way. Its just more information shown and more validation.
By that logic we should all use the shortest variable/function names possible so that we can minimize the length/lines of code
- bjourne 5y agoOf course it makes sense. Researchers have found a positive correlation between code size and number of defects. Type declarations increases code size. > By that logic we should all use the shortest variable/function names possible so that we can minimize the length/lines of code Perhaps we should since there is no research to suggest that short names negatively affect software quality.