3 ms·
it removes the information of what is happening at this line of code and I have to look up what type name, pets and owners actually are My response to this is,
by pdonis 13y ago
it removes the information of what is happening at this line of code and I have to look up what type name, pets and owners actually are
My response to this is, why do you care what their types are? What the statement is saying, conceptually, is "if there's a name and there's pets and there's owners, do this". Why should I have to explicitly tell the language how to tell whether there's a name and there's pets and there's owners, when it already knows that? To me that's just extra verbosity for no good reason. Do you really care that name is a string but pets and owners are containers? (And even if you do, isn't that evident from the variable names anyway? Good naming conventions can do a lot of the work of clarifying what's going on while keeping the code compact.)