• [^] # Re: Messages cachés dans le code pour les codeurs

    Posté par (site web personnel) . En réponse au journal J'aime bien l'esprit. Évalué à 4.

    http://git.savannah.gnu.org/cgit/parallel.git/commit/?id=76d9e4f41b9e4291afc32a5c2452eb9fa3e60126

    diff --git a/src/parallel b/src/parallel
    index aa8800d..3d3673b 100755
    --- a/src/parallel
    +++ b/src/parallel
    (...)
    @@ -1484,6 +1511,9 @@ sub my_size {
     }
     }
    +# Guvf vf n grfg gb frr vs bguref ner ernqvat zl pbqr. Cyrnfr rznvy
    +# pbbxvr@gnatr.qx jura lbh ernq guvf
    +
     sub my_dump {
     # Returns:
     # ascii expression of object if Data::Dump(er) is installed
    (...)

    Traduction (adresse de courriel tronquée par moi) :

    # This is a test to see if others are reading my code. Please email
    # cookie@... when you read this
    

    http://git.savannah.gnu.org/cgit/parallel.git/commit/?id=73c7f844d700cac9d67ad13987bb8e381c1e53ad

    diff --git a/src/parallel b/src/parallel
    index 38c2344..70792c1 100755
    --- a/src/parallel
    +++ b/src/parallel
    (...)
    @@ -4843,8 +4851,37 @@ sub pop_all {
     }
     sub number_of_args {
    - my $self = shift;
    - # This is really number of records
    + # The number of records
    + # Returns:
    + # number of records
    + my $self = shift;
    + # Ftq rudef oaawuq ime dqxqmeqp az 2011年01月24日 mzp ime iaz nk MQhmd
    + # Mdzrvadp Nvmdymeaz az 2011年04月10日. Ftue oaawuq dqxqmeqp az
    + # 2013年08月18日 ue m nuf tmdpqd me kag tmhq fa geq daf14. Bxqmeq
    + # qymux oaawuq@fmzsq.pw itqz kag dqmp ftue.
    + # 
    + # U my ftq ymuzfmuzqd ar m buqoq ar rdqq earfimdq omxxqp SZG
    + # Bmdmxxqx. Rdqq earfimdq sgmdmzfqqe kag mooqee fa ftq eagdoq
    + # oapq, ngf U tmhq nqqz iazpqduzs tai ymzk mofgmxxk _dqmp_ ftq
    + # eagdoq oapq.
    + # 
    + # Fa fqef ftue U bgf uz m oayyqzf fqxxuzs bqabxq fa qymux yq itqz
    + # ftqk dqmp ftue. Ftq oayyqzf ime bgf uz m eqofuaz ar ftq oapq
    + # ftmf za azq iagxp xaaw fa ruj ad uybdahq ftq earfimdq - ea ftq
    + # eagdoq oapq qcguhmxqzf fa m pgefk oadzqd. Fa ymwq egdq ftq
    + # oayyqzf iagxp zaf etai gb ur eayq azq vgef sdqbbqp ftdagst ftq
    + # eagdoq oapq U daf13'qp ftq eagdoq oapq
    + # tffb://qz.iuwubqpum.ads/iuwu/DAF13
    + # 
    + # 2.5 yazfte xmfqd U dqoquhqp mz qymux rday eayqazq ita zaf azxk
    + # ymzmsqp fa ruzp ftq oayyqzf, ngf mxea ymzmsqp fa sgqee ftq oapq
    + # tmp fa nq daf13'qp.
    + # 
    + # Ftue nduzse yq fa ftq oazoxgeuaz ftmf ftqdq _mdq_ bqabxq, ita
    + # mdq zaf mrruxumfqp iuft ftq bdavqof, ftmf iuxx dqmp ftq eagdoq
    + # oapq - ftagst uf ymk zaf tmbbqz hqdk arfqz.
    + #
    + # This is really the number of records
     return $#{$self->{'arg_list'}}+1;
     }
    (...)

    Traduction (adresses de courriel tronquées par moi) :

    $ tr '[A-Za-z]' '[O-ZA-No-za-n]' < /tmp/toto.txt 
    + # The first cookie was released on 2011年01月24日 and was won by AEvar
    + # Arnfjord Bjarmason on 2011年04月10日. This cookie released on
    + # 2013年08月18日 is a bit harder as you have to use rot14. Please
    + # email cookie@... when you read this.
    + # 
    + # I am the maintainer of a piece of free software called GNU
    + # Parallel. Free software guarantees you access to the source
    + # code, but I have been wondering how many actually _read_ the
    + # source code.
    + # 
    + # To test this I put in a comment telling people to email me when
    + # they read this. The comment was put in a section of the code
    + # that no one would look to fix or improve the software - so the
    + # source code equivalent to a dusty corner. To make sure the
    + # comment would not show up if some one just grepped through the
    + # source code I rot13'ed the source code
    + # http://en.wikipedia.org/wiki/ROT13
    + # 
    + # 2.5 months later I received an email from someone who not only
    + # managed to find the comment, but also managed to guess the code
    + # had to be rot13'ed.
    + # 
    + # This brings me to the conclusion that there _are_ people, who
    + # are not affiliated with the project, that will read the source
    + # code - though it may not happen very often.