user-pic

cbt

  • About: I like to write computer programs, for both fun and profit. I enjoy Perl the most, but plenty of other languages are good too.
  • Commented on SQLite and Writes
    This is why, when I have an app that uses sqlite, I jump through hoops to avoid opening it more than once. I put blocking 'flock' calls in the 'open' method of my database class. And I have it print...
  • Commented on 3 features I would like to see in Perl
    > The number one thing Perl needs is speed. It needs to be faster to stay competitive. I think you need to be careful about over generalizing here. Personally, my workloads are almost entirely IO bound and I have a...
  • Commented on Perl, PHP, Python, Ruby Job Trends on Indeed.com
    The other languages seem to have hit a plateau. Perl had a shallower slope to begin with, so instead of going flat, it's now negative. Perl's still at a decent level, on par with PHP and still above Python and...
  • Commented on Stealing from Python
    > Why introduce a more limited version of a feature that already exists? By all accounts, the smartmatch operator is unwieldy and full of dark corner cases. Introducing a small bit of its functionality in a simple and more limited...
  • Commented on Partially leaving Perl to change the world with Kaggle
    Hey, I wouldn't mind even if you did post about C# or Python or whatever. Thinking and writing about how they relate to Perl could lead to some very interesting posts....
  • Commented on Fun with Git
    Caveat emptor, that shell snippet doesn’t look like it’ll work with paths that contain spaces....
  • Commented on The date matches MM/01/YYYY -- it's a release!
    False dilemma. It's possible to have time based releases that follow a careful and well thought out release process. That's exactly what Perl does. It's not just whatever happens to be checked in at the time....
  • Commented on A Real Developer Challenge
    The thing about puzzle/trivia type interview questions is they tend to select candidates who have a particular kind of mindset. I suppose that may be a proxy for good developers, but I'd say it's rough at best. I like your...
  • Commented on More thought, less dogma please
    > see the new, dogmatized "perlootut" Sorry, I don't see it. The perlootut doc primarily explains OO concepts and how they work in Perl. After spending a good deal of time on that topic, there is a section about specific...
  • Commented on newbies and perl
    Vague complaints like this aren't going to help very much. To have any chance of helping the situation, you have to be more specific about the problems you encountered. It would be more helpful if you could suggest some improvements....
  • Commented on use variable from other module
    In addition to Ron's comments, it's best to avoid all lowercase package names. Those are usually reserved for pragmas, which are generally considered part of perl itself....
  • Commented on coming back to Perl, file slurping with IO:All
    And if you want a good book, check out Modern Perl. It was published in 2010 and contains much goodness....
  • Commented on The decline of Perl
    As Mithaldu pointed out, this is a flawed metric. Instead, if you look at the number of distributions uploaded to CPAN recently, Perl doesn't look so bad. Take a look at a recent post of mine....
  • Posted How are CPAN uploads doing lately? to Carey Tilden

    I was curious about the recent number of CPAN uploads. I found some raw data from CPAN testers, and created a little chart:

    ="http://chart.apis.google.com/chart?chxl=0:|2011|2010|2009|2008|2007|2006|2005|2004|2003|2002|2…

  • Commented on Safely Storing Passwords
    @James Aitken Oh, my question was mainly whether https is the best thing for protecting passwords over the wire. I guess I should have left out the md5 stuff, it only muddled my question. Which you answered, so I might...
  • Commented on Safely Storing Passwords
    Interesting post! Any thoughts on how to safely transmit the passwords? Back in Ye Olde Days, when I still fancied myself a web developer, I liked using md5 because I could easily calculate the hash client side and not transmit...
  • Commented on $perl6 = 'Duke Nukem Forever';
    A few thoughts: * The Duke Nukem analogy is cute, but misses the mark for me. Perl is a developer tool created by volunteers. Its primary goal is not to make money selling copies to the masses. * My memory...
  • Commented on Why Perl 6 should be spelled roman
    There's really only one person who can decide to rename Perl 6 to something else. He's the guy who picked the name Perl in the first place. I don't think this is very likely to happen....
  • Commented on Perl's Built-In OO
    I don't quite get the comments about this being rude or mean spirited. I thought it was clearly intended to be somewhat tongue in cheek, wry humor. Let's all keep our senses of humor intact! To respond to the topic...
  • Posted Does the world really need another post extolling the greatness of Dist::Zilla? to Carey Tilden

    YES! I am extolling the greatness of Dist::Zilla! It really has a lot of greatness. I think it's finally reduced the friction enough that I'm going to start making dists for all my internal projects. A big thanks to all involved in…

  • Commented on Help name my code! I am terrible at it.
    That advice makes sense, except this is not a standard class. It's a role, so the 'what' is kind of the whole point. The 'why' is determined by whatever class it gets composed into. That train of thought is leading...
  • Posted Help name my code! I am terrible at it. to Carey Tilden

    I write a lot of apps that need a simple database. I tend to use SQLite, but I found I was implementing the same things over and over again. I finally started wrapping it up in a role that I can reuse, but now I'm stuck on a name. The role provides the following:

    • Database con…

  • Commented on Multiple packages in one file
    Ok, so my feeling on the Perl consensus was actually right? I guess that'll teach me to doubt myself. ;-)...
  • Posted Multiple packages in one file to Carey Tilden

    I was reading an interesting discussion on python-dev, and it made me think about the analogous situation in Perl. I've long been in the habit of putting each package into its own file, no matter what. Now I'm…

  • Commented on Perl 101: avoid "elsif"
    I often see the same pattern arise in my own code. First, it's an if/elsif chain with 2 or 3 options. Then, the options accrue to the point where a hash or array makes more sense. Eventually, I get tired...
  • Commented on Perl Is My Community
    I agree with your comments about the Perl community, but my experience with Python folks is much different. All in all, I find Pythonistas to be friendly and thoughtful. There is an annoying tendency to throw barbs at Perl in...
  • Commented on Benchmarking string trimming
    I usually prefer the two statements because I find such code easier to maintain. Interesting to see there is a concrete benefit as well, though even the slowest clocked in at 81,000 operations per second. I wouldn't expect that to...
  • Commented on I Don't Do Deadlines
    I like deadlines because they make expectations dead simple. I hate deadlines because they hide the complexity of a project behind something as simple as a calendar date. It's a balancing act. Either extreme will cause problems in the long...
  • Commented on Removing database abstraction
    Thanks for the comments, all. I continue my unbroken streak of never having a novel idea. :-) I've tried all kinds of abstraction models. Hand built ORM, automatic ORM, simple functional wrappers, automatic SQL generation, you name it. Somehow the...
  • Posted Removing database abstraction to Carey Tilden

    While working on the database abstraction layer for one of my toy projects, I came to a sudden realization. Why bother? I know SQL. I think in SQL. I thoroughly enjoy the relational model and DBI does pretty much everything I need. I can tie myself to one database system, since it's just a…

Subscribe to feed Recent Actions from cbt

Subscribe to feed Responses to Comments from cbt

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.