Time

Programming around dates, times, and timezones is painful. I’ve done this in Python and in JavaScript and it was miserable either way. It’s due to the complexities of time that we mostly ignore in our day to day lives. We are able to do this because we generally are not in multiple timezones at the… Continue reading Time

Hours widget

When we built the current library webpage in 2021, I wrote a homemade widget in JavaScript to display the library’s hours. It has worked consistently since then without any problems, perhaps surprisingly, since the code is very ugly. This original version of the widget drew upon a custom JSON file with the hours data, which… Continue reading Hours widget

Widgets

Library websites often include widgets of various sorts. Hours widgets, chat widgets, and so on. Often these are built by outside vendors, and plopped into library pages by librarians. The intention, I suppose, is to provide functionality that the librarians may not want build themselves. I have contradictory feelings about widgets. First, the bad things:… Continue reading Widgets

Vue

I was doing two things earlier this week: sitting in on a webinar about a neat library tool called Unsub; and thinking about digging further into Vue, the JavaScript framework. Anyhow, I was so impressed with the UI of Unsub that I looked up what I could about their tech stack (it’s on GitHub), and… Continue reading Vue

Into the strangeness

There’s a lot of strangeness writing JavaScript for the web. The edge cases are sometimes mind-bending. This is sometimes not the fault of JavaScript itself, but can be due to the other, non-JS things that the browser is doing. I ran into such problems recently when modifying a widget that provides access to our library’s… Continue reading Into the strangeness

Published
Categorized as javascript

LibGuides

These days, I’m really working hard at improving the library’s web presence. In part, this means moving more content over to LibGuides. As a result, we’re using more of the features of LibGuides, specifically lots of custom JavaScript and CSS. It’s nice to be tapping some of these more advanced features, and it has been… Continue reading LibGuides

The modern web

I’ve been learning some JavaScript recently. Mostly this is so that I can better understand modern JS frameworks. I have some catching up to do: it has been a while since I looked at JavaScript. Anyhow, my main takeaway from learning (a very small amount) about React and Vue.js is that the DOM isn’t what… Continue reading The modern web

Published
Categorized as javascript