Here’s an example to convert the following imperative style of coding in JavaScript to functional style. The code prints out a list of even numbers in an array. var imperativeStyle = function(){ var numbers = [1,2,3,4,5,6,7,8,9,10]; var evenNumbers = []; […]
Handling the pinch, touch and swipe events in components like Panel in Sencha Touch is a piece of cake. You have to register these events on the DOM element of the UI Component. The UI Components in Sencha Touch have […]
Over the years developers have asked me several questions. The questions range from being seriously stupid to seriously smart ones. However there’re some questions which bowl me down often, no matter how many times I face them. Here’s a list […]
In the previous post, we discussed the CRUD operations in MongoDB. It’s time to get your hands dirty by writing some code. Let’s connect to MongoDB from Java, access our Quiz document and play with the Questions collection. You need […]
In the previous post we created a document called Quiz and inserted Questions into it. Each item in the Questions collection has a question, choices and answer. In this post let’s play with the CRUD operations. You can switch to […]