top of page
Search

Friday DevOps #3: Who is Tim Towdy and why he killed camel?!



Yeah, its Friday...time to relax a bit ;)


Hey folks, it's Friday and many of you liked our post about video in termial, time for a new old school stuff!

We all heard about Camel Case, have you ever seen camel code - https://gist.github.com/cgoldberg/4332167



Generates:



One of key principals of Perl was - Tim Towdy ("TIMTOWTDI"), "There is more then one way to do it". That principle in the end killed Perl and made Python so popular, but bring us many masterpieces of code.


Have you ever saw poems written in Perl - https://www.perlmonks.org/?node_id=1111395 ?


Do you know that 99% of pain splatters are valid Perl programs - https://www.mcmillen.dev/sigbovik/?


But killer feature of Perl always was its one-liners!

How about finding all lines in a file that appear more than once?

perl -ne 'print if $a{$_}++' file

This one-liner appends another newline character at the end of each line and then prints the line:

perl -pe '$_ .= "\n"' file

Generate a random eight-character password

perl -le 'print map { ("a".."z")[rand 26] } 1..8'

And so on, there is even a book "Perl One-Liners: 130 Programs That Get Things Done" - https://www.liurongxing.com/wp-content/uploads/books/Perl-One-Liners.pdf


Perl is still installed by default on many distros, but almost not used in new projects, we may blame Tim Towdy or not, but Perl is still fun...


P.S. Who is that Golang-crab on first image, cant recall?!


P.P.S. Dont forget to try DevOps Pass AI - https://www.devopspass-ai.com/downloads


30 views0 comments

Comments


bottom of page