Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thwarted
· 15y ago · 0 comments
Agreed.
myproj['**/*.rb'].search(/^\s*class/).lines.size
And they say perl looks like line noise. The ratio of ispunct to isalpha in that line is 2:3.
Comments
[–]
datapimp
15y ago
the majority of that punctuation isn't part of the ruby syntax, to be fair.
[–]
thwarted
OP
15y ago
Good point. These are idiomatic constructs that require familiarity in order to effectively use them.