home / blog

what's the purpose of this blog?

~ October 14, 2023

Should I call these articles or blogs? What about posts?

Something that I looked forward to coming into university and majoring in STEM was the idea of never having to write again. I never was able to fully wrap my head around writing from names such as Shakespeare, Miller, or Sophocles, or the difference between juxtaposition, antithesis and contrast.

But I do believe that there is a difference between writing academic English and writing for casually. So this is what my blog is about, writing about random things I stumble by that catch my interest. (Also I can cite Wikipedia all I want now and there’s nobody here to stop me.)

The stack behind this website and the blog portion specifically is quite cool. It’s built on SvelteKit and all articles (I chose articles) are written in markdown. I use mdsvex to convert the markdown to Svelte, and this also allows me to include dynamic content with Svelte components. On top of this I use KaTeX to render math equations and shiki for code block syntax highlighting. So here’s a little demo that uses all of these features:

// the logic behind the demo below
let n = 1;
let increment = () => {
    n++;
};
let decrement = () => {
    n = Math.max(n - 1, 1);
}

$: sumToN = `\frac{${n}(${n}+1)}{2}=${n*(n+1)/2}`
1(1+1)2=1\frac{1(1 + 1)}{2} = 1