Alok Yadav

464 posts

Alok Yadav banner
Alok Yadav

Alok Yadav

@alokcodes

Solving problems with code

India เข้าร่วม Ocak 2024
108 กำลังติดตาม105 ผู้ติดตาม
ทวีตที่ปักหมุด
Alok Yadav
Alok Yadav@alokcodes·
Launching TrackMyCourse 🚀 Ever started a YouTube playlist... and never finished it? I did too. So I built TrackMyCourse – a free Chrome extension to track playlist progress with checkmarks & percentage. Learn smarter, not scattered → chromewebstore.google.com/detail/trackmy…
English
6
1
18
2.1K
Alok Yadav
Alok Yadav@alokcodes·
here's how nodejs run javascript file from the very first command "node index.js". The flow of event loop is shown in the diagram below (arrows are numbered in the order of flow). To learn in detail, watch the full video.
Alok Yadav tweet media
Alok Yadav@alokcodes

dropped a 53 minute video on Node JS internal architecture and event loop. explained what happens internally when you run “node index.js” topic covered: v8, libuv, event loop, macrotask and microtask queue, nextTick, etc. Link: youtu.be/TH-kDr3AG4s @Hiteshdotcom

English
0
0
3
20
Suraj Jha
Suraj Jha@surajtwt_·
How was the class guys? Drop your experience below⬇️
English
82
1
118
1.8K
Alok Yadav
Alok Yadav@alokcodes·
@21me60 @FFmpeg barun bhai, if you don't have access to a laptop or file is too big and taking time, here's a trick: Just upload it to YouTube and download it 😅
English
0
0
0
45
Alok Yadav
Alok Yadav@alokcodes·
dropped a 53 minute video on Node JS internal architecture and event loop. explained what happens internally when you run “node index.js” topic covered: v8, libuv, event loop, macrotask and microtask queue, nextTick, etc. Link: youtu.be/TH-kDr3AG4s @Hiteshdotcom
YouTube video
YouTube
Alok Yadav tweet media
English
1
1
17
235
Alok Yadav
Alok Yadav@alokcodes·
one of the coolest things I have used in javascript is the AbortController.
English
0
0
0
30
Alok Yadav
Alok Yadav@alokcodes·
@21me60 so, calculator.add().sub() becomes this.sub() after executing the add function. Here ‘this’ is a reference to the calculator. Hence this.sub() is equivalent to calculator.sub() chains continue in the same way. it will break (error) if you didn't return ‘this’ from each method
English
0
0
1
22
Barun Tiwary
Barun Tiwary@21me60·
console.log(calculator.add(10).sub(5).add(10).sub(1).value); Comment the answer.
English
3
0
1
123
Barun Tiwary
Barun Tiwary@21me60·
How does chaining work in Express, Promises, or similar things in JS? @ChaiCodeHQ @Hiteshdotcom const calculator = { value: 0, add: function(n) { this.value += n; return this }, sub: function(n) { this.value -= n; return this } }
English
2
0
14
320
Alok Yadav
Alok Yadav@alokcodes·
@21me60 this is simply a synchronous code (no promises concept). It executes each function call sequentially on the return value. it is working because you are returning this (the object itself). calculator.add() -> does its task and returns reference of the calculator.
English
0
0
1
24
Alok Yadav
Alok Yadav@alokcodes·
@FFmpeg is doing it's job nicely as always but it's my laptop which is painfully slow 🥲
Alok Yadav tweet media
English
0
0
3
42
Alok Yadav
Alok Yadav@alokcodes·
the more i learn, the more i realize how little i actually know.
English
0
0
0
40
Abhay Singh
Abhay Singh@abhayyy_0103·
Today Onwards i am starting #30dayscoding challenge and I will name this as #GandFadCoding If you're also into Tech and love coding Happy to connect 🫂 and let's grow together.
English
1
0
6
100
anirudh
anirudh@nirudhuuu·
my playlist is stuck with same set of songs, suggest some good ones that you are on loop nowadays
English
69
1
111
4.5K
Alok Yadav
Alok Yadav@alokcodes·
here it is 😀 btw @mannupaaji, as always, great video. When i was in my first year (2023), just for exploring, i applied for a few yt thumbnail jobs and got clients within a week. Made around $35 and left after a few jobs as i wasn't enjoying it. It's not that easy now.
Alok Yadav tweet media
Hitesh Choudhary@Hiteshdotcom

@mannupaaji JS is dead Coding is dead AI is dead Maut faila do YouTube pe😂

English
1
1
13
1.5K