From 37ea0c0496893b98d63e43c72fe75699b2237242 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 3 Jul 2022 17:28:22 -0500 Subject: [PATCH] Update: Add Design and Principles pages. This prepares the website for the additional documentation on the FLL project. Many of the text files from the "documents" directory will be transcribed into pages under this. One such example would be the style_guide.txt file. Includes miscellaneous changes. Update the sources, preparing another website download package as of this commit. --- distributions.html | 2 +- fll.html | 3 + fll/design.html | 200 ++++++++++++++++++++++++++++++++++++++++++++++++ fll/specifications.html | 106 ++++++++++++------------- sources.html | 2 +- 5 files changed, 258 insertions(+), 55 deletions(-) create mode 100644 fll/design.html diff --git a/distributions.html b/distributions.html index ac4c804..36d76c7 100644 --- a/distributions.html +++ b/distributions.html @@ -110,7 +110,7 @@
-
+

About Releases and Scripts

diff --git a/fll.html b/fll.html index e8633cf..2ae0a21 100644 --- a/fll.html +++ b/fll.html @@ -61,6 +61,9 @@ +
-

+

The Featureless Linux Library defines several standards for use in this project. Many of these standards are defined via the Featureless Settings Specifications. Most of these are focused on settings files (configuration files) but are written general enough to support a wide range of uses. The original project that the FLL project is built around is the Featureless Make program, also called Fake. The Fake program is a great example on how the FSS are intended to be used.

-

+

The standards are not limited to those defined in the FSS. There are the IKI standards (which is not an acronym). The term IKI plays off of the term Wiki. The IKI standard is intended to have simpler syntax than a Wiki syntax and is used in several FLL projects and even inside standards defined by FSS.

@@ -162,10 +162,10 @@
-

+

The Featureless Settings Specifications describe a set of standards designed around the age-old design principle referred to as Keep It Simple Stupid, aka KISS. The FSS are primarily intended for settings files but are extensible enough to be used beyond that.

-

+

The FSS defines the following:

    @@ -178,7 +178,7 @@
  • The settings files are setup so that they should (reasonably) produce easy readability on both the console and in a GUI.
  • The specifications should strive for completeness (see the Completeness Theorem).
-

+

The most basic form of FSS consists of two main parts: an Object and the Content.

@@ -191,12 +191,12 @@
The data associated with a given Object; all Content must have an associated Object.
-

+

Objects and Contents can include any characters allowed by the specifications. The specification may choose how a given Object or Content are represented and parsed. For example, in fss-0000 (Basic), Content is treated as a single item whereas in fss-0001 (Extended), Content is broken apart in multiple sub-parts.

-

+

Contents may be broken up into zero or more discrete sets of Content. Each of these discrete sets of Content are referred to as a column. These columns do not need to be setup in a column structure, the word column is simply used as a grouping terminology. @@ -204,11 +204,11 @@ For example, in fss-000 (Basic) the entire Content may be further represented as a single column. For example, in fss-001 (Extended) the entire Content may be further represented as multiple columns.

-

+

In all cases, specifications that separate Objects from Contents using white space, the first white space separating the Object and Content must not be considered part of the Object nor part of the Content. All spaces after the first separating white space is generally ignored until the first non white space character is found, unless otherwise specified.

-

+

Unless otherwise specified, all specifications are newline sensitive (\n only). Newline characters are only \n and are never anything else (\r is not considered newline in any manner). These specifications refer to characters that have printable representation as printable. @@ -221,21 +221,21 @@ In terms of processing, it is recommended that the NULL character is not considered the end of a string, but this is only a suggestion. Any specification may chose to limit, restrict, or otherwise prohibit special Unicode characters such as combining characters or zero-width characters.

-

+

Unless otherwise specified, newlines designate the potential start (or end) of an Object or Content.

-

+

Unless otherwise specified, white space may exist to the left of the start of Objects. Unless otherwise specified, white space may exist to the right of the end of Objects, but only if that given Object is properly quoted and the white space is after the terminating quote but before any Content.

-

+

Unless otherwise specified, white space immediately both before (and after, outside of the terminating quote) an Object is not considered part of the Object. This simplifies identifying the object, use quoted Objects to support white space before/after an object for styling purposes.

-

+

Unless otherwise specified, quotes may only be either a single quote ' or a double quote " and only a backslash \ may be used as a delimiter.

-

+

For example, fss-0000 (Basic):

-

+

Unless otherwise specified, character/data delimits are performed only when required and not unilaterally. In the case of Objects, delimits would only apply when that Object could be potentially identified as an Object. For example, fss-0001 (Extended) needs quotes to group parts that include spaces, if there is no initial quote, then a quote following the data must not be delimited.

