I just realized at the bottom of WordPress.org that they have “Code Is Poetry”. Well, that’s the very reason I have had this account for more than a year! Good to know it’s not just me who thinks good code is like a good poem!
Category Archives: Programming
Time and again I saved a lot of time for the company I work for, the group I am part of and to myself by writing simple scripts. These scripts were written in sh/tcsh/bash, sed, awk and perl. One thing common in almost all these scripts is the usage of regular expressions either to parse the files or to get the list of files to process.
One of my favorite pattern is
find . -name 'some-regex-pattern' -print | xarg -iFILE some-shell-command
What this does is, recursively gets the list of all files from a directory that match a particular regular expression pattern and then make them available as a FILE variable and execute some shell command that contains FILE word which gets substituted with the actual file.
For any aspiring developer learning and Mastering Regular Expressions is very important. Infact, even as a development manager who needs to often analyze a set of existing files to decide on a project like introducing changes across the entire set of files or determining design change impact etc can be easily done using the regular expressions.
The book Mastering Regular Expressions is supposed to be one of the best books for learning regular expressions.
Right now I am watching America’s Got Talent. A teenage girl just sang a Yodel that’s so charming. Last week another 11yr old girl sang a completely different type of song which is equally difficult and she blew the judges and the audience. Before that, a guy did finger tapping. Seems he is the only guy in the world who can do that! And just now, the magician pair who changed their clothes left and right, front and back, so fast and so elegantly just surprised everyone.
While there are some bad performances, the ones that are good are really good. Irrespective of who wins this competition, they are all great people with great talent. It’s unfair to pick one as a competitor, but that’s life. Even if it’s not fair to compare apple to oranges. Unlike American Idol, So you think you can dance and other shows, where the comparison is on similar talent, this one is completely different.
Why is this being discussed here at poeticcode?
There are usually heated debates about which programming language is best, which development framework is cool, typed/typeless, functional vs object oriented etc. Using popularity, or economics or some other barometer, perhaps only one of them will win to be the No.1. But then, they are all winners in their own right!
Just like “Talent” is the only least common denominator for the “America’s Got Talent”, perhaps, “Turing complete” is the only least common denominator for the various programming languages.