23 Matching Annotations
- Jan 2024
-
gitlab.com gitlab.com
-
Another example are issue boards. They represent elegant use of a good infrastructure — it is all just a smart use of labels. It would be very complex feature without the use of labels.
-
- Jan 2022
-
-
Having a consistent and predictable pattern is key to the elegance.
-
That's like the example i wrote, and i think it's very ugly. It's annoying when frameworks are very elegant in demos and presentations but then that elegance disappear when you have to write real world code.
-
- Nov 2021
-
svelte.school svelte.school
-
this action is re-usable. Anytime you want a typewriter effect added to an element, you just import the function and apply it. So elegant.
-
- Jul 2021
-
www.sitepoint.com www.sitepoint.com
-
SvelteKit offers a very elegant solution for this — the load function. The load function can run both on the client and on the server side and in both cases will be executed before the component renders.
-
-
stackoverflow.com stackoverflow.com
-
You can do this elegantly with throw/catch, like this:
-
In most languages, there is no clean equivalent for breaking out of a recursive algorithm that uses a recursive function. In Ruby, though, there is!
-
-
medium.com medium.com
-
Bash is a wonderful and terrible language. It can provide extremely elegant solutions to common text processing and system management tasks, but it can also drag you into the depths of convoluted workarounds to accomplish menial jobs.
-
- Mar 2021
-
github.com github.com
-
The way we do it currently is by calling load from inside of load, via different "pipelines" and processors which is quite elegant and completely impossible to work with.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
Adding ends to an activity is a beautiful way to communicate more than two outcomes to the outer world without having to use a state field in the ctx. It also allows wiring those outcomes to different tracks in the container activity.
-
-
dry-rb.org dry-rb.org
-
Monads provide an elegant way of handling errors, exceptions and chaining functions so that the code is much more understandable and has all the error handling, without all the ifs and elses.
-
-
jrsinclair.com jrsinclair.com
-
blog.logrocket.com blog.logrocket.com
-
One thing I really like about this style is the elegance and readability it provides to your codebase.
-
-
github.com github.com
-
It requires an account to update, but the other inputs are optional. If they're missing, it'll ignore those attributes. If they're present, it'll update them.
-
-
-
Universal Links allow you to register a series of domains that are allowed to interact with an installed application. If the application is not installed, the universal link is opened with Safari, allowing you to inform the user of the existence of an application or whatever is necessary.
-
- Nov 2020
-
guides.rubyonrails.org guides.rubyonrails.org
-
A resource route maps a number of related requests to actions in a single controller.
-
- Oct 2020
-
github.com github.com
-
-
But this is starting to become rather verbose at what could be a much simpler and more elegant solution if only there were another template helper that could do variable assignment.
-
-
-
Here's a proxy store I wrote to derive the value of a store nested within other stores, it plays nice with typescript and can go infinitely deep
-
- Jul 2020
-
rails.lighthouseapp.com rails.lighthouseapp.com
-
Just ran into this problem myself and will work around it less elegantly for now.
-
- Dec 2019
-
requests.readthedocs.io requests.readthedocs.io
- Nov 2019
-
stackoverflow.com stackoverflow.com
-
This is the most elegant.
-
More elegant, just for fun: const parents = node => (node.parentElement ? parents(node.parentElement) : []).concat([node]);
-