Is it OK to blame the library for a bug or an exception in code? What do you think?
As a developer, its ok to blame the library, but he should to make a PR or create a bug report to the library owner and try to fix this bug. If he does not, the developer drop his responsibilities and can be blame for that.
Cheers !
Sai Kishore Komanduri
Engineering an eGovernance Product | Hashnode Alumnus | I love pixel art
π Libraries are awesome!
Well-designed libraries are black-boxes which are expected to just work. They increase the development productivity a notch, by providing an abstraction layer β so we only need to worry about the logic of handling the inputs and outputs; and delegate the processing part to the library.
π€·ββοΈ "It's not my fault!"
Mistakes are commonplace in Software Development. Especially in situations which are not under your control β like an unknown bug from an imported library.
As a result, at times, manoeuvring to a working end-product could become a frustrating endeavour. If you come across such situations with a developer; remembering this fact, helps to have the requisite empathy towards him/her.
Having said that, taking corrective action β either changing to a different library; or cloning the library locally, peeking into it, and making required changes for the "blackbox" to work β falls on the said developer.