Dave Leeds
01/15/2018, 8:40 PM- Property declarations and initializer blocks
- Secondary constructors
- Method declarations
- Companion object
Do not sort the method declarations alphabetically or by visibility, and do not separate regular methods from extension methods. Instead, put related stuff together, so that someone reading the class from top to bottom would be able to follow the logic of what's happening.
I’m looking for thoughts on location of private extension properties. Would you tend to put them:
1️⃣ With the regular properties of the class
2️⃣ Near the functions that use them
3️⃣ Somewhere else (please specify)Dave Leeds
01/16/2018, 7:22 PM