user-pic

Steven Haryanto

  • About:

    A programmer (mostly Perl 5 nowadays).

    My CPAN ID: SHARYANTO. I'm sedusedan on perlmonks. My twitter is stevenharyanto (but I don't tweet much). Follow me on github: sharyanto.

  • Commented on Net:: vs WWW:: vs WebService::
    Is it not possible to restrict people from adding more modules to the Net namespace without review and approval? That's not how PAUSE or the Perl community works. Unless there's spam or some technical glitch, people are free to submit...
  • Posted Easily add tab completion feature to your CLI program using Getopt::Long::Complete to Of course I still use Perl

    There are several modules to help you create command-line program with tab completion feature, including Getopt::Complete and Perinci::CmdLine (and its new lightweight alternative

  • Commented on Net:: vs WWW:: vs WebService::
    Not a bad suggestion also! Though I'd abbreviate them a bit. Not just for the fingers, but for the eyes. For example: Net::Proto::App::HTTP, Net::Proto::Transport::ZeroMQ. Although having Net::Proto prefix alone (Net::Proto::HTTP, Net::Proto::ZeroMQ) is a huge improvement already....
  • Commented on Net:: vs WWW:: vs WebService::
    I suspect people are more likely to search MetaCPAN for Yelp than WebService. So, I see no reason to use WebService, let alone prefer it. I.e. what does it offer? All you've said above is that it exists. I also...
  • Posted Net:: vs WWW:: vs WebService:: to Of course I still use Perl

    (This blog post will serve as a document that I point to for people to read when I suggest people renaming their third-party-API modules [although not necessarily always from Net:: to WWW:: or WebService::]. I'm currently on a

  • Commented on Some statistics from Debian package tags
    On the contrary, I expected OCaml to have more packages :) OCaml is a bit like Perl: practical (instead of pure), multiparadigm (functional *and* OO), Unix oriented. It should be one of the choices to go to when perl is...
  • Posted Some statistics from Debian package tags to Of course I still use Perl

    I'm running Debian Stable (7.x, Wheezy, 7.4 to be exact) on amd64.

    Count all Debian packages by their implementation language (I know, not the most efficient way):

    % ( for tag in `debtags tagcat | grep '^Tag: implemented-in::' | sed 's/^Tag: //'`; do
        echo -e `debtags search $…
  • Commented on Benchmarking several ASCII-table-generator modules
    Merged....
  • Posted Benchmarking several ASCII-table-generator modules to Of course I still use Perl

    UPDATE #1 2014-07-11: Added Catmandu::Exporter::Table. This module is not exactly lightweight, so I will not consider it for usage in Perinci::CmdLine::Lite, but it's interesting to benchmark anyway.

    UPDATE #2 2014-…

  • Commented on Perlmodules.net is awesome
    The item links in the feed still point to the protected view though....
  • Commented on Perlmodules.net is awesome
    BTW, I can't see your list. I'm logged in, and the page says "You are logged-in as the wrong user. The content you just tried to view is not accessible by the user you are currently logged-in as. Please log...
  • Commented on Scalar::Util::looks_like_number
    https://github.com/sharyanto/scripts/blob/master/list-numeric-scalar-types Sample output (hopefully MT will behave here): looks_like_number (Scalar::Util 1.39): 'inf' 1 'nan' 1 '-inf' 1 1 1 '1' 1 '1.2' 1 '1.2' 1 -1 1 '-1.2' 1 '-1' 1 '-1.2' 1 '1e+100' 1 '1e-100' 1 'a' 0 Scalar::Util::Numeric:...
  • Commented on Scalar::Util::looks_like_number
    https://rt.cpan.org/Ticket/Display.html?id=94806 A new version of Scalar::Util has been released and now booleanizes looks_like_number(), so this trick can no longer be used. As an alternative, see chocolateboy's Scalar::Util::Numeric....
  • Posted Skipping large files when mirroring your mini CPAN to Of course I still use Perl

    My Internet connection at home is not great: it's rather slow and flaky. When I ran minicpan to update my mini CPAN earlier today, the process always seemed to choke on this file: id/D/DG/DGINEV/Lingua-EN-SENNA-0.03.tar.gz: exit with Connection time-out error. The first run I thought it…

  • Commented on Introducing Text::ANSITable
    I see that Text::ANSITable 0.33 has appeared in PPM repository. Installing it with ActivePerl should be easy now....
  • Commented on One final rant about programmable completion in bash
    Hi McA, I've added some intro docs/pointers to Complete::Util 0.10. Hopefully that helps a bit. To be honest I originally wrote Complete::Util just so I can use it from Perinci::CmdLine :-)...
  • Commented on One final rant about programmable completion in bash
    You're right, quoting (double as well as single quotes in this case) works to prevent bash breaking words. Now I have to think whether I should use '::' again :-)...
  • Posted One final rant about programmable completion in bash to Of course I still use Perl

    Still hacking around bash tab completion. Released some utilities like pmpath, podpath, pmless, pmedit (you can find them in App-PMUtils distribution). To use these utilities:

    % cpanm App::PMUtils
    % comple…
  • Commented on Another (silly) idea: autocorrect in shell (bash) tab completion
    Yup, fish is nice. Creating programmable completion Perl module for fish is on my todo list. :)...
  • Commented on Another (silly) idea: autocorrect in shell (bash) tab completion
    UPDATE: bash does replace to-be-completed word with the common prefix of all possible completion, so autocorrect is already possible. Yay! For example, if word is "adu" and completion is ["audrey", "audry"], bash *will* replace the "adu" with "audr". If word...
  • Commented on Another (silly) idea: autocorrect in shell (bash) tab completion
    Yup, the COMP_{LINE,WORDS,POINT} thingy and I use it. It cannot be made to do the autocorrection like I described in the blog post though....
  • Posted Another (silly) idea: autocorrect in shell (bash) tab completion to Of course I still use Perl

    Here's another idea that just popped up in my head and can be considered silly, somewhat: autocorrect for tab completion.

    bash already has cdspell shell option (enabled via shopt -s cdspell) which can correct directory names for you, so for example if you have a directory n…

  • Commented on Introducing Text::ANSITable
    You'll need to install Log::Any too (and other subsequent modules that might show up in the similar error message). It shouldn't happen though because the CPAN installer (like PPM or cpan/cpanminus) should already handle and install the dependencies for you....
  • Commented on Introducing Text::ANSITable
    It looks like ActiveState hasn't tried rebuilding Text::ANSITable again. I've just pushed a new release that hopefully will nudge the build bots to rebuild it. You can wait for a day or two (perhaps?) for the build bots to build...
  • Posted Silliness of the day: digit-by-digit tab completion for ints/floats to Of course I still use Perl

    I was hacking on Perinci::Sub::Complete these past two days and I thought I'd add a (silly) feature that most other completion libraries don't (bother to) have.

    # high-low
    use strict;
    use Perinci::Cmd…
  • Commented on Giving up on weekly neoCPANisms
    Other leaderboard ideas: * longest chain of {weeks,months} where someone creates CPAN RT tickets or updates existing tickets. * total number of reverse dependencies for all of an author's distributions. * total number of ++'s for all of an author's...
  • Commented on Giving up on weekly neoCPANisms
    Some other ideas: * instead of tortoise, longest chain of monthly releases for a single distribution. * longest chain of {weeks,months} where an author makes {2,5,10,more than 10} releases. * longest chain of {months} where an author creates {2,5,more than...
  • Commented on Well why not All
    which is, it turns out, superfluous, as: use all Foo; already tries to load Foo and everything under Foo. So like the Java's import Foo.* statement....
  • Commented on Well why not All
    Also, instead of: use 'DBIX::DA'; use all 'DBIX::DA::*'; you can also say (shorter): use all 'DBIX::DA','DBIX::DA::*';...
  • Commented on Well why not All
    'all' does perform import() on each module it use's. So the default exports are still imported into your namespace. It's the optional or custom import which must be imported manually. Which makes sense in general. However, one can suggest or...
Subscribe to feed Recent Actions from Steven Haryanto

  • Jesse Shy commented on Net:: vs WWW:: vs WebService::

    My $0.02; what would be nice is something that connects the module with OSI network protocol map. Net::Protocol::Application::DNS, Net::Protocol::Transport::TCP and even Net::Protocol::Application::HTTP::Github::API::JSON vs Net::Protocol::Application::HTTP::Github::API::XML or Net::Protocol::Transport::ZeroMQ::Twitter to use the example above.

    But it looks like authors chose to go the Net::RRD::Protocol and Net::BGP::Transport route, and other variations, instead of Net::Protocol::Application::RRD and Net::Protocol::Transport::BGP naming which would A) Make sense and B) Be guessab…

  • tio commented on Net:: vs WWW:: vs WebService::

    WWW implies it's using an unofficial api by scraping the html pages. WebService implies it's using an official api, whatever the transport method. There's also a lot of authors who create top-level namespaces like $site::Client or $site::API. And then there's the authors who go overboard and bloat their module names with redundant components, like: Net::$site::API, WWW::$site::API, WebService::$site::API, Net::$site::Client - all of which are not uncommon.

  • Ron Savage commented on Net:: vs WWW:: vs WebService::

    PAUSE guidelines are important, but it's still up to each author to think about the structure of the name they choose.

    My question remains: What does 'WebService' add to the mix?

  • moltar2000 commented on Net:: vs WWW:: vs WebService::

    What about something like Docker? It has a REST API, but it isn't like a proper web service, but it also isn't a network protocol. There is currently Net::Docker.

  • Matt Perry commented on Net:: vs WWW:: vs WebService::

    Is it not possible to restrict people from adding more modules to the Net namespace without review and approval?

Subscribe to feed Responses to Comments from Steven Haryanto

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.