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

style guide #30

Open
8 tasks
ylixir opened this issue Feb 10, 2019 · 0 comments
Open
8 tasks

style guide #30

ylixir opened this issue Feb 10, 2019 · 0 comments

Comments

@ylixir
Copy link
Owner

ylixir commented Feb 10, 2019

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
@ylixir ylixir added the backlog label Feb 14, 2019
@ylixir ylixir modified the milestone: reddit Feb 14, 2019
@ylixir ylixir removed the backlog label Feb 17, 2019
@ylixir ylixir added this to the reddit milestone Feb 20, 2019
@ylixir ylixir added the backlog label Feb 20, 2019
@ylixir ylixir modified the milestones: reddit, v0.6.0, v0.7.0 Mar 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant