Over the past few years I've built up a collection of snippets for validating inputs in Go. There's nothing new or groundbreaking here, but hopefully they might save you some time.
The snippets assume that the data to validate is stored as strings in r.Form, but the pri...
In a recent blog post I talked about automating the testing of an advanced GopherJS library using a combination of QUnit, Ginkgo and Agouti. That allowed me to run a complete integration test suite against my library by automatically spinning up browsers and pointing them at my Q...
Go's slices are cleverly designed. They provide the look-and-feel of truly dynamic arrays while being optimized for performance. However, not being aware of the slice mechanisms can bring you into trouble.
English is not my native language, and I always feel that my texts which I post here are hard to read.
Hi, folks!
Last Saturday I was very inspired by Alexa skills using server-side Swift talk organized by Wizeline Vietnam team.
To understand git garbage collector, we need to understand how branches work. Branches are just pointers to commits that move whenever a new commit is created.
Note: This article contains non-finalized ideas; we may end up not implementing any of this but ideally we should do work towards the direction explained here.
Go is the language to write servers, Go is the language to write microservices. Yet, we haven’t done much in the p...
Go scheduler’s job is to distribute runnable goroutines over multiple worker OS threads that runs on one or more processors. In multi-threaded computation, two paradigms have emerged in scheduling: work sharing and work stealing.
Work-sharing: When a processor generates new...
Prelude
If you want to put this post in some better context, I suggest reading the following series of posts, which lay out some other fundamental and relevant design principles:
Language Mechanics On Stacks And Pointers
Language Mechanics On Escape Analysis
Language Mechanics O...