How computers connect securely:
I broke down the TCP 3-way handshake (SYN, SYN-ACK, ACK) in my new blog!
https://t.co/5zeoPwXAwX
#LearnInPublic#chaicode
3 JavaScript gotchas I studied today:
Array(3) β 3 empty slots, not [3]
[10, 9, 1].sort() β [1, 10, 9]
Object.freeze() β no edits at all
Run the code. Watch what happens.
#LearnInPublic#chaicode
typeof null β "object"
typeof [] β "object"
typeof NaN β "number"
JS data types look simple until you test them. Revised today in JS refresher T - 3 class.
#LearnInPublic#chaicode
I added a "NEW" badge to a card.
It flew to the page corner instead π΅
The fix: position: relative on the parent.
Full guide π
https://t.co/jJy7C3sWjz
#LearnInPublic#chaicode
map() isn't magic. I built my own today.
Loop through the array, call your function on each item, push the result into a new array.
map( e => e * 10 + 1 ) on [ 3, 10, 24, 90 ] gives [ 31, 101, 241, 901 ]
#LearnInPublic#chaicode
console.log(age);
var age = 32;
Output: undefined. No error.
JavaScript runs in two phases :
memory first (age = undefined), then code.
That's hoisting.
#LearnInPublic#chaicode
Ever set a card width to 600px on your laptop, only for it to overflow on mobile?
I broke down how CSS units actually scale:
https://t.co/KzONvccsV0
#LearnInPublic#chaicode
ElevenLabs "Book a personalized demo" page, rebuilt:
HTML and CSS only. Two-panel layout, CSS variables, zero JavaScript.
Live on Netlify :
https://t.co/qM2iRQu1Jf
#LearnInPublic#chaicode
Here's the code:
https://t.co/KbHv3BICWR
If you spot anything in my HTML or CSS that could be cleaner, tell me. I'm still learning and I'd love your feedback.
A class of 30 students:
"Come here" β p (everyone)
"Wearing glasses" β .class (a few)
"Rahul, row 3" β #id (just one)
That's CSS selectors made simple.
New Blog: https://t.co/xYlmmkJIIW
#LearnInPublic#chaicode
ul>li*3 + Tab = a full HTML list.
That's Emmet. I wrote 2 new blogs :
Emmet for faster markup, and HTML tags and elements, the building blocks of every webpage.
Read them: https://t.co/qoaQNm9xIN
#LearnInPublic#chaicode#HTML
5 boxes. 3 lines of CSS. Perfectly spaced.
display: flex;
flex-direction: row;
justify-content: space-evenly;
Flexbox : you style the parent, and the children follow.
#LearnInPublic#chaicode
A page loads in under a second. How?
New series: HTML, CSS & the Browser.
Part 1: DOM, CSSOM, render tree, paint.
read here : https://t.co/cToiq9dfrp
#LearnInPublic#chaicode