{"id":6880,"date":"2026-04-05T08:26:24","date_gmt":"2026-04-05T15:26:24","guid":{"rendered":"https:\/\/blackcap.name\/blog\/new\/?p=6880"},"modified":"2026-04-05T08:27:07","modified_gmt":"2026-04-05T15:27:07","slug":"another-javascript-problem-libraries","status":"publish","type":"post","link":"https:\/\/blackcap.name\/blog\/new\/?p=6880","title":{"rendered":"Another Javascript Problem: Libraries"},"content":{"rendered":"\n<p>One of the nice things about C# and Python is that both come with a robust, comprehensive standard library. Java, too: although its standard library tends to be awkward and clunky to use, it is still comprehensive and well documented.<\/p>\n\n\n\n<p>Javascript? Not so much. As part of its heritage of originally being a relatively small, client-side language for embedded scripting, its built-in library is not nearly so comprehensive. One must instead go to <a href=\"https:\/\/www.npmjs.com\/\" data-type=\"link\" data-id=\"https:\/\/www.npmjs.com\/\">npm<\/a> for many things that are supported out of the box in many other programming languages. Thankfully, as a result of Javascript&#8217;s popularity, npm is <em>very<\/em> comprehensive.<\/p>\n\n\n\n<p>Unfortunately, the quality of the libraries published there (and the quality of their documentation) is, let me just say, erratic. Plus, there&#8217;s just <em>so many<\/em> of them, and it is not always obvious which libraries are better-supported and higher-quality, often resulting a fair amount of trial and error before one finds a suitable solution. Then there is the <a href=\"https:\/\/blackcap.name\/blog\/new\/?page_id=6881\" data-type=\"page\" data-id=\"6881\">module and import hell<\/a> I have written of before; sometimes a given module is not available in the module and import configuration you are currently using, causing you to have to deal with all sorts of uniquely Javascript headaches that no decent programming language has.<\/p>\n\n\n\n<p>In short, if you write an application in Javascript, you&#8217;re not going to be able to find reasonable, well-documented default library solutions as often as you would were you using a better-designed, better-planned programming language. Finding and using the right libraries is going to be a source of recurring headaches.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the nice things about C# and Python is that both come with a robust, comprehensive standard library. Java, too: although its standard library tends to be awkward and clunky to use, it is still comprehensive and well documented. Javascript? Not so much. As part of its heritage of originally being a relatively small, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-6880","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts\/6880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6880"}],"version-history":[{"count":4,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts\/6880\/revisions"}],"predecessor-version":[{"id":6885,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts\/6880\/revisions\/6885"}],"wp:attachment":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}