We need a good flamewar in here.
Thus! Object-oriented programming: Does it suck or what?
Ruby lol
just imagine what ruby would be without OO concepts! instead of
if patterns.any? {|pattern| elementAtHand =~ pattern}
# do stuff
end
you'd be writing, taking some pseudocode as an example,
my $atLeastOnePatternMatches;
foreach(@patterns) {if ($elementAtHand =~ $_) {$atLeastOnePatternMatches = true; last}}
if ($atLeastOnePatternMatches) {
#do stuff
}
or something. this would be just like writing in perl! think about it for a minute and the answer to the initial question should become clear.
faps to NeXTSTEP