Skip to content

Instantly share code, notes, and snippets.

@mattstauffer
Created September 14, 2020 21:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattstauffer/1178946cb585b17a3941dd0edcbce0c4 to your computer and use it in GitHub Desktop.
Save mattstauffer/1178946cb585b17a3941dd0edcbce0c4 to your computer and use it in GitHub Desktop.
Tighten Handbook Class Order

Extracted for the benefit of non-Tightenites.


Class "things" should be ordered as follows:

  1. Traits
  2. Statics properties
  3. Constants
  4. Instance properties
  5. Constructor
  6. Static methods
  7. Instance methods
  8. Other magic methods

Note: (public before protected before private) applies to relevant categories above.

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