Skip to content

pouyakary/coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview of Kary Coding Standards

{% hint style="danger" %} You are reading a draft edition of this document. If you found any errors, please report them to kary@gnu.org {% endhint %}

Philosophy

Code is something very pretty. It's a form of art and engineering. Yet, we write codes that look messy and horrible. I believe that codes must look nice and beautiful. When you read them they must show how carefully they were written and how much love was put into writing them. Code must look like candy and art. This standard is one—in a series of attempts—to push the state of beauty and functionality in code.

Core Beliefs

  1. Programmers are no robots, they have hearts and they deserve beauty.
  2. Code is a form of art thus it deserves to be written beautifully.
  3. Code is a Piece of Writing and therefore must have layout and design principles involved in it.
  4. Writing something with care results in higher quality.

Kary Coding Standards is a body of works that contains many standards, designs, beliefs, libraries, languages, and tools to achieve a harmonious state-of-the-art coding standard that respects the four mentioned believes. It is itself also a member of a much bigger umbrella project

{% page-ref page="karys-coding-umbrella.md" %}

Structure of This Document

This document is the documentation and specification of Kary Coding Standards and therefore separated into 3 parts.

Language Standards

These are the specifications of the coding standard for some general languages—starting with web languages for their mass use.

{% page-ref page="languages/javascript.md" %}

{% page-ref page="languages/css.md" %}

Software Tools

The Kary Coding Standards are no easy standards to implement. They put functionality and beauty first and therefore typing efficiency is not a priority. That is because, the standards have their own set of accompanying software that facilitate the heavy formatting and generation of complex statements (such as Kary Comments). The documentation for these tools are also included within this document to make it a coherent and self-contained standard.

{% page-ref page="tools/righteous.md" %}

{% page-ref page="tools/comment-v.md" %}

Kary Comments

Kary Comments are the foundations of this standard and while most languages contain their own rules and specificities, these are shared widely across any language that implements Kary Coding Standard. For better understanding of these comments, there is a series of short articles explaining them.

{% page-ref page="comments/introduction.md" %}

{% page-ref page="comments/sectioning.md" %}

{% page-ref page="comments/reference.md" %}