News for hackers. Stuff that matters.
Re:Ask HN: Why is the source folder called 'src'? by zozbot234 on Friday April 22, 2022 @07:44PM (#31129677)
The general "clean coding" rule is longer names for global and/or big namespaces and shorter names for localized, smaller ones. For example, a local variable that's defined in the current function or block can have a very short name, whereas for a module-wide function you'd pick something longer and clearer. Even more so for something that's globally accessible to the whole program, or exported as an API.

There are no comments on this comment yet.