Skip to content

Posts

PGX Error: Cannot scan unknown type

You probably end up here because you saw this error returned from jackc/pgx

cannot scan unknown type (OID 16458) in text format into *[]recipe.CategoryType

This error is connected with custom database types, so if this is what you did, this article is for you.

The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win

cover
Book authors: Gene Kim, Kevin Behr, George Spafford

Very intresting concept for an IT book, I have never read technical book that is written like an nover.

Main theme for this book is a road from old style waterfall style product development to DevOps mentality. It was even more intrifuing for me as in my current company we are undergoing simillar procedure, starting from better place than Parts Unlimited, but still, I see a lot of similarities.

How Big Things Get Done: The Surprising Factors That Determine the Fate of Every Project, from Home Renovations to Space Exploration and Everything In Between

cover
Book author: Bent Flyvbjerg, Dan Gardner

This book holds immense value for every developer - while it's not centered around IT, it provides a comprehensive understanding of how projects unfold and, importantly, the reasons they may not succeed. The elements it discusses can be easily adapted to the IT realm, suggesting it may serve as a valuable read, not only for managers and product individuals, but everyone at large.

Echo middlewares

In this brief article, I aim to highlight an ideal use-case for middleware, shedding light on its functionality and practical implementation.

Middleware serves as a crucial intermediary between user requests and application logic. In the following example, I'll demonstrate how middleware can authenticate users and seamlessly pass custom context to a micro-service, streamlining the authentication process without burdening the service with additional authentication logic.

Excalidraw - The Best Open-Source Tool for Drawing Charts

logo

In my journey of working on personal projects, I stumbled upon Excalidraw, an open-source tool for creating diagrams and schemes. It has proven to be an invaluable asset, aiding me in understanding the core problems I aim to solve and devising effective solutions. Documenting my thought process alongside visual representations not only solidifies my understanding but also ensures persistence of my ideas.

Golden File Testing in Go

In traditional unit testing, specifying expected outputs directly within the test function is common. However, when dealing with complex data structures, such as a large tree, this approach can become unwieldy. Enter golden file testing.

Golden file testing alleviates the burden of manually specifying expected outputs by storing them in separate files. Each test case has its own file containing the expected output, typically stored in a designated directory (commonly named "testdata" and placed adjacent to the test file).

Golang + Vim

Is Golang + Vim worth trying? Definitely, developing an application with this combination is a cool experience. However I tried using it on a bigger project (I was doing bugfix on docker-cli) and that wasn't a pleasing experience, I felt a bit lost and tired of all of these shortcuts and jumping between files, I think it my be a better experience after I get more experience with Vim. Below I am showing how to setup Vim for Go programming. It's my first attempt so it may be still lacking some features :D

Vim setup for bloggers

In this article, I'll share some valuable tips to harness the power of Vim as a versatile tool for blog writing. From migrating to Neovim to incorporating spellchecking and useful shortcuts, these tips will streamline your writing process and boost productivity.