Refactoring in Go: goroutine concurrency

FeaturedCables

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

Featured

Real World Observables

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

Extending JavaScript with inline unit tests

I’ve been checking out Pyret, the new language from the same guys that made Racket. Even if it is designed to be for education, it has a syntax I love and some really cool features, like the possibility of adding in-line unit tests to your functions. This feature in particular looks like this: [code lang=plain] … Continue reading Extending JavaScript with inline unit tests