TIL: Boolean coercion are different
Read more
#til #ecmanoscript
Note: Unlike other type conversions like string coercion or number coercion,
boolean coercion does not attempt to convert objects to primitives by calling user methods.
—MDN: Boolean: Boolean coercion
Read more
#til #ecmanoscript
Zach Leatherman
I want to intercept Boolean Coercion for Objects in JavaScript—zachleat.com
A post by Zach Leatherman (zachleat)
⚡3👍1
VERT is a file conversion utility that uses WebAssembly to convert files on your device instead of a cloud. Check out the live instance at vert.sh.
https://github.com/VERT-sh/VERT
#tool #convert
https://github.com/VERT-sh/VERT
#tool #convert
GitHub
GitHub - VERT-sh/VERT: The next-generation file converter. Open source, fully local* and free forever.
The next-generation file converter. Open source, fully local* and free forever. - VERT-sh/VERT
🔥5
Bases
We have a new core plugin in Obsidian that can act as a database
https://help.obsidian.md/bases
#obsidian #news
We have a new core plugin in Obsidian that can act as a database
https://help.obsidian.md/bases
#obsidian #news
🔥8🎉3
Chromium team is working on "Vertical Tabs" 🎉
https://chromium-review.googlesource.com/c/chromium/src/+/7018894
#chrome #news
https://chromium-review.googlesource.com/c/chromium/src/+/7018894
#chrome #news
👍5👎3🎉1
A Brief Introduction to Behavioral Reusability (Mostly Inheritance Model)
https://medium.com/p/a-brief-introduction-to-behavioral-reusability-mostly-inheritance-model-aaddbda1d943
#article
https://medium.com/p/a-brief-introduction-to-behavioral-reusability-mostly-inheritance-model-aaddbda1d943
#article
Medium
A Brief Introduction to Behavioral Reusability (Mostly Inheritance Model)
Code reuse has been evolving for decades, from classical inheritance to prototypes to composition. This is the story :)
TIL:
You can listen for attribute changes on a DOM element using a
In my case, I needed to inspect a DOM element during a transient state that changed too quickly to catch manually.
Using DOM breakpoints wasn't helpful since the element was updated too frequently.
The solution was to use a
#til
You can listen for attribute changes on a DOM element using a
MutationObserver.In my case, I needed to inspect a DOM element during a transient state that changed too quickly to catch manually.
Using DOM breakpoints wasn't helpful since the element was updated too frequently.
The solution was to use a
MutationObserver to trigger specifically when a certain attribute changed.
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (
mutation.type === "attributes" &&
mutation.attributeName === "my-attribute") {
debugger;
}
});
});
observer.observe(element, { attributes: true });
#til
❤7👍3🔥1🤯1
Node 24 is LTS now.
Here are the codemods for migration:
https://nodejs.org/en/blog/migrations/v22-to-v24
#nodejs #news
Here are the codemods for migration:
https://nodejs.org/en/blog/migrations/v22-to-v24
#nodejs #news
nodejs.org
Node.js — Node.js v22 to v24
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and noscripts.
🔥6
DEV Community
Why CSS Is So Hard for Generative AIs to Understand?
CSS is one of those things that looks simple, until you actually try to reason about it. Most people...
I wrote another article today
Why CSS Is So Hard for Generative AIs to Understand?
Don't forget to share if you liked it
#css #ai #tailwind #article
Why CSS Is So Hard for Generative AIs to Understand?
Don't forget to share if you liked it
#css #ai #tailwind #article
⚡11👍1👎1
⚡5👍2🎉1
VPN - a Very Precarious Narrative
Half-truths about Public VPNs.
https://overengineer.dev/blog/2019/04/08/very-precarious-narrative/
#vpn #privacy
Half-truths about Public VPNs.
https://overengineer.dev/blog/2019/04/08/very-precarious-narrative/
#vpn #privacy
overengineer.dev
VPN - a Very Precarious Narrative - Dennis Schubert
A very long article about commercial VPNs, their marketing strategies, and the truth behind their privacy and security claims.