|
|
|
|
|
by sns989
1005 days ago
|
|
this is anecdotal of course, but as someone who has never written a line of production Go code (but can tell at a visual glance this is in fact, Go), small functions (green) made sense to me as soon as I started reading it. The single function code (red) became hard to follow at some point. It felt like the function was doing 10 different things with a lot of branching and no particular single purpose. Maybe it's the Python background in me, but I am not seeing how the single function is better to read than small, self-contained functions. |
|
Your only other option is to freeze them and never make changes, that doesn't happen much in real-world code (though it probably should).