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
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
Last weekend I was at the Node.js conference in Brescia, Italy. Like every year the organizers managed to stage a great conference with really good talks. Even if I was there only for a lightning visit (less than 24 hours between leaving Amsterdam and being back), I had tons of fun and the talks I … Continue reading Nodejsconf in Italy
The video with my talk about Cloud9 IDE at DynCon 2011 is already out! It’s quite long, but definitely worth it if you are interested in the future of the IDE, since I had the chance to answer many questions about it during the talk. About half of the video contains demo and questions from … Continue reading My talk at DynCon 2011