3 ms·
That's not quite true. Identifiers are one thing, but language clarity helps too. For instance, in PHP you might have written: $recent_joiners = new Array();
by swombat 18y ago
That's not quite true. Identifiers are one thing, but language clarity helps too. For instance, in PHP you might have written:
$recent_joiners = new Array();
foreach ($user in $project.all_users) {
if ($project.join_date($user) > ONE_MONTH_AGO) {
$recent_joiners.push($user);
}
}
That's using fairly clear identifiers, but because of all the boilerplate code noise and the less clear language constructs, it looks less readable. Also, this requires a lot more specific meta-programming (like the ONE_MONTH_AGO constant), whereas the example I pasted uses vanilla Rails.
- jrockway 18y agoThis is a pain to type in (which is why you shouldn't use PHP), but it's not at all hard to read.