Ihab Khattab (@HO_BA) header
Ihab Khattab (@HO_BA) profile picture

Frontend Engineer

~
Joined August 2007
عالمية والله
2
115
It's Monday and you're adding dark mode. No error. No warning. The bug isn't in your code. ihabkhattab.com/blog/what-pe…
5
349
JavaScript Maps now have getOrInsert(), so you can finally stop writing the same if in every LeetCode solution. Except on LeetCode. It still runs Node 22 🤦 ihabkhattab.com/til/map-get-…
1
4
179
my Ghostty settings. yes the font size is 22. my eyes and I have reached an agreement 👴 font-size = 22 theme = Night Owl # Brighter gray for autosuggestions and dim text (5.22:1 on #011627) palette = 8=#7a8b99 # Safety net: Ghostty raises any fg/bg pair below this ratio minimum-contrast = 3
2
143
my Ghostty settings. yes the font size is 22. my eyes and I have reached an agreement 👴 font-size = 22 theme = Night Owl # Brighter gray for autosuggestions and dim text (5.22:1 on #011627) palette = 8=#7a8b99 # Safety net: Ghostty raises any fg/bg pair below this ratio minimum-contrast = 3
1
5
295
Users click, the page freezes for two seconds, and the spinner never shows. Why? And why don't a forced reflow, an await, or one requestAnimationFrame fix it? The answer and a live demo of every version are in the post: ihabkhattab.com/blog/the-spi…
1
1
2
73
10,134
TIL: don't wrap a card in <a>. Screen readers read the whole card as the link's name. Put the link on the title and stretch it over the card with ::after instead. ihabkhattab.com/til/stretche…
1
8
953