an actual update

I did stuff today.

My team and I were able to show the almost completed page we were working on to our client and ... related interests? (I don't know the jargon, I just code). They said they were very pleased with our work.

And then the tickets came in.

Not that I mind, it's my job. But the tickets weren't little fixes, but big changes instead. And the release is about a week away.

So I kind of pushed back. One ticket I thought was just a bad idea (sticky containers usually are), so I recommended that we don't go ahead with it. Hopefully that doesn't come back to bite me, but I think this client is cool? I hope they are 🫥.

The other issue may require an entire section to be redone though, and so hopefully it can be delayed indefinitely, though post launch is fine I guess.

I just am kind of surprised by my confidence here. It's been a year since I started this job, and it's my first web development job. I feel very blessed to be here. I guess I just felt that I had the expertise and knowledge to say "you know, that's not that great an idea, you should reconside". Kind of goes with what I was saying yesterday with dealing with clients (though these aren't my clients per se).

my own project

Been working on a web directory using 11ty. When I first tried with this blog last October I kind of did a crap job of it. This time I'm doing better, taking advantage of what JS can do.

"use strict";
const fastglob = require("fast-glob");
const fs = require("fs");

module.exports = async () => {
  // Create a "glob" of all venue json files
  const venueFiles = await fastglob("./_src/venues/*.json", {
    caseSensitiveMatch: false,
    stats: true // lets me access the last modified time and other stats venue.stats.mtime
  });
  // Loop through those files and add their content to our `venues` Set
  let venues = new Set();
  for (let venue of venueFiles) {
    const venueData = JSON.parse(fs.readFileSync(venue.path));
    // appends the aforementioned stat to the data
    Object.assign(venueData, {lastModified: venue.stats.mtime})
    venues.add(venueData);
  }

  // Return the venues Set of objects within an array
  return [...venues];
};

(I have to figure out how to highlight code here).

Anyway, so I took a script from here that globs json files together (later to be paginated). I wanted a way to display the last modified date on the generated pages, so with a bit of investigating, I added a couple new lines in, and wallah!~

Maybe it's not a big deal, but I'm pleased that I didn't just give up and was able to read through the code, debug and figure out what was needed to get the output I wanted.

Since I'm getting better with 11ty, I may just restart this blog (and keep my posts so far). I used a theme for this, and it's nice, but I'm not exactly sure what's in it, and that's weird.

👑 home