The story behind Six Gaming is long, complex, and probably can't be covered in a single post. If I were to sum up what Six Gaming is today, the answer would be "probably should be dead, but stubbornly isn't". I knew this going into redesigning the Six Gaming website, yet I did it anyway. Why?
There's a number of personal reasons involved. My outside hope that some day everyone stops being super busy with life and commits to a podcast again, which is what the original community was built around after our WoW guild died. The only reason I decided to stop streaming it is because no one could commit to the schedule except for me. The website also has a Discord and Twitch bot that promotes streamers, hosting them on our Twitch page, which would be a great tool if the community was still active. However, it's not active, so the main reason I used to justify upgrading Six Gaming? Knowledge building.
Six Gaming is the first website that I've built that runs with a MongoDB back end. It's the second site I've built that uses Docker containers. It's also the second site I've built on my current generation of node.js website architecture, but the first time I've done it within Docker. The website uses Discord.js, Express, FullCalendar, the node.js wrapper for IGDB, the node.js wrapper for MongoDB, and the Twitch.js library that is being rebranded as the ridiculously-named Twurple. However, when I talk about my website architecture, I don't mean the libraries I'm using, but rather the way the website is put together.
I drew some inspiration from the now-defunct Rendr library. It was a node.js library that worked with Backbone.js to let you code a web site just once to render web pages on both the client and server side, making it easy to create single page applications. I was turned on to this library while working for the startup Sift back in 2013, and ultimately used it for my personal site roncli.com. Of course, as soon as I released that site, Rendr stopped getting updated, so I stopped using Rendr and started rolling my own.
The first website I used this new architecture with was the Overload Teams League. I didn't go too far with it, only making it so that there are views that can be rendered either client or server side. I didn't go as far as making it a single page application, that wouldn't come until version 2.0 of roncli.com. The back end architecture is your run of the mill MVC application, nothing too exciting going on. What made everything tick, however, was a custom-built router that I would eventually release to NPM called Hot Router. It's called that, because it has an option that lets you hot-swap controller files while the site is live while the application is running. That was super useful for debugging the first few sites created with it, but the hot swapping has become less useful now that I've gotten better at using Docker.
All of the above is setup for one of the more amusing issues I encountered while working on Six Gaming's website, and there were plenty. Being only my second Docker project, I won't talk about what I can only describe as "newbie mistakes". However, the biggest thing I found was what I term the memory leak from hell.
I discovered it when I was working on the Hot Router project. The gist of the problem is that for weeks after the launch of six.gg, I had a very slow memory leak that would break down the server after about a week. It drove me insane that I couldn't find it. The lengths I went to in order to find the leak were insane. First, I wrote my own calls to the docker.sock API, logging the metrics to Application Insights. That alone instantly doubled the cost of the server while I had the metrics active. The price you pay.
This led me to learn the memory leak was happening in the node.js Docker container. In order to find the memory leak, I had to connect the node.js instance inside Docker to Google Chrome's dev tools. Once I did that, I spent hours pouring over memory logs, slowly narrowing the problem to my shiny new router. Did making the router a module cause the memory leak? Did I screw something up porting the code over from being inline in the project to its own module?
No, the memory leak was there all along. I tried comparing Date objects to see if they were different. While you can compare to see if they are greater than or less than each other, trying to compare that they are equal or not equal actually doesn't work. This was causing Hot Router to always treat the controllers as if they were just hot swapped. It would delete the cache of the controller and re-require it. As it turns out, the act of deleting the cache and re-requiring it caused the memory leak. That, combined with the date comparison bug, resulted in a slow memory leak.
As I was fixing that bug, it dawned on me. I run the OverloadGame Tracker, and that site had been suffering from a memory leak for over a year. It runs an early version of the routing code that Hot Router uses. Turns out I solved a very old memory leak by finding the leak in an entirely different application.
Anyway, Six Gaming's website has been humming along for a while. It was a lot of effort for not a lot of reward. However, this project taught me a ton about Docker, MongoDB, and more. And everything I learned from this is going into my most ambitious project yet... my own website! More on that in a future post.
https://t.co/40yzlOfRR0 <-- I don't want to be on a platform run by an abusive leader and overworked staff. I'm so dependent on twitter for my work though, I've got an essential part of my contact network here, but every second I'm here I feel I'm betraying my morals.
Competition anxiety is the only type of anxiety I get, at least with any regulatory. It doesn't happen when I play 6DoF games (at least not anymore), but almost any other competitive game I play, the anxiety can strike at any time, and it affects me greatly. I have become much more aware of it lately, and I think that's helped result in days like today where, for a moment, everything seems to be falling apart... but then I understand what is going on and don't let it ruin the rest of my day.
At the chess club, I played 5 games between two opponents that I have losing records against. I confidently won all five games, even declining a draw because I didn't think I could lose and had a passed pawn.
Later, I got productive, finishing the week's math homework and doing a video presentation for business in one take. And now I'm feeling really good about how the day went, despite that one hiccup early in on.
An hour later, I played in another Tetris match against an opponent with a lower best score and was playing buzzed. It was a league format where I am not getting eliminated if I do poorly. I got trounced, lost 6-1 over two matches, and couldn't get to level 19 more than one game.
Competition anxiety stuck hard in the second set, and I have no idea why. It tried to frame the remainder of my day. I did not let it.
Today was a reminder that competition anxiety is fickle and strange.
I played in the events today. The first was Classic Tetris Monthly's tournament, a knockout bracket where I have had mixed results. Today I was up against a maxout player, someone who can score a million points. (my best is 740k). I swept the match 3-0 no problem, and felt good the whole way through.
Tumblr may become relevant again, but probably not for a while. There are a number of non-creative projects ahead of it that need doing, so it'll be a while before I regularly put out stuff again. That said, look for something new there in the next few days. 👀
Caveat on Tumblr: I've been there for about 9 years, back when I decided to split my blog between my creative endeavors (Tumblr) and everything else (Blogger). While I still have the account, I'm not very active on it since my creative endeavors have taken a back seat.
[This post contains an error in the number of Twitter users. Check the new one here: https://mastodon.social/@estebanmoro/109302968305953555 ] Something big is happening in Mastodon over the weekend. Here is my graph, updated. Right now Mastodon is growing ~3 times faster than Twitter.
Make the net weird again. Hand write sites like it’s the 90s. Pick interesting domain names and make fan sites or random knowledge known to everyone. Don’t monetize anything. Spearhead new protocols like Gemini. Make mods for games on your site. Make FAQs for obscure games no one knows about. Make public software services available to anyone. Make a news site about a really random subject. Create music in all kinds of different formats. Most of all, do it because you want to!
I was today years old when I learned that the M in CPM - a term I recognize as "cost per thousand impressions", stands for the Roman numeral 1,000, and now I feel like an idiot for not realizing this for TEN YEARS. 🤦♂️
Pacific Daylight Time ends November 6th, so I imagine what's happening is it's interpreting the time with daylight savings because that's what it is now, and not accounting for daylight savings ending before the date.
Apparently this includes FAILED requests. For an application with 95 commands, @discord slash command development has really been a rather awful experience. Guess I wait until tomorrow to test this? Is there a better way to deal with this? https://t.co/WmW37dSosS