Is it better to write a method and function from the top and have an api function that has a lower stack as you go down?
Conversely, is it better to write an important api function first and put it at the bottom as the stack is higher and more peripheral?
Or should we write a peripheral, or associated, method that's just used for that API function right in between?
Or is there anything else better?
coding-style clean-code coding-convention
I tend to write a peripheral method that is used only in the API function near the public function.
It's more of a taste than efficiency.
© 2024 OneMinuteCode. All rights reserved.