It is genuinely fascinating how in the year 2026, JS still does not have some sort of full support for deep cloning of objects
If you thought "we have `structuredClone` now!", well, it still has a bunch of footguns, like function prototypes and DOM nodes
@mimi__nyanya@InFarDream это конечно хорошо, но точно не на 10 из 10. я как-то играл какую японскую гандам и офигел насколько офигенно там сделали отдачу при стрельбе
Следы браузера — новые куки. Марцин Шлешиньский объясняет, как сигналы OfflineAudioContext, WebGL, canvas, Intl и navigator с хешем SHA-256 дают почти уникальный идентификатор, не спрашивая разрешения. #security#js
https://t.co/zILLtdeYP3
NEW RELEASE! The Qanba Obsidian 2 Pro is NOW available for pre-order! 🔥
Take your game to the next level with Sanwa Denshi precision and customizable controls!
Shipping expected between January and February 2027.
Pre-order now 👉🏻https://t.co/mr8ce8dhxN
Крупные npm-пакеты продолжают взламывать, поэтому напоминаю про мою статью про то, как сделать безопасный процесс релиза npm (это часто не только про npm, но и про Dev Container, например).
https://t.co/jS5emJkpJ3
css tip: tooltips that know when they’re about to get clipped.
new way (flips automatically):
.trigger {
anchor-name: --tip;
}
.tooltip {
position: fixed;
position-anchor: --tip;
position-area: right;
position-try-fallbacks: flip-inline, flip-block;
}
old way (gets cut off near edges):
position: absolute;
left: 100%;
translate: 0 -50%;
small CSS tip:
we've all done weird workarounds to animate height: 0 → height: auto.
there's a cleaner way now:
:𝚛𝚘𝚘𝚝 {
𝚒𝚗𝚝𝚎𝚛𝚙𝚘𝚕𝚊𝚝𝚎-𝚜𝚒𝚣𝚎: 𝚊𝚕𝚕𝚘𝚠-𝚔𝚎𝚢𝚠𝚘𝚛𝚍𝚜;
}
.𝚙𝚊𝚗𝚎𝚕 {
𝚑𝚎𝚒𝚐𝚑𝚝: 𝟶;
𝚘𝚟𝚎𝚛𝚏𝚕𝚘𝚠: 𝚑𝚒𝚍𝚍𝚎𝚗;
𝚝𝚛𝚊𝚗𝚜𝚒𝚝𝚒𝚘𝚗: 𝚑𝚎𝚒𝚐𝚑𝚝 𝟹𝟶𝟶𝚖𝚜 𝚎𝚊𝚜𝚎;
}
.𝚙𝚊𝚗𝚎𝚕.𝚘𝚙𝚎𝚗 {
𝚑𝚎𝚒𝚐𝚑𝚝: 𝚊𝚞𝚝𝚘;
}
interpolate-size lets the browser animate between numeric sizes and intrinsic values like auto.
accordions just got a lot less annoying.
Pre-order for the 8BitDo Arcade Controller Pro starts now.
Built for serious fighters. Full control for every match. A compact all-button arcade controller with on-device settings, deep customization, and long-session comfort.
Get yours now: https://t.co/zt7zFjOUQo
#8BitDo #ArcadeControllerPro #FGC #FTG
Introducing Kirari ✨
A tiny, DOM-free syntax highlighter for the web.
• 2.9 kB gzipped core
• 48 languages
• custom theme
• Streaming support
• Zero runtime dependencies
Built to be lightweight and customizable.
https://t.co/IrZfpd2QIy
Как на фронте проверить, есть ли строка в большом списке, не загружая его целиком?
Один из вариантов - фильтр Блума. На бэке по хешам строк строим битовый массив, сериализуем и передаём на фронт.
Если хотя бы один нужный бит = 0 - строки точно нет. Если все = 1 - возможно, есть.