Advertisement Β· 728 Γ— 90

Posts by Namchee

github.com/eslint/eslin...

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

11 months ago 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

11 months ago 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...

11 months ago 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.)

11 months ago 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.

1 year ago 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...

1 year ago 31 9 1 2
Video

#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

1 year ago 192 36 13 5
Advertisement
Video

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/...

1 year ago 161 27 4 2

Is this documented somewhere?

1 year ago 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

1 year ago 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`

1 year ago 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.

1 year ago 0 0 1 0

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

1 year ago 0 0 1 0
Video

πŸš€ 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

1 year ago 112 8 4 0
Advertisement
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...

1 year ago 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

1 year ago 658 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`

1 year ago 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.

1 year ago 1 0 1 0
Post image

It's self-review time again

1 year ago 234 24 14 3
Post image

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

1 year ago 0 0 1 0
Post image

TIL: GitHub has πŸ‘ in issues now.

1 year ago 0 0 0 0
Advertisement
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.

1 year ago 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.

1 year ago 0 0 1 0
Post image

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

1 year ago 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...

1 year ago 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 πŸ˜‚)

1 year ago 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.

1 year ago 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?

1 year ago 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

1 year ago 0 0 0 0
Advertisement
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.

1 year ago 1 0 1 0