@robby A couple dependency related ones I like to follow:
If you only need one feature of a general purpose library, consider implementing it yourself
If a library's purpose is trivial to do yourself, do it yourself
Which can both be summarised as actually thinking whether a third party library is needed before using one