Jakub
05/01/2020, 11:22 AMList
. How would you name that class?Rachid
05/01/2020, 11:37 AMJakub
05/01/2020, 11:39 AMEntity
something like
data class List_(
val uuid: String = UUID.randomUUID().toString(),
val name: String = "",
val entries: List<Entry> = emptyList()
)
I’m calling it List_
but smells a bitRachid
05/01/2020, 11:40 AMkotlin.collections.List
David Eriksson
05/01/2020, 11:43 AMRachid
05/01/2020, 11:44 AMRachid
05/01/2020, 11:45 AMNamedList
, because this is a List with a NameRachid
05/01/2020, 11:45 AMdata class NamedList<T>(
val uuid: String = UUID.randomUUID().toString(),
val name: String = "",
val entries: List<T> = emptyList()
)
Jakub
05/01/2020, 11:49 AMNamedWithEntriesAndAttachedList
I’m just so much in love with short names that are not noisy. But drawbacks are when you wanna refactor it in IDE and sometime names conflicts like now 😉Jakub
05/01/2020, 11:49 AMShoppingList
Cheers guys!Rachid
05/01/2020, 12:14 PMJakub Pi
05/01/2020, 4:02 PM