Submission
Style

Style

⚠️

Following the following instructions will save you a lot of time and will speaks well about your reading comprehension. Make sure to take note and to comply.

Unless the language forces you to do otherwise, the source code must comply with the following:

  1. Be in English (even the comments).

  2. Indent using 2 spaces instead of tabs, unless the language requires otherwise.

  3. Lines must not exceed 80 characters in length.

  4. Lines must not contain debug comments left behind.

  5. Function definition must be separated by 1 empty line, unless the linter or the language requires otherwise.

  6. Unless the linter or the language requires otherwise, please always include one space around each side of most binary and ternary operators, such as any of these:

    = + - < > * / % | & ^ <= >= == != ? :

  7. Avoid using var names like x, y, z, i. Instead of that use more useful names, i.e., if x is a constant you can use const_x or something that you prefer

  8. Some languages such as Haskell, OCaml and others have quite a different syntax than other more common languages such as python. So you should find and follow the style guides for these types of languages, however, if possible you must keep the rules set out above.

Embedded code snippets must comply with the following:

  1. Be enumerated. To do so add the parameter linenums to the source block.
  2. Do not have more than 8 lines.
  3. Do not repeat a snippet that has already been used in the guide.
  4. Add the lines of code to the post using a code block, don’t use images.