Recently I was working on a new project, where I had to stream stock data and display it on a chart. My first instinct was to setup a loop using setTimeout, but I quickly realized that wouldn’t work for my exact needs. Stock prices change so frequently, often happening several times a second. Doing an ajax call every second seemed like the worst overhead baggage I could possibly program myself into. After doing a bit of research, I stumbled upon Server-Sent Events. Continue Reading
The title is a bit misleading. This is good knowledge for anyone looking to build applications or websites using ReactJS. I’m been wanting to build a new ReactJS powered SPA, but I was worried about the discoverability consequences. This article really helped clarify what I can do to help with that.
Luke Hoban has a great roundup on Github of all the great new features coming in ECMAScript 6. My personal favourites are String Interpolation and modules.
I got another reminder today of how bad setInterval can be. You just don’t hear developers talking about the problems with setInterval. In fact, I’ve seen numerous tutorials where good developers are using it in their examples. We need to start addressing this and start talking about the problems with setInterval. Continue Reading