Settings

Theme

I made a Promise-aware debounce and throttle library for TypeScript

github.com

14 points by slimy74 9 hours ago · 10 comments

Reader

benoau 5 hours ago

Very nice. I've become addicted to using the `openapi-typescript` libraries to ingest type definitions and then `openapi-fetch` for an automatically-typed client, your debounce library slots over it while preserving all the typing and IntelliSense information.

game_the0ry 6 hours ago

Anyone else notice that debounce is a popular FE interview question?

  • nozzlegear 5 hours ago

    It's one of those things that shows you know the basics of frontend, but is still easy to get wrong.

jonchurch_ 5 hours ago

Im curious OP, what was the specific callsite (not overall category) that made you write this library? What did the code look like before/after you used this library?

And in that callsite, what were you doing with the resolved value?

f8ght 5 hours ago

cool but maybe rename it to something more catchy and memorable...ok i will propose new name: dab.js

mpalmer 6 hours ago

The README is slop, so I truly don't care.

  • nozzlegear 5 hours ago

    I don't like sloppy readmes either, but this one doesn't seem that. It's verbose but it's just documenting the API. There's no obvious LLMisms like "Why you should use this (the honest part)" or "Debouncing (the part that matters)".

  • game_the0ry 6 hours ago

    Most people can't tell the difference. Entertain the possibility that you might be one of them.

  • infinite_spin 6 hours ago

    > Don't be curmudgeonly. Thoughtful criticism is fine, but please don't be rigidly or generically negative.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection