Rule Engine for Node.js

Based on my original blog posting, this posting introduces a ported Javascript version of my rule engine, for Node.js. I have the requirement to use a rule engine. I want something light weight and fairly simple, yet powerful. While there are products out there which are super good, I don’t want something with the big learning overhead. And, I fancied ...

Read More »

Notes On JavaScript Prototypal Inheritance

I’ve recently been working a lot with JavaScript (specifically, Backbone with Marionette) after many years of working predominantly with Java. When I start something that is a little different for me, it is always my tendency to want to jump in and start using it immediately. But in this situation, I have found that understanding the basics in parallel is ...

Read More »

Efficiently Paging Geospatial Data With MongoDB

From release 2.6, MongoDB includes a new minDistance option for geospatial queries. This is exciting because it lets you page through geospatial results very efficiently, and because it’s the first feature I’ve contributed to the database itself. I’ll measure how minDistance performs and show you an example app. Better, Faster I’m going to fill a MongoDB collection with the locations ...

Read More »

ngEurope: about AngularJS 1.3, new router and the future 2.0

Being passionate about AngularJS, me and two fellow JDriven colleagues visited the ngEurope conference. The amount of presentations during ngEurope was somewhat overwhelming, especially during the mornings without any scheduled break. Good thing I made some notes, that the slides are already available on-line and that someone published quite detailed notes for all sessions. Without all this I might simply ...

Read More »

JavaScript Submit Form Example

Submit forms are everywhere these days, and usually done with jQuery. This time we’ll teach you how to build them using JavaScript’s submit() function, which keeps form identity, be it class, id, tag, or name. Setting it up First of all we create three files: an HTML file, a JavaScript file and a CSS file with these names: index.html, submit_javascipt.js ...

Read More »

JavaScript Sort Array Example

Array sorting is a key development technique applied in a variety of situations. Below we’ll show you exactly how to use it, be it sorting an array of numbers, names or structures, ascending, descending or even randomizing and reversing an array. The sort() method The sort() method sorts the elements of an array and returns the array. The sort is ...

Read More »

RIP AngularJS! Oh Sorry, RIP scope, ng-controller, DDO, jqLite and whatever you like in AngularJS

I am  Software Developer, specifically Java Developer, spending most of the time writing back-end part of the applications. I can write basic HTML/JavaScript/CSS stuff to get the things done when needed. I didn’t have much passion on HTML/JavaScript and neither I am good at web development. I just has good enough knowledge to get the front-end work done for my ...

Read More »

JavaScript String Compare example

Comparing strings is a very common operation for most developers, be the language they use JavaScript, C/C++, Java, whatever. To be honest, the programming language doesn’t even matter. At some point you will have to compare those strings. In this example we will learn how to do that using JavaScript. We will use: JavaScript Simple Comparison We will start by ...

Read More »