x/playground: some popup examples aren't worth including #49896
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
The new version of the Go playground includes the following examples:
Some of these are important and useful demonstrations of the playground's capabilities, and useful building blocks for people to use as a starting point for their own examples. In that category, I'd include these:
I believe the other examples are less useful - they add clutter to the useful examples, and some of them demonstrate practices that are theoretically interesting but probably not a good idea in practice. In that latter category I'd include the following:
While the above are all interesting, I don't believe they deserve the privileged place in the playground that they currently occupy. For example, it's common for newcomers to Go to overuse channels in situations that they're not really suited for, and using them in examples like "Concurrent Pi", "Concurrent Prime Sieve" and "Tree Comparison" probably won't help in that regard.
I'd suggest that we restrict the examples in the playground to those that demonstrate playground-specific capabilities or act usefully as building blocks for examples that people might build. In other words, let's remove the above set of examples from the pop-up, please 😃 .
As an alternative, maybe include a link to a page showing other examples with playground links, which would allow each link to be framed by some explanation and could scale to include many more possible examples.
The text was updated successfully, but these errors were encountered: