21 Matching Annotations
- Last 7 days
-
medium.com medium.com
-
I wish to define methods within the class they belong to. Using class << self demonstrates that approach clearly — we are defining methods within the actual singleton class scope.
-
- 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.
-
-
github.com github.com
-
Non-blocking suggestion: This is a little more elegant, if you prefer this syntax:
-
-
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
-
-
Personally, I rather like the idea of typing into a field, backspacing to undo what you just typed, and having the field (and form) go back to being pristine. Aside from that aesthetic difference, my definition has the practical implication that it lets you know if you need to save the record or not.
-
And I'm all for not adding a gazillion flags to to an elegant library.
-
-
-
Without elegant ways of expressing loops/iterators (like angular does with directives), the primary way to keep JSX readable thus becomes copying and pasting.
I'm not quite sure I understand this (so until I do, I'm not sure I agree)...
Why does he think copying and pasting is the only way to make it readable? Like he pointed out, you can extract JSX snippets and use loops within JSX. But maybe he means (his previous point), that people often don't do that. Hmm. 
-
-
-
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.
-
-
-
Like they tried so hard to make things easy they didn't care that they weren't elegant or simple.
-
-
-
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]);
-