PinnedJanaka ChathurangaLeaving Google Maps? Use OSRM for RoutingGoogle Map APIs comes in handy except for its pricing. Recently Google Maps API prices were increased by about 10 times for premium…Sep 23, 20186Sep 23, 20186
Janaka ChathurangaJavaScript: Avoid long parameter lists in method signaturesActually I would say not to use more than 4 parameters. Okay?Mar 15, 2020Mar 15, 2020
Janaka ChathurangaWrite small functionsWrite functions to do one thing and do it well.Mar 11, 2019Mar 11, 2019
Janaka ChathurangaWhy we use the literal syntax for object creation?If you are following Airbnb JavaScript guide you may have noticed this rule.Mar 9, 2019Mar 9, 2019
Janaka ChathurangaWhy we use ‘const’ and avoid ‘var’?In JavaScript, people say you should use ‘const’ as much as possible and avoid using ‘var’..Mar 3, 20191Mar 3, 20191
Janaka ChathurangaCoding Best Practices (JavaScript) - Write small functionsThe idea is simple. Do not write long functions. Do not write functions longer than 20 lines.Oct 31, 2018Oct 31, 2018
Janaka ChathurangaCoding Best Practices (JavaScript)Avoid long parameter lists in method signaturesFeb 4, 20187Feb 4, 20187
Janaka ChathurangainStellar VibesWhy MarsElon Musk is trying to go to Mars. Of all the planet of the Solar System, why did he selected Mars? In this article I am going to discuss…Oct 24, 20172Oct 24, 20172
Janaka ChathurangainxtremefunXtreme 10.0 Walking DogsThis is an interesting question. Without going around I will just quote the question from Hackerrank.Oct 26, 20161Oct 26, 20161
Janaka ChathurangaIndexing Geo-spacial Data with Lucene 6Let’s think you have a database. It has a table which has Geo-spacial data. I mean ‘Latitudes and Longitudes’ ;) Also, frequently you want…Oct 21, 20161Oct 21, 20161