Common Package Schema #1541
Replies: 4 comments 5 replies
-
Given that its a major component of a current module should we have some preset schema for the major component as well? Its mentioned later in the doc that "A topic is a major component that requires its own module hiearchy to properly document." I am just not seeing from the schema how we assign the the module hierarchy to the topic.
800 seems like quite a large number to set for refactoring a section of the notes |
Beta Was this translation helpful? Give feedback.
-
The goal with this schema - any developer that is familiar with this schema should be able to know where to go to get documentation on working with the code base (it could be that the documentation doesn't exist but at least, they would know its not there vs being buried somewhere else) |
Beta Was this translation helpful? Give feedback.
-
Some areas to expand on:
|
Beta Was this translation helpful? Give feedback.
-
Should we move
To dev from qa? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
With Dendron, it is possible to effectively externalize knowledge so that individuals and organizations can rely on a shared mental model (aka schema) for referencing knowledge.
The following is the module schema which we use to organize code at Dendron. It is very much a work in progress and we welcome any and all suggestions.
Schema
Wildcards
Wildcards are nodes that can be put as the children of anything. They can also live as sections inside a note
Nodes
Types
Wildcard as Child of Note
Wildcard as Section of Note
Choosing betwen Child vs Section
Following the [[Amoeba pattern|dendron://dendron.dendron-site/dendron.workflows.amoeba]], wildcards should start of as sections of existing notes. If the content needs to be used in multiple places or exceeds 800 lines of text, it should be refactored into a child
Ref vs Topic
A topic is a major component that requires its own
module
hiearchy to properly document. For example, [[Lookup|dendron://dendron.dendron-site/pkg.plugin-core.t.lookup]] is a topic ofplugin-core
.A reference is a minor component that should hang as a leaf and should be self contained. For example, [[Decorations|dendron://dendron.dendron-site/pkg.plugin-core.ref.decorations]] is a reference in
plugin-core
because it is specific to VSCode.Examples of using the schema
How do I get started developing?
{module}.quickstart
How do I write or read logs?
{module}.ops.logs
How do I handle errors?
{module}.ops.errors
How do I create a new {X} in {Y}?
{module}.dev.cook
Architecture
What is lifecycle of a given command?
{module}.arch.lifecycle
Testing
How do I write a test?
How do I debug a test?
Beta Was this translation helpful? Give feedback.
All reactions