Hi! I'm prk3 and this is my personal blog, where every now and then I will be posting my discoveries, experiences and thoughts. Although I work mostly with Javascript and Typescript, you can expect articles about other interesting technologies, like C++ and Rust. Stay tuned!
Oops, I almost forgot. This is a static blog! If you want to contact me or start a discussion, please create a GitHub issue.
How hard is it to write a clone of Tetris? That depends on how you approach that challenge. After one unsuccessful attempt, I decided to write Tetris is a functional style. This is a story of how a just-for-fun project changed they way I see and write software.
Typescript offers a mechanism called type narrowing, which allows us to validate object's type with type guards and avoid explicit casts or error silencing. This post will give a brief demo of this feature and show it's interesting consequences.
Following the hype, I wanted to play with the new generation of static page generators. Without too much thinking I started writing this personal blog in Next.js. As I later discovered, Next has a different purpose. Let me tell you about the creation of this static blog and my adventure with Next.js.