All posts tagged #javascript all posts RSS-feed

Some reasons I do not like javascript

It is no secret that Javascript isn't the most well-designed language, and these points have probably been made a billion times, but now it's my turn! Note that this isn't a criticism about a lack of expressiveness. You can create great things with javascript. But you can also footgun yourself very easily, which is what I'm criticizing there. Most languages are expressive, but good ones help you avoid mistakes instead of making them. You can pass more or fewer arguments... full post»

Rainbow colormap in javascript

Simple one one this time! How to make an RGB rainbow colormap in javascript? Example: This is useful, for example, when plotting charts with something like chart.js. This is the code for it. The first part is converting hsl colors to rgb ones, which you might skip depending on which browsers you want to support. The second part generates a rainbow by simply rotating the hue of a hsl color. The other parameters are optional: you can make the colormap... full post»

The blog!

#example, #games, #science, #shell, #future, #type-systems, #music, #software-management, #fortran, #ubuntu, #data-analysis, #functional-programming


  1. Some reasons I do not like javascript @Mark A side effect of implicit type conversions https://kahde...
  2. Some reasons I do not like javascript @Mark Another interesting one
  3. Some reasons I do not like javascript @sander yea fuck javascript man!
  4. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  5. Rainbow colormap in javascript @Mark Now finally with color-coded source!