Here’s the recommended class layout from the codin...
# codingconventions
d
Here’s the recommended class layout from the coding conventions document:
Copy code
- 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)
2️⃣ 12
👍 Thanks all!