Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

style guide #30

Description

@ylixir

document style things

  • include const definitions for static functions
  • snake case for functional code
  • camel case for oop code
  • functional code should be static functions with no state, or invokeable classes with no state, or anonymous functions
    • specifically not allowed are namespaced functions
  • everything should be in alphabetical order: includes, functions, array keys, etc
  • rename test providers to make them alphabetized
  • objects should never mutate
  • corollary to no mutation is that constructors are always private/protected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions