Go language is a lightweight language compared to most others. The complete specification for the language can be…
Go code is organised as packages. A package should provide constants, variables and functions to do a very specific set of tasks…
The GOPATH environment variable supports multiple directories separated by “:”. This is quite similar to the way we set multiple directories for the PATH variable.
For an example, if we set the GOPATH environment variable to /tmp/go1:/tmp/go2:/tmp/go3 all three…
I’ve been doing quite a bit of OOP with javascript lately (although I’m not a big fan of it). One of the problems I recently came across was to access the class from a static method. This is useful when writing static methods which can be inherited by other classes…
If you’re hosting transpiled code on Github for your code, take extra care when accepting pull requests.
If you’re maintaining a javascript project on Github there’s a good chance you’re using a transpiler. Most developers don’t publish transpiled code to…
The import syntax on javascript looks damn ugly when many items from a module. Take this example piece of code form a typical GraphQL code:
import { GraphQLObjectType, GraphQLString, GraphQLNonNull, GraphQLFloat, GraphQLList…
How to run a bunch of async tasks which return promises sequentially? If we’re running some task sequentially, it’s very likely that some tasks depend on the result of previous tasks. Let’s check this badly written example first. The sequence below will run each step…
While playing around with FabricJS, noticed that the renderAll method is called by fabric event handlers. After a profile made with Chrome DevTools it was clear that we can improve the frame rate by only rendering inside a requestAnimationFrame callback.
This article is the first of a tutorial series posted for members of Colombo Gophers to cover basics of Golang…