Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Created June 3, 2018 02:08
Show Gist options
  • Select an option

  • Save ytnobody/78b8582eab14e33b86c766394ab3ccf9 to your computer and use it in GitHub Desktop.

Select an option

Save ytnobody/78b8582eab14e33b86c766394ab3ccf9 to your computer and use it in GitHub Desktop.

Revisions

  1. ytnobody created this gist Jun 3, 2018.
    149 changes: 149 additions & 0 deletions mishimapm-3.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,149 @@
    # Why people says "Perl is guilty" ?

    ytnobody

    ---

    ## ytnobody

    * born: Hakodate
    * live: Ooi-machi
    * work: Roppongi
    * job: Tech specialist @ colon limited.

    ---


    ## Perl

    ---

    ## Developed by Larry Wall in 1987

    ---

    ![Larry Wall](https://wj4ovg.bn.files.1drv.com/y4m02GOia20w_IIgK3aQD9h6boBKajiZj1mx_zrukP93IpkyICE_j7KvZemsTVOqRA6Mq5MAYEgyiFHElGpa3C6QdG4ftSc_3UOywsusJOJbpdjavxdRHwqd2CejvTv5EezjO2z7XPdtIefo9Hd8GEhJZxDkK6cSxFbH8zGNpGxqlmdSzUyRfNxdUAONWNwU5I125nmH21pXxMmEqjKgHty4w?width=600&height=800&cropmode=none)

    ---

    ## but ...

    ---

    ## Today people says "Perl is guilty".

    ---

    ![Oh Larry...](https://vslnsw.bn.files.1drv.com/y4mUNOlsruDrGrHSXPbazXJTWsK9Y-jz4Z7EM-z8QLfEpo2tSRtbwA_rFvqwYlzMc9FTHkToRvYWySLPSh2pszjYR5QAtE8EIAk7mGuzHkvu7jJz9aDrnvTYwUidFrZV5Qvz_WvfxOr-BoV9QUiDpwaQIzOquamwp48muf6swVCU_tvqnHBevTPHNYHTTQdJiIH1U7w_QYnaxgqG-Bpd06kOQ?width=495&height=660&cropmode=none)

    ---

    ## Why?

    ---

    ## People says...

    "I feel complex about their documentation. :("

    ---

    ## People says...

    "Perl allows complexly code. That's a masochism language! And anybody has not understood it! Xp"

    ---

    ## People says

    "Regexp makes confuse."

    ---

    ## People says

    "Much of meta-characters burns my eyes."

    ---

    ## People says

    "**Full-scale** object system isn't there. I asphyxiate..."

    ---

    ## People says

    "CGI? Ah-ha. It's not fits for web development in this century."

    ---

    ## Hey, people.

    You're too pessimistc about Perl.

    ---

    ## "I feel complex about their documentation. :("

    Maybe, you see and say about `search.cpan.org`.

    In 2018, `metacpan.org` becomes defact standard.

    And you'll be have gratitude to SYNOPSIS sentence.

    ---

    ## "Perl allows complexly code. That's a masochism language! And anybody has not understood it! Xp"

    Poor things...

    Surely, perl's motto is "There's More Than One Way To Do It. (TMTOWTDI)".

    But, it's not equal to "Perl not allows pragmatic code".

    ---

    You may use perl as you think without any permission.

    However, basic of procedural language is important and don't forget it.

    ---

    ## "Regexp makes confuse."

    Regexp is a very high level feature. And very difficult.

    If you're newbie, I don't recomend to learn full features of regexp.

    ---

    ## "Much of meta-characters burns my eyes."

    Basically, you learn only followings.

    `$` -> Scalar value (Variant type only)

    `@` -> Array

    `%` -> Hash (in other some language, as "Dictionary")

    ---

    ## "**Full-scale** object system isn't there. I asphyxiate..."

    I think, POPO(Pure Old Perl Object) is better than full-scale one in perl.

    If you **really** want to full-scale OOP, I recommend `Moose` or `Class::Accessor::Lite`

    ---

    ## "CGI? Ah-ha. It's not fits for web development in this century."

    Learn about `Plack` and do `plack up`.

    Then, `Mojolicious` save your hurt.

    ---

    ## Thank you.