9 Matching Annotations
- Sep 2023
-
www.digitalocean.com www.digitalocean.com
-
Well-thought-out, idiomatic APIs
-
- Jan 2021
-
github.com github.com
-
Popper for Svelte with actions, no wrapper components or component bindings required! Other Popper libraries for Svelte (including the official @popperjs/svelte library) use a wrapper component that takes the required DOM elements as props. Not only does this require multiple bind:this, you also have to pollute your script tag with multiple DOM references. We can do better with Svelte actions!
-
- Oct 2020
-
github.com github.com
-
The problem is that not all tooling supports adding new dependencies from a transform. The first step is figuring out how this can be done idiomatically in the current ecosystem.
-
-
-
it also allows for more divergence in how people write there code and where they put their logic, making different svelte codebases potentially even more different due to fewer constraints. This last point is actually something I really value, I read a lot of Svelte code by a lot of different people and broadly speaking things look the same and are in the same places.
Tags
- convention
- uniformity
- idiomatic pattern (in library/framework)
- programming: multiple ways to do the same thing
- strong conventions resulting in code from different code bases/developers looking very similar
- consistency
- idiomatic code style (programming languages)
- software development: code organization: where does this code belong?
Annotators
URL
-
-
dylanvann.com dylanvann.com
-
Our custom useEffect is not idiomatic Svelte.
-
-
recoiljs.org recoiljs.org
-
We want to improve this while keeping both the API and the semantics and behavior as Reactish as possible.
-
-
github.com github.com
-
this is a common Svelte idiom for manually invalidating something that might have been mutated without there being a visible = sign somewhere
-
- Sep 2020
-
github.com github.com
-
I don't understand why it just launches the mutation once and then it throws the error Function called outside component initialization, the only way to make it work is to do something like $: result = mutation(...) but it doesn't make sense, I don't want to run the mutation after each keystroke.
-
We’re still working on idiomatic Svelte APIs so this one’s also on our list to figure out what the best way forward is
-