3 Rules to Improve Your App State Management
As SPAs become more common for web application development, the concept of state is moving almost completely out of the realm of servers and services and into the browser, and rightly so. Ideally services should only maintain state as pers ...
2015.10.28
Data, Types, Objects and Creating A New Generic Type
Javascript comes with a variety of types, and with ES 2015 and beyond, we are seeing new types emerge like sets and symbols. The primitive data types come with a standard set of comparison rules and default behaviors which make them espec ...
2015.10.21
Leveling Up With Reduce
It was pointed out to me the other day that I suffer from the curse of knowledge. What this basically means is, I know something so I don't understand what it means to NOT know that thing. This can happen in any aspect of life and it's com ...
2015.10.14
Callback Streams With Function Decoration
Regardless of whether you prefer raw callbacks or promises, there comes a time where asynchronous behavior pops up in your application. It's an artifact of working on the web and working with Javascript. This means that, although a functio ...
2015.10.07
Extending Functions with Decoration through Composition
In object oriented design, the decorator pattern is commonly used to extend and enhance classes so they perform some new or more refined functionality. In functional programming it is possible to decorate functions as well. The decoration ...
2015.09.30
Mainstay Monday: Hiatus
I have spent the last several months writing two blog posts per week. I have really enjoyed writing both the Mainstay Monday and the regular Wednesday posts, but time is a limited resource. I have started a new writing project which will ...
2015.09.28
Speeding Up Your App with Request Caching
Recently in my Mainstay Monday posts I've talked about creating linked lists and queues in Javascript. Each of those topics is so dense that just writing about the basics of creating and using them took full blog posts. Really all of that ...
2015.09.23
Mainstay Monday: Sorting
If you're reading this you're likely already a programmer. This means you have likely used [].sort() in your code many times. I honestly can't remember how many times I've sorted data one way or another. Just because you've called sort on ...
2015.09.21
Five Things That Will Improve Your (Javascript) Code
I see lots of discussion around new frameworks, libraries and other odds and ends, which claim to make your code better, cleaner, easier to maintain, etc. Although frameworks are definitely useful for avoiding reinventing the wheel and lib ...
2015.09.16
Mainstay Monday: Queues
A couple weeks ago, we looked into linked lists. Sadly linked lists are kind of a standalone topic that don't use much more than basic objects in order to function as designed. Queues, on the other hand can easily spring forward from linke ...
2015.09.14
15678915