November 4, 2020

Discovering TailwindCSS

I just finished following a quick tutorial about TailwindCSS, you can find it here. My first impressions are really good, but let’s go in details about what I liked, a few questions and some extra resources. What I liked most: Easy to get started (with a caveat) Getting started with TailwindCSS, once you understand the concept, is very easy. Just add a few classes to your HTML, and you get desired styling. Read more

October 31, 2020

Web Dev in Go

I’ve been developing Startyk in Go, and I’ve noticed a few things that really make me slower than I would like to be. I may be missing parts of the issue because of my lack of experience with Go and/or web development. First, I’ve had to create all of the Postgres integrations by hand. I could have gone with an ORM, and just let it do it’s magic. I tried that before, and managing IDs which are not integers quickly becomes quite difficult. Read more

October 18, 2020

Add a Server Struct for Better Handlers Management

On my previous post, I was explaining how to access a database from inside a HTTP handler in go using closures. While this method works, it comes with the disadvantage that if you want to access more than the database, you’ll have to add the new element to the list of arguments. In every single handler. On top of that, closures are not that simple to understand, and may lead to confusion. Read more

October 17, 2020

Accessing your database from inside an HTTP handler in Go

Note: While this is interesting to learn more about creating closures, it was pointed out to me that there is a better way to do this. Look at this next post to learn more about it. Writing my last project backend in Go, I was confronted with how to actually write my HTTP handlers. The main issue I encountered was how to get the database handle in the handler so that I could actually use it for incoming requests. Read more

May 13, 2020

Scrot useful options

When I wrote this post about installing KVM and virt-manager, screenshotting the windows that I was seeing was the easiest way to describe the steps to follow. On linux, one of the most used tools for that is scrot. As I used it in a few ways, I wanted to have a little reference, for the next times I have to use it. Basic commands The simple command will let you screenshot the whole desktop you’re currently on If you have multiple screens, this will capture only the current screen. Read more

Copyright Marin Gilles 2019-2022