I have a question, if I would be committing bad pr...
# announcements
f
I have a question, if I would be committing bad practices in a case: Sometimes I have to create some objects that I only use in 1 class. With Kotlin I can create them as
data objects
and make it less verbose(1 line) and save it in the same file of the class or view. Experiences with these cases and suggestions? Possible Errors? PD: In Java separated it from the file as it is a rather verbose language, I'm testing this approach with Kotlin. Sample Code:
Copy code
data class InputChooseFolder(val label: Label, val input: TextField, val btnFolder: Button){}
class Portal : View {
   // call InputChooseFolder() constructor
}