3 ms·
Functions: To Split or Not to Split
- dguo 7y agoJohn Carmack has some thoughts on this issue: http://number-none.com/blow/john_carmack_on_inlined_code.html http://number-none.com/blow/john_carmack_on_inlined_code.htm... I personally prefer style C with occasional comments serving as guidelines for the reader.
- ryan_glass 7y agoNice post - thanks. I'm guilty of sometimes splitting and other times not, making the choice mostly on feel. Never modifying local state when splitting functions is an easy rule of thumb to follow.