Open kdheepak opened 1 month ago
We should solicit more input from users on what kinds of examples they find useful.
I was thinking about the same today - a good place for this might be to add a small comment box on the website - e.g. if we move the examples to the website (https://github.com/ratatui-org/ratatui-website/issues/619) then that becomes a good place to solicit info. A simple thumbs up / down / with a textbox that posts to a kv store on cloudflare might be enough for this. There were also some suggestions just today on hn about feedback form approaches https://news.ycombinator.com/item?id=40524501
I refactored the list example in #1159 quite a bit.
I've been reading the bevy docs, and examples quite a bit recently, one thing I noted was that they have a bunch of examples on the same topic, some simple, some more advanced. I'd caution against making everything simple or converting it into a tutorial, as there's a lot of work going from example to tutorial well. I'd say a good middle ground would be webpages that have
Problem
On discord, we mentioned there was an issue with examples being inconsistent. I wanted to open an issue to track it.
Some of my thoughts are below. I think we need a few different kinds of examples:
As an example, compare
examples/paragraph.rs
andexamples/list.rs
. IMO,paragraph.rs
falls under the category of showing features of theParagraph
widgetlist.rs
falls into the category of showing how to build a simple TODO application on top of theList
widget while showcasing theList
andListState
functionality.There's a complexity difference between these two categories.
Suggestions:
Perhaps the
list.rs
example works better as a tutorial than an example?Examples that fall into category 1 should make it extremely easy for anyone to experiment with different features offered by said widget in Ratatui. To debug a problem on discord, I tried to start with the
list.rs
example but found it was too complicated to experiment with, and it was faster to write the following from scratch:We should solicit more input from users on what kinds of examples they find useful.