Close

Code Digital is officially moving to The Phoenix Branch!

25th April 2020



You might be a little confused as to what is happening. A week ago I started working on a new version of Code Digital. I was checking out jmswrnr.com and looked at his stack (It's really impressive and I highly recommend you check it out). Anyways, I asked him whether he recommended the stack he was using (and noticed that his meta tags for social media worked) and got a resounding "DO IT".

Long story short, I spent the past week working really hard to convert the CodeDigital code so it worked on the NEXT.js platform. I've been hard at work trying to get all of the features working. Even to the point of 4am sleep-times on some days. Now, though, after this rollercoaster of a refactor, I believe I'm ready to start updating the master branch from this NEXT.js version. Given that this update to the website feels like it's "new, but still the same" (and because I enjoy theatrics), I've called this new branch Phoenix. I've even drawn up a nice icon to represent the shift.

Phoenix Icon
"One Step Backward, Two Steps Forward"

NEXT.js doesn't come without its weaknesses, but in many ways it works much better for the style of website I am looking to create. I had to sacrifice the lagless loading when you click on a project, and I'll sorely miss the single page style. On the other hand, in my rewrite of the site, I discovered that the way in which scripts (specifically P5.js scripts) load very nicely, without the need for the solution I used before. This may not seem like a big deal, but my original project-loading code was janky, to say the least. CodeDigital was vulnerable to XSS attacks and overall prone to bugs. An added bonus is the ability for me to now have meta-tags for social media (which didn't work with a single page app). Hash router links no longer redirect to the projects and weblogs (they bring you to the homepage). Find a full list of new features below.

Phoenix Branch Features


  • Simpler project and weblog loading.
  • Cleaner script loading (Works beautifully with P5.js projects).
  • Code syntax highlighting with PRISM.js
  • Meta Tags work for social media.
  • Search query and weblog state saved in session storage.
  • Link navigation no longer works on hash router.
  • Hash router links are now deprecated.
  • [New!] Share button.
  • [New!] Working 404 page.


Hopefully you haven't noticed too much of a difference. That would mean I did a good job. If you're curious what is to come for the future of this website, expect more updates with cool new features. After this release, I'll be focusing my efforts on adding a working share button for all the posts and projects. You will have noticed it's already there, but with no functionality yet. Don't worry I'll get on that next.

In the meantime, see you all in the next one!

Cheers,

Xavier Travers (DigitalData)