user-pic

Code Monkey

  • Commented on List shortage of Perl
    Thank you so much for your contribution for PDL. I use PDL at times and am amazed by this power considering the limited resources PDL team have. The REPL of PDL is a great tool....
  • Commented on A little nicer way to use smartmatch on perl 5.18
    One of the features that I miss most comparing with Python is the keyword 'in'. It would make the code of checking the belongingness so elegant. I felt excited when the smart match '~~' came in Perl but feel sad...
  • Commented on Regexp::Debugger saved me twice today
    Thank you for referring this awesome CPAN package! Now I can test my regexp locally in my terminal. Even though there also are some online service for helping writing regexp, this package is still a must-have. Please keep recommending great...
  • Commented on SOAP::Lite 0.716 released
    It is so cool! I can't imagine what my life would have been without SOAP::Lite. Thank you so much for keeping improving this amazing module! -- A lucky SOAP::Lite user...
  • Posted Introducing quickcd to Code Monkey

    Hi guys,

    This is my first post on b.p.o. I know you guys are arguing about the version issue of Perl recently. How about take a short escape and try quickcd at https://github.com/jchain/quickcd? If you are a Linux && Bash guy…

Subscribe to feed Recent Actions from Code Monkey

  • Yuki Kimoto commented on List shortage of Perl

    >I am Ruby on Rails and Perl programmer, and I don't see problems in perl OO

    I also think Perl don't have problem in OO system. Problem is interface compared with ruby and python.

    Current Perl user should learn bless system and the way to create accessor. This is many cost compared with Ruby and Python.

    Some people think why Perl don't have clean OO syntax. This is maybe attack point from Ruby and Python.

  • vsespb commented on List shortage of Perl

    I wonder, what is the bigger problem you see with avoiding use of accessors? i.e. what if one just use $self->{somefield} ?

  • David Mertens commented on List shortage of Perl

    @Code Monkey, thanks for the kind words.

    @Yuki, thanks for the apology. You are expressing a wish that Perl was used more for numerical work and I share that wish. I think the issue was that I misread your wish as a demand of the Perl community that it step up.

    @vsespb, direct hash access is fine, unless you (the author of the underlying class) need to start doing validation transparently. Then you have to perform a whole bunch of search-and-replace stuff. I think Yuki was complaining about all the boiler plate needed for basic accessors.

  • Yuki Kimoto commented on List shortage of Perl

    @vsespb

    >I wonder, what is the bigger problem you see with avoiding use of accessors? i.e. what if one just use $self->{somefield} ?

    OO programing generally have three basic concepts.

    1. Inheritance
    2. Capsulation
    3. polymorphism

    Accessor is needed for Capsulation. Direct attribute access is not recommended way. I want to write capsulation advantage at next entry.

  • educated_foo commented on List shortage of Perl

    FWIW, it's "encapsulation," not "capsulation", because en- is a prefix:

    a prefix occurring originally in loanwords from French and productive in English on this model, forming verbs with the general sense “to cause (a person or thing) to be in” the place, condition, or state named by the stem

    I think encapsulation is a useless turd, but I also like languages.

Subscribe to feed Responses to Comments from Code Monkey

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.