SlideShare a Scribd company logo
Building your first NodeJS 
Application 
Here is what to expect!
NodeJS applications typically 
Module 
ALPHA 
A module 
mashup. 
Module 
BETA 
This is a typical 
NodeJS 
application. 
Module 
OMEGA
BY what to expect I mean this. 
Things to expect to go wrong! Because 
good things you would already be 
expecting .
NodeJS Debugging 
NodeJS debugging is one of the things that might evoke a WHAAAATTT response in you. It is 
quite basic level of debugging in which even the breakpoints need to be added statically to 
your code. 
A way to circumvent this is to keep methods and modules small and build loosely coupled 
modules. If you have been working in a non-functional programming language till now then 
you better believe in this advice now or you will feel the pain later.
NodeJS Event Loop 
From the initial documentation you must have already read about how the NodeJS works 
and that it has something called an event loop. 
Well the event loop is something like a double edged sword, if you use it correctly it is friend, 
otherwise it will cut you.
NodeJS Event Loop II 
NodeJS makes use of callbacks for I/O operations. Well let me break this news for you, you 
should use callbacks even for the CPU intensive operations. 
Since the Event Loop runs on single thread, if you go on to do huge amounts of processing in 
the event loop then it would slow the whole application down, not just for one request but for 
all requests!!! 
So this makes it imperative that processing in Event Loop is done just to delegate incoming 
requests to call back based asynchronous processing and kept at the bare minimum if you 
wish to achieve those juicy throughput numbers in your application.
NodeJS Remembering Documentations 
You may not find a good IDE for NodeJS just yet. You will have to rely and remember the 
documentations a bit more than you did in Java or C++. 
But since the included code(dependencies) are all in JavaScript, you can just go ahead 
open that dependency file and have your documentation.
NodeJS Quickly Crafting Untenable Code 
NodeJS, well is a framework that supports JavaScript (a functional programming language) 
for its programming. As in other functional programming languages here also you can create 
code quickly and that code might become untenable. 
Example of such a thing happening are incomprehensible use of function compositions, call 
back hell,. Etc. 
SO, just stay sharp in keeping your code’s maintainability in check, especially with NodeJS 
since the code written here uses starkly different lingo that what you might have written for 
browser.
Ashish Sharma 
Find me at @ashish424242 and @kartaa

More Related Content

PDF
8 tips for mastering node.js
PPTX
Forseti driven javascript
PPTX
[JS EXPERIENCE 2018] Os segredos dos pricipais frameworks JS: Vanilla.js - Ig...
PDF
You should Know, What are the Common mistakes a node js developer makes?
PDF
Cdi - why still not buddy?
PDF
Web & Mobile
PPTX
Organisation of professional JavaScript Projects
8 tips for mastering node.js
Forseti driven javascript
[JS EXPERIENCE 2018] Os segredos dos pricipais frameworks JS: Vanilla.js - Ig...
You should Know, What are the Common mistakes a node js developer makes?
Cdi - why still not buddy?
Web & Mobile
Organisation of professional JavaScript Projects

What's hot (19)

PPTX
Say hello to react js - Day 1
PPTX
List of 7 popular java frameworks for 2019
PDF
Towards component based web UI with ReactJS
DOCX
Java script hello world
ODP
Application Development Using Java - DIYComputerScience Course
PPTX
PDF
Service Worker 101 (en)
PPS
Groovy & Grails
PPTX
Watir The Beginning
PDF
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
PDF
Glass Fish Esb Launch Feb10 2009 Part A Frank K
PDF
Setup ColdFusion application using fusebox mvc architecture
PDF
Ijsphx927
PDF
Swoole Meetup AFUP¨Montpellier 27/01/2021
PPTX
Watir - The Beginning
PDF
Java script basics for beginners
PDF
Concurrency in production. Real life example - Dmytro Herasymuk | Ruby Medita...
PDF
React Typescript for beginners: Translator app with Microsoft cognitive services
PPTX
Javascript and DOM
Say hello to react js - Day 1
List of 7 popular java frameworks for 2019
Towards component based web UI with ReactJS
Java script hello world
Application Development Using Java - DIYComputerScience Course
Service Worker 101 (en)
Groovy & Grails
Watir The Beginning
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Glass Fish Esb Launch Feb10 2009 Part A Frank K
Setup ColdFusion application using fusebox mvc architecture
Ijsphx927
Swoole Meetup AFUP¨Montpellier 27/01/2021
Watir - The Beginning
Java script basics for beginners
Concurrency in production. Real life example - Dmytro Herasymuk | Ruby Medita...
React Typescript for beginners: Translator app with Microsoft cognitive services
Javascript and DOM
Ad

Similar to What to expect while building your first nodeJS application (20)

