News for hackers. Stuff that matters.
Re:What I learned in 2017 writing Go by jeremiep on Wednesday January 03, 2018 @03:30PM (#16064772)
I agree about modularity and encapsulation being important.

Usually I try to weight the overhead of having more function prototypes to track, indirections in the main function and whatnot versus the overhead of having it all inlined.

A lot of things become more evident as you inline one-use functions, because the whole context is now local.

Re:What I learned in 2017 writing Go by vram22 on Thursday January 04, 2018 @02:22PM (#16073238)
Yes, it's a tradeoff.

Interesting, your comment reminded me of inline functions in C++ and C99; not the same thing (or at least goal) as what we were discussing, but closely related:

https://en.wikipedia.org/wiki/Inline_function