Javascript
-
Nordic.js 2015: Day 1
The first day of Nordic.js is coming to an end and it has been a great first day. The line up of speakers have been great and while some, in my opinion, performed better than others the overall experience has been great. I also like the diversity in the type of talks that was given. They have been both practical and inspirational and not all have been necessarily technological in its nature.
-
Learning ES6 - let and const
Over the past few weeks I’ve started to dive more into EcmaScript 6. I’ve decided that I’m going to take the time and document what I learn here, starting with the new ways of declaring variables let and const. I’ve also started a new repository over at Github that will act as a cheat sheet. Of course, as of writing this, it is still a work in progress but I’m hoping to expand it further over the next coming weeks.
-
Learning EcmaScript 6 with ES6 Katas
Although I’ve been reading (and coding) a bit of ES6, ES6 Katas feels like a solid piece of source material for getting a good overview on what is new. The site provides programming katas for learning the new things in EcmaScript6. No setup of environment needed, pretty neat! So far I’ve done the Array, Class and Destructuring Katas and I know for sure I’ve learned some new things that will be use full.
-
Service Workers, the future for caching
This week I got the opportunity to experiment with the Service Worker API at work, in a lab session held by @OskarKarlsson. Although it is not supported in all browsers just yet, my initial impressions are pretty much that I love it. It feels a lot like what I would expect Application Cache to be but without the quirks. Not only can we use it as a “Cache Everything” solution, with service workers we’re also able to priorities how we want to read from the cache as well.
-
Making (JavaScript) Promises
When writing JavaScript code you often, if not always, end up writing something that is asynchronous. Whether it’s responding to File I/O, a AJAX request using or user interaction the standard method have been to use
callback functions
. Writing a function that use callbacks can look something like the following