John Carmack on Inlined Code (2014)
My personal rule is: if a simple (<=10LOC) function is used fewer than 3 times in code, it's not really a function, it should be inlined. Only noobs avoid copy&paste at all costs. There's time and place for it. Consider that code is written once but read multiple times, and it's a lot harder to read it than to write it, in particular if there are endless chains of function calls, as you commonly see in e.g. Java and the like.<p>Edit: I don't even care about the downvotes. This is hard won wisdom. If you don't see it, that's your problem, not mine.