How do you decide whether to use a library or write your own implementation

后端 未结 7 2142
栀梦
栀梦 2021-01-31 18:40

Inspired by this question which started out innocently but is turning into a major flame war.

Let\'s say you need to a utility method - reasonably straightforward but no

7条回答
  •  自闭症患者
    2021-01-31 19:04

    If it's a trivial function, it's not worth pulling in an entire library.

    If it's a non-trivial function, then it may be worth it.

    If it's multiple functions which can all be handled by pulling in a single library, it's almost definitely worth it.

提交回复
热议问题