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
Code Generation and You
A friend of mine and I have discussed code generation on several occasions. We both agree that any enterprise development process should involve code generation, without exception. Though it is possible for development from scratch may not ...
2015.09.09
Mathematicode a Love Letter to Math
I'll open up by saying I am a mathematician by education. I'm not one of the mathematical great minds and I am unlikely to ever win a Fields medal, but I have a degree in applied math and it's what I know. The reason I share this is becaus ...
2015.09.04
Testing Promises: Promise Fakes
Javascript developers notoriously say unit testing in hard. I think the problem is actually more specific than that. Unit testing pure functions and business logic actually pretty easy.You put a value in, you get a value out. If the value ...
2015.09.02
15678915