user-pic

prakash

  • Commented on Purpose of this blog
    Gabor Szabo just wrote about Exercism. You might want to add that to your list....
  • Commented on Things we don't have #1
    From what I see, byobu seems to be a wrapper for GNU screen (and, in recent versions, tmux too). It is not a replacement for either (in fact the ubuntu byobu package depends on either one of them.)...
  • Commented on p5-mop Inside-Out object problem
    Yuki: It's not about the users of your class "attacking". It's for their own safety that object implementations are better to be opaque and the internals are available only via defined interfaces. Yes, it's true that mop allows you to...
  • Commented on p5-mop Inside-Out object problem
    Hash-based objects are indeed simple, and easy to understand. However, as others pointed out, they are also easily modifiable by the users of your classes. Even if they are easily dumpable, the most you can get is the information about...
  • Commented on Perl Web Application
    Looks nice. I might suggest this to someone who runs a small non-profit. Did you post about this on Hacker News? The "Show HN" category is customarily used for such posts (in case you are not aware of it)....
  • Commented on Play Perl is a Startup
    Awesome! Wish you all the best....
  • Commented on Mobrater and White Camel Nominations
    Fred Moyer has two separate entries: first, and second. They should be combined....
  • Commented on A Look at Recursion
    I half-expected the linked article to link back here :)...
  • Commented on Thanks for the Live Streams from YAPC::NA
    Here's the javascript snippet to add a link to the video stream: https://gist.github.com/2936793 Useful if you have dotJs or Greasemonkey....
  • Commented on Streaming via VLC
    Here's a little javascript snippet (https://gist.github.com/2936793) suitable for using with dotJS. This adds a direct link to the video so the video stream can be watched directly in the browser....
  • Commented on Create PDF from many POD files
    Check out Pod::Manual. You can add sevaral modules as different chapters, and save them as single pdf....
  • Commented on Never ever trust Ubuntu
    It's not Ubuntu's fault, nor is it that of Debian (where the package actually originated from). The Debian/Ubuntu package 'ack' predates the awesome 'ack' tool that we all want. So, they had to choose a different name. Hence ack-grep. From...
  • Commented on Vim vs Emacs
    Most emacs users that I know of aren't interested in such flame wars....
  • Commented on Help Update Pod::Perldoc!
    Re: the issue -Q switch for searching perlfaq answers, doesn't -q already do this?...
  • Commented on Perl traps for Ruby Programmers
    T. DESSOLES: I don't get the same result as you. >> ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] >> ruby a0=2 a1=a0 a0=4 puts"display value : a1 = #{a1}, a0 = #{a0}" ^D display value : a1 = 2,...
  • Commented on Meme!
    80 l 66 man 57 cd 41 perl 32 ack 31 ls 27 less 15 git 14 prove 9 diff l is an alias to ls -l. This is, however, not at all representative of my actual history. At...
  • Commented on What are the best Perl one-liners you've written?
    Kinda long for a one-liner, but I use it often, so it deserved an entry in my .bash/functions file. # expand tiny-url function exturl { perl -MLWP::UserAgent -le 'print LWP::UserAgent ->new(requests_redirectable => []) ->get(shift) ->header("Location")' "$1" }...
Subscribe to feed Recent Actions from prakash

  • James commented on Perl Web Application

    Nice. I see it isn't too tied to Apache/mod_perl (you can run it with cgi handlers), have you tried running it with one of the CGI PSGI adapters or in one of the Plack Web Servers like Starman or Starlet?

  • rlauer commented on Perl Web Application

    I assume you are talking about Bedrock...no...we've strictly been using it with Apache, but would that sounds like a very good idea. We've never considered performance an issue - CPUs have just kept up and any performance issues these days seem to be mitigated (at least in our environment) by load balancing.

    The code is available for download, so anyone that wants to get ambitious can have some fun.

  • Yuki Kimoto commented on p5-mop Inside-Out object problem

    >Hash-based objects are indeed simple, and easy to understand. However, as others pointed out, they are also easily modifiable by the users of your classes.

    The users of your classes is programmer, not dangerous attacker. If accessor is provided, programer can use only accessor and don't need to touch internal data. There is no problem.

    Even mop provide attribute value getting method. This mean that data is not hidden from outside.

    mop::get_meta('MyClass')->get_attribute('$!foo')->fetch_data_in_slot;

    so I don't understand inside-out object meaning. I thin…

  • Yuki Kimoto commented on p5-mop Inside-Out object problem

    >Yuki: It's not about the users of your class "attacking". It's for their own safety that object implementations are better to be opaque and the internals are available only via defined interfaces.

    I don't understand advantage of this. If document provide only accessor, user don't need to know internal data. Accessor work as public interface. This is not relevant that internal data is saved as hash reference or inside-out object.

    The advantage of hash reference is simplicity and visible and understandable. you ignore this big advantage.

  • Aristotle commented on p5-mop Inside-Out object problem
    I don't understand advantage of this. If document provide only accessor, user don't need to know internal data. Accessor work as public interface. This is not relevant that internal data is saved as hash reference or inside-out object.

    So you have a class. It’s a useful class, so you put it on CPAN. Because it’s useful, many people use it. Some people write subclasses for it. Some of these subclasses store their own data in the object. One of them uses a key, say, _total, with an underscore because it didn’t want to break your class. You are unaware o…

Subscribe to feed Responses to Comments from prakash

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.