|
|
|
|
|
by kamaal
175 days ago
|
|
Every programmer worth their salt must learn to use power tools, and also train to work beyond the beginner-intermediate levels, that has now become the permanent situation in our line of work. Nobody should be spending a day writing Python to do work that can be done using a vim macro in like 5 mins. Or spend a year doing in Python what can be done in a week in Perl. >> $\=$/;for(@ARGV){open F,$_;while(<F>){print if/$_/}} There are lots Perl one-liner patterns, once you learn to write them. You are basically saving yourself writing many dozen man-hours of Python/Java coding work. I remember telling my manager during the Perl days. A 10 year Java experience guy looks great, but thats basically a junior Perl dev with 6 months experience. There is nothing to feel great about wasting effort and more importantly time. |
|
Not sure your time-saving thing really works, especially if 99% of problems you have are not solved by a perl oneliner.