13 Matching Annotations
- Feb 2021
-
www.schneems.com www.schneems.com
-
Another thing I don’t like: our asset behavior is decoupled from the assets. If you’re mucking around in your app/assets folder, then you have to first know that such a config exists, and then hunt it down in a totally different config folder. It would be nice if, while we’re working in asset land, we didn’t have to mentally jump around.
-
- Dec 2020
-
www.npmjs.com www.npmjs.com
-
Keep your patches colocated with the code that depends on them.
-
- Nov 2020
-
developer.ibm.com developer.ibm.com
-
in which business logic (JavaScript) is collocated with styles (CSS) and markup (HTML-like templating syntax).
-
-
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
-
In some cases, I could also create a component without any <script> tag at all. So in that way, I could actually bulk up the logic in one place if I could get some help from the #with block.
-
-
github.com github.com
-
Separately, I wondered about having a central registry of warnings, since they're a bit scattered around at the moment. That way, we could check that someone wasn't trying to ignore a non-existent warning.
centralized
-
-
-
I'm also persuaded by the arguments that it will be easier to track stuff down by co-location.
-
I also think this would be great in terms of colocation. If I need some intermediate result I no longer have to jump between script and markup.
-
I'm persuaded that co-locating just this one type of logic will be useful.
-
I like this, mostly because it allows me to write small components without creating another separate sub-component for holding the value simple computation. I get annoyed every time I need to create a component just to hold a variable, or even move the computation away from the relevant location. It reminds me of the days where variables in C had to be declared at the top of the function.
-
-
-
When I say that my experience is that it means it's time to split up your components, I guess I mean that there tends to be a logical grouping between all the things that care about (for example) sqr_n, and in Svelte, logical groupings are expressed as components.
-
- Sep 2020
-
github.com github.com
-
Because of that, it's easy to end up in a situation where the styles for a given piece of markup are defined far away (in terms of number of lines) from the markup itself, which reduces the advantage of having styles and markup co-located in the first place.
-
-
css-tricks.com css-tricks.com
-
Keeping the CSS with the HTML for organization may have value however.
-