DEV Community

Discussion on: Should a library log its version number ?

Collapse
 
gmartigny profile image
Guillaume Martigny

My first thought was for discoverability. Some devs see something cool on the web, open the console and see Build with love using "MyAwesomeApp v1.0.0".
Thanks, to others comments, I realize that if every lib do the same, log can be cluttered.
Imagine:

Use JQuery 3.11
Build with Bootstrap@4
Made with love with Webpack v4
Propulsed by _Underscore_
Careful Google Analytics is watching you
...

However, I agree with you on:

good library should have ability to provide its' version.

Collapse
 
northbear profile image
northbear

It's funny. But you even cannot imagine how similar message really helps to discover issues. Especially If it's critical application...

Thread Thread
 
gmartigny profile image
Guillaume Martigny

Do you have an example ?