Animated ☯ with #canvas on @codepen https://codepen.io/thebabydino/pen/NpoxEe/
Also made #CSS and #SVG versions btw:
Single element, minimal #CSS (20 declarations and only that many to even out browser inconsistencies), minimal #JS (just updates a custom property value), comparison slider (original image vs. desaturated one) on @codepen https://codepen.io/thebabydino/pen/MWMvxxX
#code #coding #frontend #blending
#web #dev #webDev #webDevelopment
#blendMode
Single element, minimal #CSS (20 declarations and only that many to even out browser inconsistencies), minimal #JS (just updates a custom property value), comparison slider (original image vs. desaturated one) on @codepen https://codepen.io/thebabydino/pen/MWMvxxX
#code #coding #frontend #blending
#web #dev #webDev #webDevelopment
#blendMode
“What’s wrong with build tools? Other languages are compiled!”
Yes, but their compiler is official and ubiquitous.
The #JS ecosystem has devolved into a state where abstraction, the most fundamental software engineering concept, has been outsourced to third party tooling.
Using a package, even with dependencies, should be mindless, not a task requiring research and balancing of tradeoffs.
"Dependency-free" is not a badge of honor in healthy ecosystems.
*That’s* the problem. Not compiling.
“What’s wrong with build tools? Other languages are compiled!”
Yes, but their compiler is official and ubiquitous.
The #JS ecosystem has devolved into a state where abstraction, the most fundamental software engineering concept, has been outsourced to third party tooling.
Using a package, even with dependencies, should be mindless, not a task requiring research and balancing of tradeoffs.
"Dependency-free" is not a badge of honor in healthy ecosystems.
*That’s* the problem. Not compiling.
This is why #Rust is not only about memory safety/performance, but about correctness 👇
Did you know that in #JavaScript when `fetch`ing the same Request/Response twice will error (when containing a body)!?
It is because bodies are Streams, which can only be read once! You can clone the Request/Response/Body, but this comes with its own caveats (in the worst case the clone will buffer the body fully in memory!).
#RustLang solves this by borrow checking and good API design...
1/3
@wojtek or just the baddies giving JavaScript a bad name :P
@konstantin yes, yes… #JS is always innocent… it's always everyone else… Shai-Hulud was also the fault of "the others" :P
Abuse of the nullish coalescing operator in JS/TS
https://fredrikmalmo.com/blog/js-ts-nullish-empty-string-coalescing
#HackerNews #Abuse #of #the #nullish #coalescing #operator #in #JS/TS #JavaScript #TypeScript #NullishCoalescing #ProgrammingTips
@bazkie Yeah, I understand. But I am afraid this is never gonna change. It may be a bit like in the offline world: When walking on the street, It's much easier to find food than information on nutrition. To find a such information, you would probably go to the university, or go find a book in the library.
Likewise, there are places where you go for information online. As you're dutch, you may visit, e.g., tweakers.net for certain info, wikipedia or some subreddit for something else.
Moving Beyond the NPM elliptic Package
If you're in a hurry, head on over to soatok/elliptic-to-noble and follow the instructions in the README in order to remove the elliptic package from your project and all dependencies in node_modules. Art: CMYKat Why replace the elliptic package? Yesterday, the Trail of Bits blog published a post about finding cryptographic bugs in the elliptic library (a Javascript package on NPM) by using the Wycheproof.
http://soatok.blog/2025/11/19/moving-beyond-the-npm-elliptic-package/
#npm #crypto #cryptography #elliptic #security #infosec #cve #mitigation #appsec #javascript #js #npm #npmsecurity #npmpackages
Moving Beyond the NPM elliptic Package
If you're in a hurry, head on over to soatok/elliptic-to-noble and follow the instructions in the README in order to remove the elliptic package from your project and all dependencies in node_modules. Art: CMYKat Why replace the elliptic package? Yesterday, the Trail of Bits blog published a post about finding cryptographic bugs in the elliptic library (a Javascript package on NPM) by using the Wycheproof.
http://soatok.blog/2025/11/19/moving-beyond-the-npm-elliptic-package/
#npm #crypto #cryptography #elliptic #security #infosec #cve #mitigation #appsec #javascript #js #npm #npmsecurity #npmpackages
Isomorphic JS/TS Functions Orchestrator
https://github.com/damianofalcioni/js-functions-orchestrator
#HackerNews #Isomorphic #JS/TS #Functions #Orchestrator #open-source #JavaScript #TypeScript #functions
The #JS utility you never knew you needed 😂
Create multiple Symbols in one go with this Proxy-based one liner.
“But aren’t proxies super slow?”
Nah. Depending on the browser it ranges from 50% slower to exactly the same.
Which unless you’re creating millions of symbols, is inconsequential.
In today’s episode of Useless Info I just learned about #JS:
Turns out you cannot subclass Proxy (because it has no prototype).
Nice try Lea 🥲
(Yes, I know that for this particular use case you can have a regular constructor return a Proxy)