Mehak Dhingra (@MehakDhing99900) header
Mehak Dhingra (@MehakDhing99900) profile picture

Passionate about tech👩‍💻

Joined October 2024
Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)Photo by Mehak Dhingra (@MehakDhing99900)
ARPANET: Moving a file was a project. Now: The world's research is in my pocket.The acceleration is both terrifying and amazing. No idea what's next.🤯 #WebDev #internet
28
I finally got CORS! My frontend at localhost:3000 kept failing to fetch from localhost:4000 - turns out different ports = different origins!🧵
1
1
26
The fix is simple: 1️⃣ Backend needed: Access-Control-Allow-Origin: http://localhost:3000 2️⃣ My frontend fetch just needed: { mode: 'cors' } That moment when you realize CORS isn't broken - it's working exactly as designed to keep us safe! #WebDev #TheStruggleIsReal
2
32
Multer package in node is quite beneficial for parsing the form data in the backend.Was not able to parse the form data then got to know about this package.👨‍💻 #Node #Javascript #NPM
1
24
Have you guys ever seen #!/bin/bash at the top of a script? That's a shebang! It’s like telling your computer: "Hey, run this file with Bash/Python/Node/etc." So instead of typing python script.py, you can just run ./script—neat, right? 😎 #TechTips #DevLife"
1
60
I used to feel like callback makes things difficult!But now I feel like without them asynchronous code would not have been possible in javascript and now i feel their importance🧵 #javascript #webapi
1
14
This is all that you need to know if you want to know about how does javascript run? #javascript #eventloop
1
21
Server-side programs can "listen" for requests because they talk to the OS, and the OS knows how to handle TCP. The OS listens on a port, and your code (like app.listen(3000)) just asks the OS to wake it up when someone connects. It’s all built on layers! 🔥 #backenddev #Node
1
25
Scared of terms like TCP, HTTP, or UDP? Don’t be. They’re not dangerous — they’re just rules that define how two devices talk. Let me break it down in plain English. 👇🧵
1
1
24
Imagine two people trying to talk — they need a shared language. The internet works the same way. Two devices must follow the same protocol — or they can’t communicate at all.
1
1
5
Just clicked how computers store everything as 0s/1s! 🤯 🔷The SAME binary (like 01000001) can be: The letter 'A' 📝 The number 65 🔢 A pixel color 🖼️ Sound 🔊 Context is EVERYTHING! How we read it changes its meaning. Knowing this feels like a superpower! #TechBasics #Binary
1
29
Today I published my own npm cli package so it is a basically a simple word-counter project. To use: 🔷npm i meword-counter-cli To run: 🔶npx meword-counter-cli ./wordtest.txt or 🔶In package.json "scripts": { "count": "word-counter" } and then run npm run count wordtest.txt
1
28
Just learned about SSH servers and it’s wild! I tried it with my friend’s laptop-opened her terminal from my computer like magic. Turns out, real servers don’t even need passwords. Instead: Server holds a public key (like a lock) Client holds the private key (the actual key).
1
40
Tried something I thought was impossible! A while back, I used to wonder—how do people turn their PCs into servers? It seemed like some next-level hacker stuff. But guess what? I tried it! Here's the simple breakdown:🧵
1
1
30
1️⃣ Got a public IP for my router (just called my ISP) 2️⃣ Set up port forwarding (in the router's gateway) 3️⃣ Bought a domain (@GoDaddy) and linked it to my IP And it freaking worked! #NoobToServer #TechMag
27
Back in the day, I had NO clue about compilers vs. interpreters! Let us understand!🧵🧵 Like in C++? That .exe file we see? That’s the compiler converting all our code to machine code directly.
1
1
24
But Python? No .exe! It uses an interpreter that reads + runs code line-by-line, converting each line to machine code on the fly ⚡️ But what about JavaScript? 👇"
1
1
11
What is the difference between scripting and programming language? So, programming is often geared towards creating standalone software that runs independently, while scripting is about writing small programs or scripts to automate tasks within other software environments.
1
32
"People say Node.js is single-threaded. That's mostly true - but we can use Worker Threads for heavy tasks. Just remember: Workers are good for occasional big jobs (like math calculations)Don't use them for everything! Workers are like a backup tool, not the main tool." #NodeJS
1
29
Today let's talk about the differences between the common js modules and es6 modules 🧵
1
2
34
🔷Common js modules are synchronously loaded whereas es6 modules are loaded asynchronously even though both will be executed synchronously.
1
1
14
Today basically learned how can we publish our own npm packages it was quite interesting😊. #npm #nodejs #backend
30
So I was learning Responsive Layouts by @KevinJPowell and today for the Day 1 I learned that basically html without css is responsive only but it is us who by setting some properties make responsiveness a complex task.🤷‍♀️(So avoid giving heights )
1
38
Today I got to know something very amazing and interesting and that is 99% of international data moves through undersea fiber optic cables. You can literally go on SubmarineCableMap.com and explore the cables connecting continents!
1
34
Learned the basics of environment variables and understood the importance of PATH environment variable which is the most important one in order to understand how can I run my node from any folder's terminal .Quite Interesting must say😁💻 #variables #PATH #node
1
2
44