Namchee's Avatar

Namchee

@namchee.dev

18
Followers
101
Following
41
Posts
07.02.2024
Joined
Posts Following

Latest posts by Namchee @namchee.dev

github.com/eslint/eslin...

It is *wild* how simple that change is for that kind of startup perf boost 😍

28.04.2025 17:55 👍 5 🔁 2 💬 1 📌 0

Main reason why I wrote this is because I've tried this API for a work-related task before, but it didn't work out at all.

Reasons explained in `Is It a Navigation?` section

29.04.2025 23:23 👍 0 🔁 0 💬 0 📌 0
Preview
Anchoring To Text Fragment — Namchee Jumping straight to point of interest without element wrapping

After 3 months of not writing anything, finally finished writing a blogpost explaining a rarely used, but prominent 5 years old API: Scroll to Text Fragment

www.namchee.dev/posts/anchor...

29.04.2025 23:22 👍 0 🔁 0 💬 1 📌 0
Post image

Published empathic@1.1 🎉 (benchmarks below)

Many packages are eagerly joining the @e18e.dev effort but (understandably) have existing support restrictions to maintain & so can't make as much progress as they'd like.

This release helps with that~!

(cont.)

29.04.2025 18:50 👍 30 🔁 6 💬 1 📌 1

Beginning the month with yet another corrupted .git folder in my WSL is really great. 3rd times already this year.

Really wonder if I should drop WSL completely and switch to pure Linux, especially since Linux gaming is great now.

03.02.2025 14:17 👍 1 🔁 0 💬 0 📌 0
Preview
TypeScript's `--erasableSyntaxOnly` Flag TypeScript adds a new flag to its compiler with version 5.8: --erasableSyntaxOnly. It ensures you won’t use TypeScript features that generate code you haven’t written.

TypeScript's `--erasableSyntaxOnly` Flag

oida.dev/erasable-syn...

03.02.2025 13:44 👍 31 🔁 9 💬 1 📌 2
Video thumbnail

#CSS text-box
a very exciting feature!

available in:
Chrome 133 & Safari 18.2

My post on Chrome Developers:
developer.chrome.com/blog/css-tex...

↪ nerdy.dev/text-box-trim

14.01.2025 21:34 👍 192 🔁 36 💬 13 📌 5
Video thumbnail

New in Chrome 133 – which goes stable on Feb 4 – is a new method to move an element around the DOM.

Unlike the classic way of removing+reinserting a node, this moveBefore method preserves the element’s state!

Iframes remain loaded, animations don’t restart, …

DEMO: codepen.io/bramus/full/...

16.01.2025 09:56 👍 162 🔁 27 💬 4 📌 2

Is this documented somewhere?

15.01.2025 11:58 👍 0 🔁 0 💬 1 📌 0

And now, we can format without having to focus too much on the tools that we use.

I hate when people starts to `pls migrate to Y, X sucks now!` every time these kind of tools comes out.

They're forgetting the main purpose of these tools: make your code great

14.01.2025 15:04 👍 0 🔁 0 💬 0 📌 0
GitDownloads

Lately, we also have eslint-react (www.npmjs.com/package/@esl...), which applies ESLint rules for your React-based projects without being too binded to `react-dom`

14.01.2025 15:03 👍 0 🔁 0 💬 1 📌 0
Preview
GitHub - antfu-collective/ni: 💡 Use the right package manager 💡 Use the right package manager. Contribute to antfu-collective/ni development by creating an account on GitHub.

First, we have Anthony Fu's ni (github.com/antfu-collec...), which makes you ignore package manager wars.

14.01.2025 15:02 👍 0 🔁 0 💬 1 📌 0

It's nice to see the JS ecosystem moving to x-agnostic way.

14.01.2025 15:01 👍 0 🔁 0 💬 1 📌 0
Video thumbnail

🚀 Motion springs into the world of CSS generation.

