3 ms·
How is that more readable than: function describe(nameAndOccupation){ return `${nameAndOccuptation.name.first} is a ${nameAndOccupation.occupation}`; } ? Wh
by xamuel 12y ago
How is that more readable than:
function describe(nameAndOccupation){
return `${nameAndOccuptation.name.first} is a ${nameAndOccupation.occupation}`;
}
?
When people use features purely for the sake of using those features, the result is not "more readable". Ever notice that pseudocode is almost always imperative?
- whichdan 12y agoI should have been a little more explicit: the string interpolation, though not the focus of the article, is part of what interests me w.r.t. readability.