Promote single responsibility principle? #43
pauleveritt
started this conversation in
Ideas
Replies: 1 comment
-
Hrm. I don't think we want to promote any particular code style. Let's let our users decide how to organize their code, I think. (If I were to promote a style, it would not be "one component function per file". That way lies madness, particularly when you're using something like HTMX and writing zillions of tiny tiny components that return partials.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the frontend world, components are encouraged to follow SRP. Meaning: one per file, one test file per component. Do we want to promote (but not mandate) the same?
Or: put all components in
components.py
and same forviews.py
,layouts.py
, etc.?Beta Was this translation helpful? Give feedback.
All reactions