private function

2 moment(s) that assert this concept — showing 1–2 of 2

single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] Brian[2] Brian
showing 2 of 2 moments
Brian Will · youtube · en
1Code functions are organized into a hierarchy where nested private functions are created for internal use only to reduce surface area.
“whenever possible if there's a function only used within another function and for whatever reason I couldn't just straight inline the code then I would just make it a private function to that other function”
spoken · 197s · 2016-03-22
Brian Will · youtube · en
2The total number of functions in the codebase is 113, with 59 being publicly accessible and 54 being private and confined to local scope.
“we do have here 113 functions in total but half of them at least we know are confined to being used in just a confined local scope”
spoken · 215s · 2016-03-22