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.
Recent Actions
-
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…
Comment Threads
-
fuzzix commented on
Perl, PHP, Python, Ruby Job Trends on Indeed.com
I don't think I can take plain numbers of job postings seriously.
Anecdata, but in .ie it is common for recruitment agencies to post fake ads just to get you on the books. I would imagine they use lists like tiobe to cast as wide a net as possible. Some postings may be real, but I was left scratching my head when I was mailed a spec looking for experience with the "agile waterfall"
How is this not illegal? No idea, I think the only laws here governing job postings refer to equality.
-
Yary H commented on
3 features I would like to see in Perl
I agree with "speed." Perl is no longer the fastest language even for the "simple" text processing where it excels, and I have two stories from work to back that up. (And, addressing cbt's comment, both ought to be I/O bound...)
First was a suite of nawk scripts that read tabular text input and spit out dozens of little XML files. It even hit nawk's compiled-in limit of 20 filehandles at one point, so we reworked the process to get around it. I thought it was silly to still be using nawk when Perl is cleaner, faster, and has no arbitrary filehandle limits. Well, after a day of rewrit…
-
Bryan Gmyrek commented on
Perl, PHP, Python, Ruby Job Trends on Indeed.com
Yeah the numbers themselves are of course suspect. The trend may be meaningful though. Maybe all perl devs have moved to jQuery (lol) http://www.indeed.com/jobtrends?q=perl%2C+jquery&l=
-
Sawyer X commented on
3 features I would like to see in Perl
Have you taken a look at the new FFI::Raw module?
https://metacpan.org/module/FFI::RawIt comes with a lot of examples:
https://github.com/ghedo/p5-FFI-Raw/tree/master/eg -
RobertDKing commented on
3 features I would like to see in Perl
This makes it hard to read even well-written code of programmers who happen to use features you are less familiar with.
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.