Namchee's Avatar

Namchee

@namchee.dev.bsky.social

17 Followers  |  101 Following  |  41 Posts  |  Joined: 07.02.2024  |  1.9554

Latest posts by namchee.dev on Bluesky

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 โ€” ๐Ÿ‘ 164    ๐Ÿ” 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

@namchee.dev is following 19 prominent accounts