Blue Desk

Rodrigo’s blog.

Saturday, May 29, 2021

Sum types in Go

›
One thing I always missed in Go was sum types . I’ve seen some discussion before . Although Go doesn’t have this as an explicit, native fea...
Monday, May 17, 2021

Registering file associations in Windows

›
I always used FileTypesMan to register the Windows file associations. But after Windows 7 or so, some associations simply refused to work, ...
Thursday, May 13, 2021

The ghastly button focus

›
During my 20 years or so writing Win32 programs, I always relied on SetFocus to focus a control. However, I always noticed a weird behavior...
Wednesday, March 31, 2021

Fixing Cargo authentication on GitHub

›
Today, while performing tests before publishing the first version of WinSafe , I stumbled across a problem I had with Go a few weeks ago. It...
Thursday, March 25, 2021

Displaying current Git branch in Bash prompt

›
I decided to show the current Git branch at my bash prompt whenever I’m at a directory which contains a repository. I found a rather convolu...
Thursday, February 18, 2021

Using local dependencies with Go modules

›
Go 1.16, released this week, deprecated GOPATH . I used it extensively to develop my libs before publishing them, but now I’m forced to conv...
Tuesday, January 5, 2021

Downcasting boxed errors in Rust

›
Today I was trying to write polymorphic error handling in Rust, something achievable with dynamic_cast in C++, and incredibly easy in Go . ...
1 comment:
Friday, December 11, 2020

Cleaning up a Git repository

›
Sometimes, after you mess up too much with your Git repository, it ends up with a couple useless objects, which are no longer referenced any...
Tuesday, November 24, 2020

Inserting auto IDs in Oracle

›
When dealing with tables with an auto-incremented ID field, Oracle requires an special syntax if you’re about to insert data manually. You m...
Friday, October 16, 2020

Validating lambda signatures in C++17

›
WinLamb , as the name itself implies, is heavily based on lambda functions. While searching a way to enforce the lambda signatures in the up...
Thursday, August 6, 2020

SFINAE and enable_if

›
Today, while researching for the upcoming C++17 version of WinLamb , I was rethinking the idea of restricting the allowed types on a templat...
Thursday, June 25, 2020

CSS folded poster effect

›
Yesterday I just stumbled across this incredible CSS work, which makes a picture look like a folder poster on Reddit . The CSS was somewhat ...
‹
›
Home
View web version
Powered by Blogger.