Go's reflection api is quite the unknown for many developers, but it can definitely come in handy in some scenarios. In this article we'll use Go's reflection in a scenario that should feel familiar enough to see practical uses for using reflection.
Surprise! I write Go these days. Lately I've been finding some code out in the wild that uses naive solutions for concurrency. Given the times I've seen similar patterns, my theory is that it is probably inspired by basic goroutines example code out there. The scenario Imagine you want to run a particular number of … Continue reading Refactoring in Go: goroutine concurrency
In the last project I worked on, some parts in the page should only be shown to privileged users. As easy as it would be to just add that bit of logic in a render method, it would not be idiomatic React, and it would also get cumbersome when the validation logic becomes more complex, … Continue reading React patterns: Privileged Content
Reactive code examples can be mind-blowing. Powerful, succint, robust...they seem to handle many concurrency scenarios without breaking a sweat. But let's be honest, examples from 30-minute conference talks and short blog posts rarely reflect the messy real world™. In any case, developers get all pumped up about reactive goodness and want to use it in … Continue reading Real World Observables
Firefox—my browser of choice—just updated to version 41 beta. It turns out that from this version on, any extension that hasn't been signed by Mozilla is disabled automatically. Firefox didn't warn me about that. I had to go to the Add-ons panel to check why some of my extensions were not working, only to find … Continue reading Firefox disabled my extensions
This post is written for my own reference, in order to document the steps for getting geolocation working on Geeksphone phones. For a long time, an easy way to get access to a Firefox OS phone was to order a Peak or Keon model from Geeksphone. The phone maker jumped on the Firefox OS train … Continue reading Making geolocation work on Geeksphone devices
Note: This blog post is inspired on Xavier Seignard's blog post. He gives a longer introduction on it, and integrates it together with Sonar. You should check it out. Code coverage is convenient to get an overview of how well-tested your program is. I'm going to show you how to set up code coverage using … Continue reading Add code coverage to your Node.js projects
If you haven't seen it yet, I suggest that you take a look at this concept video that made the rounds on the internet some months ago: I would pay to have this in my phone. Only, money wouldn’t help since I own an iPhone, and a developer has simply no way to access an … Continue reading Implement cursor-swiping in half an afternoon