Roberto Selbach
Roberto Selbach
Home
Blog
Light
Dark
Automatic
Programming
Zero values in Go and Lazy Initialization
I’m a big fan of the way Go does zero values, meaning it initializes every variable to a default value. This is in contrast with the way other languages such as, say, C behave.
Dec 17, 2018
3 min read
Go
,
Programming
Playing with Go module proxies
(This article has been graciously translated to Russian here. Huge thanks to Akhmad Karimov.) I wrote a brief introduction to Go modules and in it I talked briefly about Go modules proxies and now that Go 1.
Aug 29, 2018
6 min read
Go
,
Programming
Introduction to Go Modules
This post is also available in other languages: Russian: Введение в модули Go Uzbek: Go modullariga kirish The upcoming version 1.11 of the Go programming language will bring experimental support for modules, a new dependency management system for Go.
Aug 18, 2018
10 min read
Go
,
Programming
Playing With Go Modules
Update: much of this article has been rendered obsolete by changes made to Go modules since. Check this more recent post that’s up to date. Had some free time in my hands, so I decided to check out the new Go modules.
Jul 20, 2018
4 min read
Go
,
Programming
An LRU in Go (Part 2)
So we created a concurrency-safe LRU in the last post, but it was too slow when used concurrently because of all the locking. Reducing the amount of time spent waiting on locks is actually not trivial, but not undoable.
Jun 15, 2018
4 min read
Go
,
Programming
An LRU in Go (Part 1)
In my job, I often catch myself having to implement a way to keep data in memory so I can use them at a later time. Sometimes this is for caching purposes, sometimes it’s to keep track of what I’ve sent some other service earlier so I can create a diff or something.
Jun 13, 2018
5 min read
Go
,
Programming
How to use FileServer with Gorilla’s Subrouter
I’ve just spent much more time than I ever wanted to get this right, so here’s how I did it for future reference. I have a function that returns an http.
Nov 29, 2017
1 min read
Go
,
Programming
Returns in Go and C#
Whenever someone posts anything related to the Go programming language on Hacker News, it never takes long before someone complains about error handling. I find it interesting because it is exactly one of things I like the most about Go.
Sep 15, 2017
5 min read
C#
,
Go
,
Programming
Casting objects and boxing
I’m back from a trip to a customer. How was it? Okay. I got more snow that I expected on the way there, so the drive wasn’t much fun. Then again, a part of the trip goes through a beautiful forest that was worth everything else.
Mar 30, 2017
5 min read
C#
,
Programming
New stuff coming in C# 7.0
Mads Torgersen wrote a blog post highlighting what’s new in C# 7.0: C# 7.0 adds a number of new features and brings a focus on data consumption, code simplification and performance.
Aug 30, 2016
2 min read
Programming
»