The problem with most of the libraries that I have visited in the last thirty years is that they seem to have forgotten about the educational aspect. I can't speak for other fields than those in which I have some expertise but I suspect that most technical subjects are less well served now than their equivalents were a hundred years ago.
Specifically topics such as computer science, practical computing at a higher level than Such and such for Dummies, electronics, physics, are all pretty much useless in most libraries except university and major reference libraries. Partly the problem is that they simply do not have enough books in those categories but another is that they are frequently well out of date.
I'd like to believe that the reason is simply because the librarians don't have any expertise in those subjects and therefore are not able to see how useless the collections are but I suspect that it probably has more to do with a kind of market orientation so that libraries are filled with books that are popular rather than books that are useful.
This of course becomes a vicious circle because the few technical works are read so rarely on account of being useless that the library concludes that the genre is even less popular than it really is and hence doesn't buy any more up to date books.
Perhaps a librarian could chip in with some actual knowledge instead of my observation and speculation.