-

+

Such as these following three lines:

 "Object 1" "This is a single quoted Content." \"Additional unquoted Content."
 Object_2 This is multiple" Contents and the trailing quote does not need to be delimited.
 "Object \"3" 'Wouldn't require delimits if no white space or end of string after.'
 
-

+

Unlike this specification, a more traditional delimit process would have the above three lines instead represented as:

 "Object 1" "This is a single quoted Content." \"Additional unquoted Content.\"
 Object_2 This is multiple\" Contents and the trailing quote does not need to be delimited.
 "Object \\"3" 'Wouldn\'t require delimits if no white space or end of string after.'
 
-

+

These examples would resolve as follows:

 1) Object\:
@@ -295,12 +295,12 @@ Object_2 This is multiple\" Contents and the trailing quote does not need to be
    Content\:
   - Wouldn't require delimits if no white space or end of string after.
 
-

+

All specifications are expected to support or be of the character encoding UTF-8; however, there is no imposed restriction on supporting or using any other encoding. Those encodings must only support the appropriate characters required by a given standard for differentiating Objects, Contents, and delimits. All specifications do assume ASCII and Unicode support.

-

+

Unless otherwise specified, comments are designated by the pound symbol # but only if only white space is to the left of the pound or the pound # is at the start of the line. There is no support for inline comments. Unless otherwise specified, the start comment may be delimited by " in the same manner as Objects and Contents are. @@ -308,7 +308,7 @@ Object_2 This is multiple\" Contents and the trailing quote does not need to be A line containing a valid comment is in its entirety ignored. This means that if there is white space before the designation symbol (the pound # character) then that white space is ignored.

-

+

Unless otherwise specified, all designation characters must represent ASCII codes. With designation characters being any character code used to designate how to identify an Object or Content (such as a colon : at the end of a basic list). This keeps the processing and logic simple and safe, for both UTF-8 and ASCII. @@ -316,25 +316,25 @@ Object_2 This is multiple\" Contents and the trailing quote does not need to be However, these white space used as a designation character, must be printing white space that are not combining white space characters. Any visible/graph character that is considered a white space (such as U+1680  ) is not to be considered a white space, unless otherwise specified.

-

+

When used for syntax matching purposes, zero-width Unicode characters are only to be considered zero-width unless otherwise specified. For example, the invisible plus character (U+2064) is not to be considered as a plus.

-

+

The UTF-8 BOM is not allowed as a Byte Order Mark; instead, it must always be treated as the character represented by its code (unless explicitly allowed to represent a BOM by a standard).

-

+

The only Unicode dash-like characters allowed as a dash are those intended to connect, such as the Unicode hyphens (U+2010 and U+2011) (unless otherwise specified).

-

+

