python-thread / thread

A Python threading library extension ⭐️ Star to support our work!
https://thread.ngjx.org
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

TODO: Learn page #90

Open caffeine-addictt opened 10 months ago

caffeine-addictt commented 10 months ago

Feature Request

Your issue may already be reported! Please check out our active issues before creating one.

Is Your Feature Request Related to an Issue?

Thread may appear overly confusing to use, especially for those unfamiliar with python's built-in threading library. At present, there is no examples for usage of thread, providing these examples can help guide first-time developers.

Describe the Solution You'd Like

A '/learn' or equivalent route should be created to provide easy-to-follow and heavily documented examples for using thread.

ShiroTohu commented 10 months ago

Just a thought that I had in passing. Instead of an examples/ route we could implement a learn/ route instead that covers the basics of the python thread module and the thread module. Next.JS utilizes this same approach and I quite liked it when I was learning Next.JS for the website. What's also nice about it is that it covers React as well which reduced the knowledge of entry! so I think it could work wonderfully here as well.

See what I am talking about here.

I could also add a quiz component like seen in Next.JS course!

A '/examples' or equivalent route should be created to provide easy-to-follow and heavily documented examples for using thread.

We can probably cover more heavy concepts in the actual documentation for people more familiar with the base library and the utilities thread provides. We could probably put it under a sub-folder called examples or pair it with the relative methods, whichever is more convenient for reader.

What do you think?

caffeine-addictt commented 10 months ago

Just a thought that I had in passing. Instead of an examples/ route we could implement a learn/ route instead that covers the basics of the python thread module and the thread module. Next.JS utilizes this same approach and I quite liked it when I was learning Next.JS for the website. What's also nice about it is that it covers React as well which reduced the knowledge of entry! so I think it could work wonderfully here as well.

Ah! I didn't think of that. Yes, I agree this would be a better approach. I'll update the initial issue.

We can probably cover more heavy concepts in the actual documentation for people more familiar with the base library and the utilities thread provides. We could probably put it under a sub-folder called examples or pair it with the relative methods, whichever is more convenient for reader.

I guess it would make more sense to keep the examples simple. We could instead provide links to the more in-depth documentation.

Perhaps something of this structure?

/
  -> /about
  -> ...
  -> /learn
      -> /[slug] (Links to [/slug])
  -> /[slug]
ShiroTohu commented 10 months ago

I guess it would make more sense to keep the examples simple. We could instead provide links to the more in-depth documentation.

Yep! I think that idea. As for the structure you mentioned, take a look at the example pages below.

Example in the tutorial


More in-depth example

[!IMPORTANT]
Just want to point out that the documentation will not look like the second picture of course. Just a placeholder :)

caffeine-addictt commented 10 months ago

Yea! I believe we are on the same page 👍🏻

caffeine-addictt commented 10 months ago

Which library are you using for syntax highlighting? react-syntax-highlighter/prisma?

ShiroTohu commented 10 months ago

Which library are you using for syntax highlighting? react-syntax-highlighter/prisma?

I'm unsure how to find out.

I haven't touched anything pertaining to syntax highlighting on my end. So I don't really know what to look for.

caffeine-addictt commented 10 months ago

Ah!! I see.

caffeine-addictt commented 8 months ago

I'm thinking we should still include a /learn/examples route, but just have it be for getting a quick-start.

This way, we could encapsulate all the examples and learning within /learn without a /getting-started etc.

Something like this perhaps?

/
  -> ...
  -> /learn
      -> /examples
          -> /[slug]
      -> /[slug] (Links to [/slug])
  -> /[slug]

A mockup of what I have so far image

caffeine-addictt commented 8 months ago

I'll go ahead and abstract the cautions to its own /learn/cautions page.