26 Apr 2023I made yet another “techno-divination” website! webpage? web “app”? SPA? What are we calling cute lil simple spots on the web these days?
Anyway, hello to BILLBOARD ASTROLOGY, the 5th techno-divination.
You can see the others here. They include the i-ching, the aura reader, the aura reader with partner, barthes tarot, and a planet-mapper.
I looked at enhance.dev, which I do want to use in a project one day, but I wasn’t able to get a node package to play nice on the web, on the client side. Which makes sense, but it is annoying. I wasted too much time on this.
But FORTUNATELY, I came across this dataset on kaggle (a site I otherwise hadn’t heard of).
That was great! One drawback is that I’m not getting live data. But on the other hand, I’m not querying for live data in a spot where it’s likely to change in a bad way, and charts are historical data. So why not use the data as-is instead of trying to fetch and load? I love keeping it simple.
I was able to shrink down the dataset from 18+MB to 148k by picking out only the #1 songs, keeping only the date, the artist name, and the song name. I was lazy so I managed to do this in Google Sheets, which is computationally impressive (by people who are not me) because it was a lot of lines of CSV.
After wasting a bunch of time with JS frameworks (mostly because I will go through incredible lengths to keep something as simple as possible for present-me and future-me), I was able to put this idea together in a super short amount of time, with most of the time spending on figuring out styling (because the state of CSS in 2023 is impeccable beautiful perfect wonderful incredible!!!).
Something I haven’t done is add in error handling for dates that are too old or too young to have Billboard charting (the dataset ended at 2021, and I didn’t realize I knew so many people that have recently created new humans). Something I want to note is that I did restrict the date range in HTML, so the datepicker shouldn’t allow newer or older dates, but nothing will stop parents from getting more insight into their children!