In any specification where security is intended, if there exists a Unicode character that matches an ASCII character, that Unicode character may be prohibited by that standard in favor of the ASCII equivalent. One such example is in the case of a URL, where the name could be used to trick a person (http://this-site.com/ vs http://this‐site.com/). This (potential insecure behavior) is allowed in general because a well written program would be able to detect and communicate the possible misunderstanding and thereby avoid mistakes without imposing any character restrictions.

-

+

This is a common behavior for security reasons, each character used for any special purposes must be visibly distinct, with white space and non-printing characters as the exception to the words visibly distinct.

-

+

The following are core specifications (each with a common name associated with the specification number):

    @@ -364,32 +364,32 @@ Object_2 This is multiple\" Contents and the trailing quote does not need to be
    -

    +

    IKI is a minimally structured WIKI-like syntax meant to be simpler than WIKI syntax.

    -

    +

    The IKI syntax provides a vocabulary name (with specific context associated with it) followed by quoted code that is associated with the given vocabulary name. The vocabulary represents a list of allowed variable names that may also have specific contextual meaning defined by a given IKI specification. The variable name is considered the Object. The variable value is considered the Content.

    -

    +

    The IKI format will use iki-0000 to represent an IKI with no explicitly defined vocabulary. Whereas iki-0001 and beyond represent a specific IKI vocabulary.

    -

    +

    A potential IKI variable name starts on word (or _, -, +) characters. White space and non-word (and non _, -, +) character punctuations may not exist as part of the variable name. The only Unicode dash-like characters allowed as a "dash" are those intended to connect, such as the Unicode hyphens (U+2010 and U+2011).

    -

    +

    Any valid IKI data may be escaped to make it treated as non-IKI data by prepending a backslash " before the colon code::" that is before the opening quote (single or double).

    -

    +

    Unicode punctuation connector characters are supported just like _, except when they connect outside the current line (such as U+FE33 ︳). Unicode invisible punctuations (such as invisible plus: U+2064) are not considered a punctuations in this standard (because they a zero-width characters), therefore they are not to be considered a valid _, -, or + Unicode equivalents.

    -

    +

    Key:

      @@ -402,25 +402,25 @@ Object_2 This is multiple\" Contents and the trailing quote does not need to be
    • * = zero or more occurrences.
    • ~ = one or more occurrences, or zero if at start of file.
    -

    +

    Before Structure:

    • \x*\W~\*:*
    -

    +

    Structure:

    • \o\e:\q\c\q
    -

    +

    After Structure:

    -

    +

    Example File:

     # fss-000c iki-0000
    @@ -435,7 +435,7 @@ Quotes may be included, such as: code:"const char *string = \"My \\\"quoted\\\"
     
     The following emphasis\:"is escaped to not be treated as IKI data".
     
    -

    +

    Example Results:

     Objects would be:
    @@ -448,7 +448,7 @@ Contents would be:
       2.1) http://www.example.com/url with space/
       3.1) const char *string = "My \"quoted\" C string.";
     
    -

    +

    The following are core specifications (each with a common name associated with the specification number):

      @@ -465,34 +465,34 @@ Contents would be:
      -

      +

      The Completeness Theorem represents an informal theory by Kevin Day focusing on how software should be complete. The theory has not been formalized and the following is a basic explanation. A formal definition may be provided in the future.

      -

      +

      When developing software, one should not program for the minimum requirements. Instead, one should consider the scope of the project and its intended design. Taking that into consideration all functionality needed to achieve this should be considered and implemented.

      -

      +

      The most common misconceptions about this theorem is that it is not about writing all possible combinations, permutations, possibilities, etc. In fact, it is more accurate to say the opposite. The key focus is figuring out what the scope and intended functionalities are and make sure to achieve those.

      -

      +

      This does not conflict with KISS but instead complements it.

      -

      +

      If this is not clear, then consider thinking of things this way. The KISS focuses on keeping the design and process simple. The Completeness Theorem focuses on making sure the design is complete.

      -

      +

      Now if, say a car, is designed to follow KISS but violates the Completeness Theorem, then that car could be built without doors. Not having doors simplifies the car. It is much simpler and easier to get in and out of.

      -

      +

      Using that example, a car designed to follow both KISS and the Completeness Theorem would have doors.

      -

      +

      To better understand the Completeness Theorem, again take the car example. If the car is intended to be used only in say photo shoots and is not in any way intended ever to be used, then as per the Completeness Theorem, the car would not need an engine. Whereas a car designed and intended to be used that does not have an engine would fail to follow the Completeness Theorem.

      -

      +

      The Completeness Theorem is subjective and is intended to be used as a guide.

      -

      +

      The Completeness Theorem asserts that perfection is impossible and pointless and one must instead understand what is necessary to complete the project rather than to handle all possibilities. Simply because perfection isn't possible doesn't mean one must lower their standards or have no standards. Determine what is or is not needed to complete the project and meet that rather than meet less than that.

      @@ -546,13 +546,13 @@ Contents would be:
      A Web Service Interface is a new term created so that this project can more appropriately communicate the concept of a web service. A Web Service Interface describes the interface in which to communicate to and receive response from a web service and is described by or adheres to some web protocol.
    -

    +

    Based on this terminology, a standard is the representation of some set of rules and guidelines, however it is the specification that actually defines and describes those roles. The last 'S' in FSS can therefore be used to represent either "standard" or "specification" in casual speech. Given that an implementation is not a standard, an implementation can deviate from the standard (or the specification of some standard). Such deviations do not alter the standard nor do they alter the specification.

    -

    +

    Good documentation practices suggest the documentation of an implementation. It is very easy to confuse the specification of an implementation of some standard with the specification of the standard itself. This has happened several times in history where some implementation violates the standard but despite being non-standard that implementation becomes popular. When the specification of that, now non-standard, implementation becomes popularized, those properly following the specification of the standard tend to suffer.

    -

    +

    This project encourages deviations from the standards and such actions are allowed and protected by the copyright licenses. However, this project discourages communicating compliance of some standard when something is, in fact, not compliant. Problems in the interpretation of a standard fall under communication problems and are not considered deviations from the standard even though it may technically be a deviation. It is for these reasons that the terminology has been explicitly defined, clarified, and presented on this page.

    diff --git a/sources.html b/sources.html index 39f2e26..0b4a905 100644 --- a/sources.html +++ b/sources.html @@ -150,7 +150,7 @@ The following is the link:

    Most of the changes for this website are also made publicly available through repositories hosted on third-party websites and services. -- 1.8.3.1