|
|
|
|
|
by Zababa
1772 days ago
|
|
The part about data is interesting. I remember than in Clean Code, Robert Martin made the distinction between "data structures" (objects that have lots of parameters, few functions) and "objects" (objects that don't have many parameters, lots of functions). The author seems to have rediscovered this distinction here. If people keep rediscovering it, maybe an object is a too abstract building block? Maybe languages should offer a struct/dataclass/record as a basic building block too? |
|
Pretty cool feature IMO: https://docs.oracle.com/en/java/javase/14/language/records.h...