
Clean Code – Objects vs Data Structures
Coding Blocks
00:00
Is It a Fluent Intervace?
Instead of doing these four eaches with all these if conditions inside of em, just do a link, type query to where you say, people. And then that way you populate that list, and it's very human readable, right? Like, you look, ok, i'm getting people where their last name is smith and where they are over the age of 30. Riht, instead of nested for for each loops that that keep checking different conditions, and then if it meets that condition in it to some list that was defined outside. That whole thing, too, is also another dot train wreck,. But that's more a sign of, i guess, the language than anything else
Transcript
Play full episode