
Clean Code – Objects vs Data Structures
Coding Blocks
00:00
Objects and Data Structures, Right?
Don't give em access directly to those underlying data structures. Don't think about it in the literal this is the capacity of the tank, and the current a amount of fuel in the tank,. But instead thinking of it in something more abstract, like, this is the percentage of fuel left or don't expose it right? Another way to do it, if wore singly, solidy responsibility, whatever, is to have a one class that just models the data structure. And so it is more classes, but it's just more composable. I can't help but think about this like, cause we are joking about everything in solid being all inter faceas. So, like asou
Transcript
Play full episode