for-coder
430 subscribers
110 photos
57 videos
25 files
145 links
Download Telegram
var a = 10;
function foo() {
console.log(a);
var a = 20;
}
foo();
What is the output of the above code
Anonymous Quiz
43%
10
16%
Reference error
31%
20
10%
Undefined
This media is not supported in your browser
VIEW IN TELEGRAM
Been off lately… had to train my finger to hit Tab professionally 🏋️‍♂️⌨️
#coding_meme@forcoder #codingmeme
 
function yapp(){
console.log(typeof null );
}

yapp();
What is the output of the above code
Anonymous Quiz
21%
undefined
38%
null
17%
error
25%
object
for-coder
What is the output of the above code
Hint:

It is still a bug 🐛, hasn't been fixed
I'll talk about it later
👍1
🚨 JAVASCRIPT HAS A REAL BUG! 🚨


Open your console and type:
typeof null


You'll get:
'object'


That's wrong—null is not an object!

🔍 How did this happen?

When JavaScript was first implemented, values were stored in a tagged format, where the lower bits determined the type:
- Objects had a type tag of 0.
- null was stored as 0 in memory.

Since null had 0 in its type tag, typeof mistakenly classified it as an "object".

🔧 Why isn't it fixed?
One word: Backward compatibility.
Fixing it would break too many apps, so it's here to stay!

💬 Share this with JavaScript haters new (Lovers)... Lmao

#JavaScript #Bug #Programming
👨‍💻1
Two different users of cursor😭
👍2😢2
This media is not supported in your browser
VIEW IN TELEGRAM
Difference between programmers and @astonhall
😁1
🌙 Eid Mubarak, Coders ! 🎉

Wishing you all a joyful and blessed Eid! May this special day bring you happiness, peace, and endless success. Keep coding, keep growing, and enjoy the celebrations! 💙

#EidMubarak #ForCoder 🚀
2
🖥👶 Young Coders Are Using AI for Everything, Giving "Blank Stares" When Asked How Programs Actually Work 🤖

🕒 3 Min read time
🚀 Junior devs rely too much on AI tools like Copilot & ChatGPT 🤖, leading to a lack of deep coding knowledge 🧠. They copy-paste solutions but struggle to explain why the code works 🤷‍♂️. Studies show AI dependence weakens critical thinking 📉. Experienced devs warn that without real problem-solving, we’re trading long-term skills for short-term speed ⚡️⚠️.
READ_MORE
👍1
🚫📱 How to Stop Doomscrolling 🌿

🕢 7 min read
In today's digital world, it's easy to get trapped in endless doomscrolling. But don’t blame yourself—tech companies design platforms to keep you hooked! Here’s how to break free:

Set screen time limits 📉
Use apps like ScreenZen, Opal, & Roots 📲🚀
Replace scrolling with books & games 📚🎮

Take control of your screen time & regain your focus! 💡

READ_MORE


#StopDoomscrolling #MindfulTech #ForCoder 🚀
This media is not supported in your browser
VIEW IN TELEGRAM
This might look like a meme video, but it actually happened to me last week! Thank goodness I got it recovered after a lot of 🔄🔽🔼.


#ShoutoutToLinux 🐧💪
#Linux ❌️💀 Thanos ✅️🔥"
😁3
Good night I gotta use VPN ✈️ from now on
🙈1
Good evening ☕️☕️
🔥2
Does anyone know a coffee shop or workspace with decent WiFi? I'm on an unlimited 5G plan, but the network's acting like it's powered by a potato—87kbps right now.
😁2
Good Morning 🌄 🌅


Have a nice weekend
👌4
let x;  
console.log(x ?? "default");
What is the output of the above code?
Anonymous Quiz
15%
A) undefined
44%
B) “default”
31%
C) null
10%
D) ReferenceError
The 13 Software Engineering Laws 🚀

🕙 10m read time TL; DR
Explore 13 key software engineering "laws" like:

Parkinson’s Law (Work expands to fill the time available)

Hofstadter’s Law 🤯 (It always takes longer than expected)

Conway’s Law 🧩 (Systems mirror team communication)

Murphy’s Law 💥 (Anything that can go wrong, will)

These mental models help engineering managers and developers navigate:

Project estimation 📅

Team dynamics 👥

Product management 📊

Feature creep 🐛

Why they matter? Save time, reduce stress, and ship better software! 🎯

💡Make sure to read until the end, it's pretty useful i believe

Read More