JavaScript dbj.cond-itional all the way

I have found some  time to do it properly at last.  If this is all news to you please start from here.  the beginnings and motivations are described here.

Classification of patterns of usage aka “Shapes”
Sounds very pompous. But it seems it is not and it is very useful to understand how to use dbj.cond effectively. Just click on the image to jump to dbj.cond shapes catalog,

Click for dbj.cond() Shapes catalog

For the ones wondering why would anybody think of if-then-else , I might suggest to start from Wikipedia  introduction to the issue.

There are 2 NPM  packages one GitHub project and one JSFiddle so far.

Continue reading “JavaScript dbj.cond-itional all the way”

CallStream + project Euler

I am currently in the stage of searching for simple but valid examples of CallStream validity (aka: usefulness) as interfacing concept and programming idiom.

Leonhard Euler
Leonhard Euler

And, I think I have found one. CallStream + project Euler. The mathematical nature of some computational problems make them a great fit for the functional paradigm. For those of you who don’t know, “Project Euler is a series of challenging mathematical/computer programming problems…” ( I have concluded I could use the simple and interesting solution for a problem from “Project Euler” to show CallStream in action.
Continue reading “CallStream + project Euler”

JavaScript without if else cascades


Never ending JavaScript. Is this a rehash of an old post? Yes it is.
But is it still relevant.? Well, yes it is. Very much so.

Please (re) read carefully and try and use in your production JavaScript.  In case you want it to be resilient and efficient JavaScript.

[first published 2011 Sep 15]

Continue reading “JavaScript without if else cascades”