4 ms·
Everything is a public facing API. The private function you wrote is public to the person who is fixing a bug / adding a feature to the code (which might still
by NateDad 10y ago
Everything is a public facing API. The private function you wrote is public to the person who is fixing a bug / adding a feature to the code (which might still be you, a year from now).
- SCdF 10y agoRight, but the person fixing the bug or adding the feature is going to be reading the codebase. I don't want to have to read a libraries codebase just because I want to use it's public funcitons.
- NateDad 10y agoCertainly. I just mean, documenting private code is almost as import as public APIs.