|
|
|
|
|
by mjdease
2910 days ago
|
|
> And I code in 42 character width, so those are short lines I've never heard of an approach like this, how did you settle on 42? I'd be very interested to see an example if you have some code hosted somewhere? My initial reaction is 42 is too short and would encourage terse non-descriptive naming and be a pain to deal with long strings. |
|
I find it’s helpful because beating any structure beyond maybe 5 levels deep is painful, so I am forced to refactor.
Names aren’t so much of an issue because of the single-file-per-repo and 150-line-target principles:
If your module only consists of 150 lines, there’s just not enough in your namespace to need long names. Essentially, you only ever work within a small, isolated piece of a huge flat namespace.
Long names are necessitated by the huge, deep API surface that the filesystem provides.