Re:Should you split that file?
by cellularmitosis on Friday December 01, 2023 @01:59PM
(#38490722)
Yes, the "inverted pyramid" concept from journalism. Most important details up top, implementation details down below.
In our (Swift) codebase, this typically translates into "publicly-consumable interface up top, private and internal functions down below".
But of course there are lots of other factors constraining the way a file can/should be ordered, depending on language