PDF
All You Need to Know About Using Node.pdf
PPTX
02 Node introduction
PDF
Nodejs presentation
PDF
8 tips for mastering node.js
PPTX
Kalp Corporate Node JS Perfect Guide
DOCX
Basics of node.js
PPTX
Basic Concept of Node.js & NPM
PDF
What is Node.js_ Where, When & How To Use It.pdf
PDF
Node.js Web Development.pdf
PDF
Node Js Non-blocking or asynchronous Blocking or synchronous.pdf
PDF
Webconf nodejs-production-architecture
PPTX
Node.js and Enterprise Web Apps: Know all About it
PDF
What is Node.js_ Pros and Cons of Node.js Web App Development
PDF
What is Node.js_ Pros and Cons of Node.js Web App Development.pdf
PDF
What are some misconceptions about node js
PPTX
Nodejs web service for starters
PPTX
Node.Js Training in Noida
PDF
Node.js vs. java which one should you choose for backend development
PDF
Practical Node js Building Real World Scalable Web Apps 1st Edition Azat Mard...
PDF
Node.js and the MEAN Stack Building Full-Stack Web Applications.pdf
All You Need to Know About Using Node.pdf
02 Node introduction
Nodejs presentation
8 tips for mastering node.js
Kalp Corporate Node JS Perfect Guide
Basics of node.js
Basic Concept of Node.js & NPM
What is Node.js_ Where, When & How To Use It.pdf
Node.js Web Development.pdf
Node Js Non-blocking or asynchronous Blocking or synchronous.pdf
Webconf nodejs-production-architecture
Node.js and Enterprise Web Apps: Know all About it
What is Node.js_ Pros and Cons of Node.js Web App Development
What is Node.js_ Pros and Cons of Node.js Web App Development.pdf
What are some misconceptions about node js
Nodejs web service for starters
Node.Js Training in Noida
Node.js vs. java which one should you choose for backend development
Practical Node js Building Real World Scalable Web Apps 1st Edition Azat Mard...
Node.js and the MEAN Stack Building Full-Stack Web Applications.pdf
Ad

Recently uploaded (20)

PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
PPT on Performance Review to get promotions
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
web development for engineering and engineering
PPTX
Welding lecture in detail for understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CYBER-CRIMES AND SECURITY A guide to understanding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Internet of Things (IOT) - A guide to understanding
PPT on Performance Review to get promotions
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Mechanical Engineering MATERIALS Selection
Foundation to blockchain - A guide to Blockchain Tech
web development for engineering and engineering
Welding lecture in detail for understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

What to expect while building your first nodeJS application

  • 1. Building your first NodeJS Application Here is what to expect!
  • 2. NodeJS applications typically Module ALPHA A module mashup. Module BETA This is a typical NodeJS application. Module OMEGA
  • 3. BY what to expect I mean this. Things to expect to go wrong! Because good things you would already be expecting .
  • 4. NodeJS Debugging NodeJS debugging is one of the things that might evoke a WHAAAATTT response in you. It is quite basic level of debugging in which even the breakpoints need to be added statically to your code. A way to circumvent this is to keep methods and modules small and build loosely coupled modules. If you have been working in a non-functional programming language till now then you better believe in this advice now or you will feel the pain later.
  • 5. NodeJS Event Loop From the initial documentation you must have already read about how the NodeJS works and that it has something called an event loop. Well the event loop is something like a double edged sword, if you use it correctly it is friend, otherwise it will cut you.
  • 6. NodeJS Event Loop II NodeJS makes use of callbacks for I/O operations. Well let me break this news for you, you should use callbacks even for the CPU intensive operations. Since the Event Loop runs on single thread, if you go on to do huge amounts of processing in the event loop then it would slow the whole application down, not just for one request but for all requests!!! So this makes it imperative that processing in Event Loop is done just to delegate incoming requests to call back based asynchronous processing and kept at the bare minimum if you wish to achieve those juicy throughput numbers in your application.
  • 7. NodeJS Remembering Documentations You may not find a good IDE for NodeJS just yet. You will have to rely and remember the documentations a bit more than you did in Java or C++. But since the included code(dependencies) are all in JavaScript, you can just go ahead open that dependency file and have your documentation.
  • 8. NodeJS Quickly Crafting Untenable Code NodeJS, well is a framework that supports JavaScript (a functional programming language) for its programming. As in other functional programming languages here also you can create code quickly and that code might become untenable. Example of such a thing happening are incomprehensible use of function compositions, call back hell,. Etc. SO, just stay sharp in keeping your code’s maintainability in check, especially with NodeJS since the code written here uses starkly different lingo that what you might have written for browser.
  • 9. Ashish Sharma Find me at @ashish424242 and @kartaa