DEV Community

Discussion on: Should a library log its version number ?

Collapse
 
rhymes profile image
rhymes

I don't see the added value in that :D It doesn't seem to help neither the developer nor the user. Anyway if I had to do it I would use console.debug instead of console.log...

Collapse
 
gmartigny profile image
Guillaume Martigny

IMO, it could help users to fill issues and help devs with discoverability.

Collapse
 
chenshuiluke profile image
Luke Chen Shui

Agreed. I think they should be logged.

Collapse
 
rhymes profile image
rhymes

In theory but normal users don't know about the web developer tools (why should they?) and it doesn't help mobile users anyway...

Also, if the library is shipped to all users, all users likely have the same version.

Thread Thread
 
gmartigny profile image
Guillaume Martigny

By users I meant the ones using the lib so webdevs.

Thread Thread
 
rhymes profile image
rhymes

Yeah but I already know which version it is, I installed it 😬 anyway it doesn't do any harm so well, let's leave it at that ✌🏾