What techniques do you use to maximise code reuse?

后端 未结 7 1563
别那么骄傲
别那么骄傲 2021-01-04 02:36

Some years ago I was told about a study into code reuse. Apparently it was found that, on average, programmers have a 7 minute window when searching for code to reuse. If th

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 03:06

    Profile the whole application and start refactoring from the heavier section of code. (80% of time spent on 20% of most used code)

    Use a profiling tool which has capability to identify memory leaks, repeated calls, lengthy calls, unfreed memory, undisposed resources etc,.

    By rule, New code always uses best practice.

提交回复
热议问题