Posts

Showing posts with the label nodejs

Enhance CLI with ZX

NodeJS - Event Loop unveiled

Image
NodeJS : An asynchronous single threaded environment 😮 When started to work with nodeJS i was surprised that it was advertised as " asynchronous single threaded " environment. So I've tried to understand how it worked and then, at the end, I have dealt with famous and notorious event loop. Moreover, during studying, I've also figured out that its operation was the same either when Javascript run in NodeJS than in the whatever Internet Browser. The Event Loop In the image below has shown the basic event loop schema that make clear the architectural choices behind  the callback model (and as consequence the callback hell). In fact such model allows to decouple the event loop thread, where the main application runs, from all the resource consuming operations. Basic Event Loop Schema Event Loop in NodeJS The image below adds more details to the previous one in particular, concerning event loop, we find out event queue and worker threads that give us a ...

RX Revealed - After Watching, RX never will be as before

Image
Great explanation, from function giveMeSomeData to method  subscribe

NodeJS IDE for Java Developer

IDE dilemma In last years i've spent the most of my development time using the Java's language. Lately i've  discovered the amazing power of NodeJS framework and now I love it. But, starting to work on it, immediately I've had  the following dilemma: Which IDE I have to use to develop NodeJS application ?  When i've found out that both, my preferred java IDE, Eclipse and Netbeans had plugin for nodeJS development ... I understood how much NodeJS had become popular and my enthusiasm is grew.  Below, i would like to share with you, the Toolset that i'm using to develop NodeJS  Eclipse Tools for Node.js  (from  Nodeclipse ) Those tools provides an amazing feature set for working on NodeJS ecosystem Features Creating default structure for New Node Project and New Node Source File Generating Express project with Wizard JavaScript Syntax highlighting Bracket matching and marking selection occurrences with background color Content A...

JAVASCRIPT REBORN: Node.js, Nashorn, JavaScriptCore

JavaScript: A language for HTML into Browser (?) JavaScript language has been considered for long time, strictly joined both with HTML and Internet Browsers. First with DHTML then with AJAX and finally with HTML5  javascript has rapidly became wide used into web programming land. But, as said, JavaScript was less famous as programming language for business or concerning whatever stuff outside the browser.  Concerning my experience, i remember that i used JavaScript, out of Browser, for develop web app in Microsoft Active Server Page (long time ago) using JScript  (Microsoft's implementation of ECMAScript ) and other small projects using   Mozilla Rhino  2012, JavaScript reborn Now seems that JavaScript is reborn as a "common purpose" programming language, breaking definitely the browser's borders.  Throughout 2012, JavaScript seems to be solving problems across the industry, causing some justifiable hype across a number of libraries and f...