Generate spring animations with our upgraded, simplified spring() function. With guides for:
- @astro.build
- @vuejs.org
- @react.dev Server Components
And more!

🔗 motion.dev/docs/css

14.01.2025 13:24 👍 112 🔁 8 💬 4 📌 0
Preview
VitePress | Vite & Vue Powered Static Site Generator Vite & Vue powered static site generator.

You can use ranges too! VitePress has integrated a lot of Shiki transformers internally.

vitepress.dev/guide/markdo...

28.12.2024 03:21 👍 1 🔁 0 💬 0 📌 0

need product differentiation?

overhire a #CSS front-end team and ask them to:
- polish whatever
- add delight wherever

and watch as your product becomes smooth and buttery while everyone else's gather dust and crust

UI is a huge space offering differentiation via quality

28.12.2024 00:41 👍 661 🔁 92 💬 35 📌 21
Post image

Day 21. We can (again) extend the previous day functionality.

We can check if an element exist in an array using `extends`

21.12.2024 13:20 👍 0 🔁 0 💬 0 📌 0
Post image

Day 20. We can re-use the parser code from the previous day. But we do need to implement the result object logic.

20.12.2024 09:27 👍 1 🔁 0 💬 1 📌 0
Post image

It's self-review time again

14.11.2024 13:24 👍 234 🔁 24 💬 14 📌 3
Post image

Day 19. The trick here is to parse the line one-by-one and trimming them.

19.12.2024 11:36 👍 0 🔁 0 💬 1 📌 0
Post image

TIL: GitHub has 👍 in issues now.

18.12.2024 14:59 👍 0 🔁 0 💬 0 📌 0
Post image

Day 18. We are dealing with unprovided generics.

The trick is to assert whether the generic is provided or not. If it's not provided, access the array element. Otherwise, return the generic as-is.

18.12.2024 14:03 👍 1 🔁 0 💬 1 📌 0
Post image

Day 17. We can strongly-type the composition and utilities using generics.

To avoid type narrowing for string utilities, we can recast it using string utility types.

17.12.2024 11:59 👍 0 🔁 0 💬 1 📌 0
Post image

Day 16. We can deal with recursion with the help of `ReturnType`

17.12.2024 11:57 👍 0 🔁 0 💬 1 📌 0
Screenshot of code showing autocomplete of links

Screenshot of code showing autocomplete of links

I just published version 1.0 of the astro-typed-links @astro.build integration! It greatly simplifies its usage and DX. Check it out at github.com/florian-lefe...

17.12.2024 09:25 👍 32 🔁 3 💬 1 📌 0
Post image

Day 15. We are dealing with string inference combined with recursions.

Since I don't want to deal with some funny cases, I just implemented hacky helper functions to deal with it (don't do this 😂)

15.12.2024 07:08 👍 1 🔁 0 💬 1 📌 0
Post image

Day 14. We are introduced with AsyncGenerator type which is a signature for generator functions.

To get the return type, we can `infer` it.

14.12.2024 10:43 👍 1 🔁 0 💬 1 📌 0
Preview
GitHub - nvbn/thefuck: Magnificent app which corrects your previous console command. Magnificent app which corrects your previous console command. - nvbn/thefuck

A successor of github.com/nvbn/thefuck?

14.12.2024 10:41 👍 2 🔁 0 💬 0 📌 0

When reviewing a PR, please ensure that your comments and change request are submitted in bulk to avoid context switching.

Over the week, I've experienced this with my colleague and it really stresses me out when after addressing the PR comments, you still see comments popping out for 20 times

13.12.2024 14:51 👍 0 🔁 0 💬 0 📌 0
Post image

Day 13, this one is a bit difficult as we need to understand covariant and contravariant of TypeScript.

To enforce an invariant, we need to apply `out` to enforce contravariance and `in` to enfore covariance to the generic type.

13.12.2024 14:48 👍 1 🔁 0 💬 1 📌 0