A TypeScript function that is one big switch statement, each case clause seemingly doing the same thing.
I take no joy reporting that this optimization boosts our type validation code performance by up to 2x.
28.11.2024 22:59 โ ๐ 105 ๐ 13 ๐ฌ 10 ๐ 3
Pro tip: Don't write your #TypeScript union types by hand, use a Type Catalog instead!
Why are Type Catalogs better?
Find out in the thread ๐งต ๐
22.02.2025 17:02 โ ๐ 27 ๐ 4 ๐ฌ 2 ๐ 0
Here is another reason I like Type Catalogs.
They can easily be transformed with Mapped Types!
Full code snippet in thread ๐งต๐
23.02.2025 16:26 โ ๐ 18 ๐ 3 ๐ฌ 1 ๐ 0
Dev / Build (Vite / Rolldown)
โข Test / Bench (Vitest)
โข Lint / Format (Oxc)
โข Documentation (Vitepress)
โข Run TypeScript directly in Nodejs
โข Project scaffolding / code generation
โข Monorepo task orchestration / caching
Dang if @vite.dev Plus has all this, canโt wait for Vite Plus Pro Max
14.03.2025 13:52 โ ๐ 116 ๐ 9 ๐ฌ 6 ๐ 1
Displaying a graphic of how it's not just people with permanent needs that can benefit from inclusive design, there are also temporary and situational needs. For example, someone who's deaf, vs has an ear infection, vs in a loud bar
The full list, with little characters representing each is:
Touch: one arm, arm injury, new parent holding a baby
See: Blind, Cataract, distracted driver
Hear: Deaf, ear infection, bartender
Speak: non-verbal, laryngitis, heavy accent (a picture of a Viking)
Accessibility doesn't only help a small group of people. Accessibility helps everyone
24.01.2025 13:44 โ ๐ 774 ๐ 235 ๐ฌ 23 ๐ 19
Just a timeout
08.03.2025 13:41 โ ๐ 7 ๐ 0 ๐ฌ 1 ๐ 0
Sponsor @43081j on GitHub Sponsors
Maintainer of chai, parse5, various eslint plugins, & more. One of the e18e.dev leads. Core contributor to lit and modernweb.
I setup my GitHub sponsors not long ago but didn't really mention it anywhere. If you appreciate what I do, these sponsorships do help a lot ๐
My focus this year is all over like every year ๐
(e18e, chai, tinylibs, chokidar, vueuse, and much more). But I will keep on top of them all
04.03.2025 17:07 โ ๐ 35 ๐ 13 ๐ฌ 1 ๐ 1
Can't give much right now but love the work you're doing!
07.03.2025 18:09 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0
I appreciate it very much. I'm also curious about how to get listed as a maintainer. I'm in the package.json (linked below), but still "no maintainers found": socket.dev/npm/package/...
06.03.2025 23:13 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
@socket.dev how can I fix this? ๐ฎโ๐จ
It's literally vite's convention for plugins: vite.dev/guide/api-pl...
06.03.2025 16:59 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
I stand with Ukraine and the truth that Russia is an invader.
02.03.2025 14:16 โ ๐ 69 ๐ 3 ๐ฌ 0 ๐ 6
ะกะปะฐะฒะฐ ะฃะบัะฐัะฝั
28.02.2025 22:47 โ ๐ 26 ๐ 6 ๐ฌ 1 ๐ 0
Setting hover state in React components is so 2013. You can set hover state with CSS variables and can skip all those JS re-renders. ๐ค
28.02.2025 12:28 โ ๐ 15 ๐ 1 ๐ฌ 2 ๐ 0
All the many other problems aside, CoderByte doesn't do any sanitization of logs before it hits their "in-browser" console. Not even HTML. Yes, it will display anything, buttons, iframes, you name it, and sometimes it will crash and burn. It's funny, but sad that it's used to evaluate candidates.
27.02.2025 21:57 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
End-to-End Encrypted Chat with the Web Crypto API
When transmitting or storing user data, especially private conversations, it's essential to consider...
I was a big fan of dev.to ~4 years ago. I wrote and read great articles, tons of meaningful engagements, deep discussions that would help me learn and improve my writing (example linked).
I can barely find any good content there anymore, which also makes me not want to write. Also, the bugs.
26.02.2025 13:01 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
This is nice, we should add something like this to Lit!
I wonder if there's an opportunity for a WCCG community protocol to use common performance markers?
25.02.2025 02:28 โ ๐ 1 ๐ 1 ๐ฌ 2 ๐ 0
Oh thatโs a good point . I think there is plenty of opportunity. The lifecycle is the same (in theory) for web components frameworks. And as you can imagine, naming was the โhard partโ about doing theses markers haha, I think weโre still going to rename them.
25.02.2025 13:30 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
two men in suits are talking and the words we need to go deeper are on the screen
ALT: two men in suits are talking and the words we need to go deeper are on the screen
This makes me want to go deeper and start contributing to Chrome DevTools itself. Time to dig through what @addyosmani.bsky.social and team are cooking :)
24.02.2025 17:56 โ ๐ 3 ๐ 0 ๐ฌ 0 ๐ 0
A page from the salesforce platform with chrome developer tools opened in the performance tab showing detailed metrics for lightning web components
This is why I love contributing to Open Source: My PR adding support for Chrome DevTools's Performance Panel Extensions is now GA in the Salesforce platform. โค๏ธโก๏ธ
github.com/salesforce/l...
24.02.2025 17:56 โ ๐ 5 ๐ 1 ๐ฌ 3 ๐ 0
Helping bring Node-API to React Native ๐ซก
22.02.2025 15:41 โ ๐ 13 ๐ 2 ๐ฌ 0 ๐ 0
Yeah, similar thing, this story was Vienna to Paris, checkin was weirder and confusing at the time due to covid. I really took a chance flying to the other airport in Paris and taking a train to CDG, getting tested there in time. Boarding gate attendants look at me like I was a ghost.
22.02.2025 14:44 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
Yeah, it varies a lot by airline and region, but in general at least calling the airline directly seems to yield the best results than talking to people at the airport. Best to try both anyway. Glad you got the refund! Enjoy Barcelona ๐
22.02.2025 14:38 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
People at the airport kept telling me I was screwed, would need to pay full price and wait days, so I had to try my luck and it worked perfectly. Lots of perplexed โhow are you here?โ looks at the second leg made me feel like a wizard.
22.02.2025 14:32 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
If you miss the first leg of a flight you get all others cancelled, but if you manage to get a low-cost flight to get to the second leg in time, call the airline and they will uncancel them. At least itโs true for AirFrance. Dont ask any other way but by phone though.
22.02.2025 14:26 โ ๐ 0 ๐ 0 ๐ฌ 2 ๐ 0
My first time missing any flight at all was from Kyiv to Sรฃo Paulo. Paid 350 euros to reschedule, no money, slept 3 days at the airport. I cried like a baby. It made me so good at not missing flights and finding alternatives when I inevitably did it again ๐
22.02.2025 14:21 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
publint
Lint npm packages to ensure the widest compatibility across environments
Got docs set up for publint today! A bit hard to get documentation frameworks to support SPA fallback, and I had to mix Svelte in Vue, but it kinda works. publint.dev/docs/
21.02.2025 07:48 โ ๐ 41 ๐ 3 ๐ฌ 0 ๐ 0
GitHub - publint/publint: Lint packaging errors
Lint packaging errors. Contribute to publint/publint development by creating an account on GitHub.
Just randomly discovered this gem by @bluwy.me . It's exactly what I was most missing in my workflow. I can't give much right now, but I had to become a sponsor. Thank you!
21.02.2025 18:03 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0
I believe @pnpm.io is leading the pack in terms of out-of-the-box dependency management in monorepositories and more recently supply chain risk management. Are people getting the same benefits from modern yarn or npm? How do you set those up?
20.02.2025 15:53 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Yeah, I believe it does the right thing. I donโt remember if thereโs a lint for it, probably. Also, my understanding is that code running at the top-level of the file is also kind of a describe block with similar pitfalls, but not this one in particular since you canโt .skip easily
20.02.2025 15:33 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
https://jviide.iki.fi โข A cruel and incompetent charlatan.
Husband, Father, Developer, Gamer. Software engineer for TypeScript at Microsoft. Delegate to TC39. All opinions are my own. he/him
divmain on x. Working at @socket.dev. Fmr Salesforce, Vercel, Microsoft, Formidable, non-tech NGO. Core values: kindness, partnership, & creation. Political aficionado, musician, person of faith, devoted learner. Might occasionally post about my dog.
Playwright is an automation library for cross-browser end-to-end testing by @microsoft.com. Available in JavaScript, TypeScript, Python, Java and .NET.
Principal Technical Program Manager at Microsoft advocating for Playwright testing ๐ญ.
Nuxt ambassador, Google Dev Expert, Former GitHub โญ๏ธ and MVP
Check my site for blog posts/videos/podcasts debbie.codes
๐ดโโ๏ธ๐โโ๏ธ๐๐พ๐โโ๏ธโท๏ธ in my free time
#CSS ex-Google Chrome DevRel, CSSWG, co-host The CSS Podcast, host @ GUI Challenges, co-host Bad@CSS Podcast.
Creator of VisBug, open-props.style, gradient.style, transition.style & more
UI, UX, CSS, HTML, JS
https://nerdy.dev
Staff software engineer @infinite.red. React Native enthusiast. Maintainer MobX-State-Tree.
I write good code and bad jokes. Or wait is it bad code and dad jokes?
A programming language empowering everyone to build reliable and efficient software.
Website: https://rust-lang.org/
Blog: https://blog.rust-lang.org/
Mastodon: https://social.rust-lang.org/@rust
Tech Educator
Dev things @github, yaadie ๐ฏ๐ฒ
I shine brighter on video ๐น โจ๏ธ
blog: https://www.itsthatlady.dev/
Your friendly React Native consulting team! US-based consulting team for 17 years. Creators of Chain React conference & much, much more.
Software Engineer @infinite.red ๐ฑ React Native dude โ๏ธ
Forever-Beginner Artist & Creator ๐จ
Professional Side-Quester ๐ฎ
โ๏ธ๐ฑ๐ซโฅ๏ธ
Also working on:
retrotype.ink
hellomitzi.com
TypeScript nerd โข Open Source (TS-Pattern, HOTScript) โข Teacher โข Staff Eng @datadog
Unleash TypeScript's full potential ๐ http://type-level-typescript.com
Frontend & mobile @ http://swan.io โข author of react-native-(permissions | localize | bootsplash | edge-to-edge)
Working on expo.dev, attempting to play guitar. Dogs.
NGO Tech Lead
๐งก @svelte.dev ambassador
Astro | DataViz | HomeLab | Vet ๐ซก
๐Berlin
๐ https://fubits.dev
Experimental web frameworks, OSS etc https://github.com/fcrozatier/
Organizer - Summer of Math Exposition https://some.3b1b.co/
Founder - Sciency https://sciency.co/
Teacher - https://www.youtube.com/@captain-carre
Unified tooling for JavaScript
building next-gen terminal tooling for the JS ecosystem
The Whiteboard Guy @warp.dev