September 18, 2018

Image Resizing in CLI

For the past few weeks, I was looking for a new compiled language that I can make use of for my tools as I grew tired of Go language’s verbosity. I tried learning Rust, but as I expected, it was more suited for system projects, and found out how much pain it could be for smaller tools due to how strict the compiler is. With that, I eyed for both Nim and Crystal language, with the latter prevailing as my language of choice for my personal tools. Read more

November 4, 2017

Stuffs that I dislike about Go

Error handling I should admit that I used to like Go’s idea of error handling, wherein errors are treated as values. I also thought that forcing developers to handle each possible error points immediately was a good thing, rather than moving all of the code into a try catch block. But recently, while working on one of our project’s internal tools, I came to grow tired of Go’s error handling. Read more

September 16, 2017

Installing Sublime in OpenSUSE

My daily driver nowadays is Gogland , and I sometimes use VSCode if ever I need to open 2 or more projects at the same time (Gogland eats up way too much RAM). In my previous post, I stated that I switched to VSCode away from Sublime, but since Gogland got better JS support, like configuring the root path so that it would match how my webpack config handles import paths, and with the fact that Gogland got better tooling when it came to coding in Go Language, I’m now using it as my primary editor. Read more

September 13, 2017

Alternative to dangerously set inner html in React

Scenarios wherein you need to render a string with html tags in it would still require you to use dangerouslySetInnerHTML… so if your problem is as such, then I guess there’s still no better way to parse strings with html tags. As for scenarios wherein we would need to pass a content to a reusable component through attributes, then this would work. A simple example might help right? The scenario In this example, we’ll be using ReactTooltip as our reusable component. Read more

September 11, 2017

Migrated to Hugo

I’ve been using Ghost for quite sometime already, and my only opensource project in github that was starred by non-collegues is a Ghost theme that I made for my blog. But times has changed, which some of you who are avid readers of my blog might have noticed, my financial situation requires me to be a little more stringent… which also meant that I had to downgrade my VPS. Ghost did well as a blogging platform, but the reasources it consumed, particularly RAM, was just too much. Read more

© Daniel Cefram 2017