home blog contact

2024-03-11





Understanding Go context

2024-03-11





Go contexts are a good candidate for something you can use without understanding it. When you see that a context is expected in a function's definition, you can pass the request's context, or context.Background() and call it a day. If you're feeling a little crazy you pass a context with a timeout, and it magically work as expected. Here we will try to see the main usages of context (timeout and passing values), but also try to implement a function using a context and see how the implementation look like.

2024-02-10



Rustlings - Solutions

2024-02-10



Rustlings is a nice project presenting you with a serie of small exercises to learn most of the concept of the languages. From declaring variables to more advances concepts. We are presented with a failing program and should fix it in order to compile.

2015-03-12




Speed-up angularjs (v1) - remove watchers

2015-03-12




Note from 2024: I copying over this post from ages ago because I'm actually quite proud of it even though it was probably a terrible practice if it would have been used. This was my first "wow" moment. Probably the first time I fixed a real problem I thought was too big or complicated for me, and it worked so well I thought I broke the entire thing. Changing a list so slow it's literally stuttering to a list so fluid you would think it's just text without interaction felt really good.