vinitshahdeo / Event-Loop-In-JavaScript

A Webinar on Event loop in JavaScript and rise of Async Programming, organized by HackOn and powered by Coding Blocks
https://bit.ly/hackon-js
MIT License
8 stars 7 forks source link

Ask me anything? #1

Open vinitshahdeo opened 4 years ago

vinitshahdeo commented 4 years ago

Hello, :wave:

Hope you're staying safe at home.

:mask: 🏠:family:


  ___      _     ___  ___                  
 / _ \    | |    |  \/  |                  
/ /_\ \___| | __ | .  . | ___              
|  _  / __| |/ / | |\/| |/ _ \             
| | | \__ \   <  | |  | |  __/             
\_| |_/___/_|\_\ \_|  |_/\___|             

  ___              _   _     _             
 / _ \            | | | |   (_)            
/ /_\ \_ __  _   _| |_| |__  _ _ __   __ _ 
|  _  | '_ \| | | | __| '_ \| | '_ \ / _` |
| | | | | | | |_| | |_| | | | | | | | (_| |
\_| |_/_| |_|\__, |\__|_| |_|_|_| |_|\__, |
              __/ |                   __/ |
             |___/                   |___/ 

Feel free to shoot your doubts in this thread.

YouTube Live

Thank you so much for attending my session on Event Loops in JavaScript.


Twitter Follow

theIYD commented 4 years ago

Hi @vinitshahdeo ,

Thanks for conducting this event, it helped a lot in knowing the internals of JavaScript as a programming language.

I wanted to know that why is it said that JS when executed on a machine i.e Node.js does not scale as much as compiled languages do like Golang, Rust or Java ?

vinitshahdeo commented 4 years ago

Hello @theIYD πŸ‘‹

Thanks for asking me this question.

Being single-threaded, Node.js has concurrency limitations but compiled languages like Go can scale up easily as they have better parallel execution mechanisms like Goroutines. But again, choice for tech-stack for your backend development between Node.js and Go totally depends upon how big your project is. In languages like Go, the parallel threads can be handled effectively.

Node.js is considered one of the best backend solutions for several reasons:

Node.js is single-threaded, sometimes CPU-bound tasks block the event loop and slow down your program. As a result, you get a slower app, which might annoy your end-users but it totally depends how efficiently you write your Node.js application.

For larger applications, few points to keep in your mind while writing Node.js code:

Last but not the least, choose Node.js to read 1000 files instead calculating 10th prime number.

PS: I have never worked at scale with GoLang. My whole tech stack is JavaScript and I've shared why one should prefer Node.js over others. Peace!

theIYD commented 4 years ago

Thanks for the answer @vinitshahdeo ✌️

I have been working with JavaScript from last 3 years, with Node.js as the backend framework. I have been making projects which do not scale but Node.js works best for them.

My question is to get hired as a backend engineer, should i be learning Golang/Rust or any compiled language ?

vinitshahdeo commented 4 years ago

@theIYD Not really! Node.js is being used by various organizations like Postman, PayPal, Netflix, LinkedIn, etc. I believe that tech stack should not be a barrier during hiring process for <3 years of work experience.

theIYD commented 4 years ago

@vinitshahdeo Okay, thank you sir for clearing my doubts! 😊

sonalipauld commented 4 years ago

@theIYD you need not to learn new language to get hire. You need to learn how to scale with your current language. I have a suggestion here: https://twitter.com/ashokdey_/status/1281472402010943490?s=20

Also companies who hire you based on languages do not have anything to teach you for your holistic development.

vinitshahdeo commented 4 years ago

@sonalipauld Thanks for sharing the Twitter thread.

@theIYD Check out this thread for awesome views by Twitter community.

My gratitude to @ameerthehacker and @ashokdey for their thoughts on Node.js.

ashokdey commented 4 years ago

@theIYD you need not to learn new language to get hire. You need to learn how to scale with your current language. I have a suggestion here: https://twitter.com/ashokdey_/status/1281472402010943490?s=20

Also companies who hire you based on languages do not have anything to teach you for your holistic development.

Extremely sorry guys seem like I forgot to log out of my sister's account. πŸ˜„