Skip to content

Write More Meaningful Time Constants

One thing that I strive to achieve is to write code that doesn't need comments to convey meaning. The most basic thing when doing this is to avoid using magic numbers. In this article, I'll illustrate how I avoid using them when it comes to time constants.

Make LineString Resolution Depend on Zoom Level in OpenLayers

In this article will examine a solution to reduce the number of points in a route path, rendered inside OpenLayers, based on the zoom level of the map.