2 Matching Annotations
- Oct 2020
-
-
About the argument against it, "{@const will make code less consistent ": I think the same is true now, since people can come up with very different ways of dealing with the "computed value inside each loop/if function" problem. Some extract components, some use functions, some will prepare the array differently beforehand.
-
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
- programming: multiple ways to do the same thing
- convention
- Svelte: @const
- uniformity
- different way of solving/implementing something
- strong conventions resulting in code from different code bases/developers looking very similar
- idiomatic code style (programming languages)
- consistency
- software development: code organization: where does this code belong?
- idiomatic pattern (in library/framework)
- good point
Annotators
URL
-