Homepage
Open in app
Sign in
Get started
Code by Bad Code
dd if=/my/head of=/my/blog
About
Github
Follow
FabricJS performance hack
FabricJS performance hack
While playing around with FabricJS, noticed that the renderAll method is called by fabric event handlers. After a profile made with Chrome…
@mnmtanish
May 18, 2017
Getting the class in static methods
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…
@mnmtanish
Jan 25, 2017
Running async tasks sequentially
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…
@mnmtanish
Jan 9, 2017
Rant: JavaScript import syntax
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:
@mnmtanish
Sep 8, 2016
Transpiled JS on Github?
If you’re hosting transpiled code on Github for your code, take extra care when accepting pull requests.
@mnmtanish
Jul 14, 2016
Using multiple GOPATHs
The GOPATH environment variable supports multiple directories separated by “:”. This is quite similar to the way we set multiple…
@mnmtanish
Jan 18, 2016
Day 3: Packages
Day 3: Packages
Go code is organised as packages. A package should provide constants, variables and functions to do a very specific set of tasks. It is…
@mnmtanish
Jul 30, 2015
Day 2: Built-in Features
Day 2: Built-in Features
Go language is a lightweight language compared to most others. The complete specification for the language can be written in a few pages…
@mnmtanish
Jul 30, 2015
Day 1: Getting Started
Day 1: Getting Started
This article is the first of a tutorial series posted for members of Colombo Gophers to cover basics of Golang programming leading unto the…
@mnmtanish
Jul 28, 2015
About Bad Code
Latest Stories
Archive
About Medium
Terms
Privacy
Teams