Skip to content
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

Questions: local development #67

Open
maudnals opened this issue Dec 27, 2020 · 0 comments
Open

Questions: local development #67

maudnals opened this issue Dec 27, 2020 · 0 comments

Comments

@maudnals
Copy link

maudnals commented Dec 27, 2020

I see the (great!) developer guide suggests two ways to experiment with a new feature locally.
You can get started experimenting with the new feature on localhost either by flipping the flag locally or requesting an origin trials token for localhost.

Two questions:

  1. What are pros and cons of the two ways? When would you recommend each approach? What about third-party origin trials, does this change anything?
    Things I could think of:
  • Benefits of localhost tokens over flags:
    • Token can be shared across a team. No need to replace the token when checking out the code of a small prototype (one gotcha though: port- and protocol-dependent)
    • No need to restart the browser / turn flags on and off
    • Work across Chrome and Edge without extra setup
  • Benefits of flags over tokens:
    • Faster to set up
    • Easier to troubleshoot / No troubleshooting: "if a flag is in chrome://flags and I activate it, the feature will be on" (vs.: if I'm using an expired flag, I'll need to troubleshoot this).
  1. Do you think it would be useful to add a brief "When to use flags and when to use a localhost token for local development" in the developer guide under how-can-i-experiment-with-the-new-feature-locally? Or to highlight with a one-liner the one benefit of each approach?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant