denoland / denobyexample

[Archived] Deno by example - short examples showcasing how to use Deno. Now the examples have been moved to https://github.com/denoland/deno-docs / https://docs.deno.com/examples

Home Page:https://examples.deno.land/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group articles

hashrock opened this issue · comments

I would like to have categories on the top page for readability. It would be easier to read if there are no more than 7 articles per category.

I asked Bing AI to classify them. Some of the classifications are wrong though.

[It seems like these articles are related to Deno, which is a runtime environment for JavaScript and TypeScript](https://deno.land/)[1](https://deno.land/)[2](https://ja.wikipedia.org/wiki/Deno). I can try to categorize and group them based on their topics. Here is one possible way:

- Introduction: Hello World
- Basics: Logging with colors, Importing & Exporting, Dependency Management, Benchmarking
- Data Formats: Importing JSON, Parsing and serializing JSON, Parsing and serializing TOML, Parsing and serializing YAML
- Encoding & Hashing: Hex and Base64 Encoding, Hashing
- Timers: Timeouts & Intervals
- User Interaction: Input Prompts
- Runtime Information: Getting the Deno version, Permission Management, Process Information, Handling OS Signals
- System Interaction: Environment Variables, Command Line Arguments
- File System: Reading Files, Writing Files, Moving/Renaming Files, Temporary Files & Directories, Creating & Removing Directories, Watching the filesystem, Walking directories, Checking for file existence
- Web Development: Web Workers, Web Assembly, Manipulating byte arrays, HTTP Requests, Running DNS Queries, Generating & Validating UUIDs, Subprocesses: Collecting Output, HTTP Server: Hello World, HTTP Server: Routing, HTTP Server: Streaming, HTTP Server: Serving Files, TCP Listener: Ping, TCP Connector: Ping

Is this what you were looking for?

I would add, "CLI" and "Network". Ideas?

I think that categories are a good idea. I would like to have the following categories:

  • Basics: Hello World, Logging, Importing, Depdenency, Timeouts
  • Encoding (or Data Formats): JSON, TOML, YAML, Hex
  • Cryptography: Hashing, UUIDs
  • CLI: Input, CLI Args, Deno Version, Permissions, Benchmarking
  • System: Process Information, OS Signals, Subprocesses
  • File System: File + Path ops
  • Network: HTTP + DNS + TCP
  • Advanced(?): Web Workers, Web Assembly

Thoughts?

Thank you, I'd like to go with the categories you listed. I'll make PR for it

Curious to see what the design will look like