Skip to content

Latest commit

 

History

History
127 lines (80 loc) · 2.65 KB

ProgrammingStandards.md

File metadata and controls

127 lines (80 loc) · 2.65 KB

Programming Standards

Table of Contents

General Strategies

Branches

  • one feature/fix per branch
  • branch often

Push Commits often

  • Your own branch is yours to break

Pull Request Strategy

Have Fun!

And when in danger remember this! Solution to danger/stress

Folder Expectations

Client Side Source code

  • goes in ./frontend

Tests

  • goes in ./frontend/test

Integration Tests

  • goes in ./frontend/integration_test

Server Side Source code

  • goes in ./backend/src/main

Service side test code goes to

  • './backend/src/test'

Documentation standards

Please note the intended flow in a markdown file under the same directory as the source code.

Merge Requests

Make the title relevant to the change

When creating the merge request please make a change log of what changes you had made. This could be in list form.

Branch Naming Convention

When making future branches please follow one of the standards that matches for example spr$(num)/branch would be for sprint 1 spr1/branch

For Features

  • spr$(num)-feature/some-descriptive-title

For Bugfix

  • spr$(num)-bugfix/some-descriptive-title

For Refactor

  • spr$(num)-refactor/some-descriptive-title

Programming naming conventions

Classes

  • Please UpperCamelCase
  • Capitalize the first letter of each word
  • Examples: MyManager or MyLife

Methods

  • Use camelCase
  • first word lowercase every subsequent word first letter is capitalized
  • Examples: getLot, getMySanity, getAnswerToLifeUniverseEverything
  • Please ensure the name is descriptive.

Variables

  • Use camelCase
  • first word lowercase every subsequent word first letter is capitalized
  • Examples: lotId, spaceNumber
  • Please ensure the name is descriptive.
  • Ensure variables are declared at start of method or file

Constants

  • Use SCREAMING_SNAKE_CASE
  • all letters are capitalized and spaces are underscores
  • Example: WHY_ARE_YOU_YELLIING, THE_DOCS_TOLD_ME_TO

Final Notes

  • Try to keep name length semi reasonable.

Important note

  • Please have fun!