News for hackers. Stuff that matters.
Re:What Is Abstract Algebra? [video] by jules on Wednesday December 28, 2016 @10:15AM (#13270966)
I don't doubt that your conclusion is correct, but what if the sort is used in 10 other functions, each of which is used 10 times? If you inlined everything you would end up with 100 copies of bubble sort. The code blowup is exponential in the level of nesting.
Re:What Is Abstract Algebra? [video] by adamnemecek on Wednesday December 28, 2016 @10:28AM (#13271071)
Indeed. Another venue for why it cuts out code is that it makes code more reusable. As a result, you are more likely to integrate nicely with already written libraries than write your own code. Technically, this is a way of reducing your codebase as well lol.