-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[post frontend-backend split] Discuss names for new types / functions #263
Comments
Some thoughts:
|
Thanks for your thoughts!
That makes sense!
Regarding that, I'm afraid of confusing the developer when working with the codebase, because they may see a
What I mean is that currently we have these:
where the
And I think the latter is better. Even though |
@ed255 |
With the frontend-backend split, new types and functions have been introduced that mirror existing functions and types. Let's discuss the best naming for those.
This is the status of the initial frontend-backend PR:
Split VS Non-Split API
New middleware types (not mirroring)
Simplified types that mirror types that have frontend/backend specific behaviour
Some initial discussion:
As you can see, the current naming is not fully consistent, so it can be improved!
Discussion 1: Suffixes or not? Since the mirrored types live under different paths, we could use colliding names. For example we could have
This has the benefit of not having to agree on the suffix to use, but it has some drawbacks:
use ..::Gate as GateMid
Gate
it's not clear which one it isConsidering these drawbacks, I think it's better to use suffixes
Dicussion 2: For all the types that are mirrored -> simplified, use the same prefix when they appear in the
middleware
. For example all mirrored types undermiddleware
(seen in the 3rd group list) would haveMid
as suffix, or another suffix we agree upon. SoArgumentV2
would beArgumentMid
and so on. Can you think of a better suffix?Discussion 3: Non-split VS split API. Should we distinguish the new API with some suffix? Usually code will either use the old API or the new API, not both, so I think it's viable to have this, without being confusing:
Blocked by #254
The text was updated successfully, but these errors were encountered: