Month: March 2008

Google now returns code snippets

March 31, 2008 Documentation, Web 2 comments

Google’s main search screen now returns code snippets in its list of results. This is not just in any more.

I needed to find the docs for the PHP function ftp_connect, so searched Google for it. (I could have gone to and searched there, but why?)
The list of results has three hits to PHP manual pages, and the fourth and fifth are bits of code that use ftp_connect. Anyone know if they’re getting Perl stuff in there as well? I tried it with WWW::Mechanize, but couldn’t turn up hits.

Technical debt in your file headers

March 26, 2008 Code craft 1 comment

Here’s a little article about the “file header tax”, lines of boilerplate at the top of files that serve no purpose. Copyright notices, disclaimers, maybe even some revision history, it’s all just clutter, and clutter is technical debt.

Take a look at the next file you edit. Is there anything at the top of it that is not functional code? Ask yourself if it really needs to be there. If in doubt, throw it out.

Don’t use Plucene for real work

March 25, 2008 Tools 2 comments

Just in case anyone’s using Plucene as a search engine, please don’t. It’s terribly slow. Take a look at KinoSearch instead. Plucene is written in pure Perl, mostly as a proof of concept. It is literally orders of magnitude slower than KinoSearch, which uses C for the hard bits. Here’s a page of benchmarks to make the point.

Don’t trust yourself or your code

March 24, 2008 Code craft, Programmers No comments

Jared Parsons writes about how
Part of being a good programmer is learning not to trust yourself. It’s filled with basic but all-too-often-forgotten wisdom about defensive programming. Key bits: “Turn assumptions into compiler errors,” “The best way to avoid making bad assumptions is to actively question them at all times,” and “1 test is worth 1000 expert opinions.”

I also chuckled to see a sidebar disclaimer that said “All code posted to this site is covered under the Microsoft Permissive Lice.” I’d heard of parasitic licensing before, but never like this!

ack 1.78 is out

March 24, 2008 Tools 1 comment

After three months of lots of development work and intermediate releases, I’ve released ack 1.78. There are tons of new features and lots of compatibility fixes for Windows. ack is a replacement for grep that is geared to working with trees of code.

Highlights in this release include:

  • Files specified on the command line are always searched, even if they don’t match a known filetype
  • Ability to ignore directories
  • Pager support
  • More flexible grouping options
  • Many more languages recognized and existing ones improved, including CFMX, Actionscript, assembly, Tcl, Lisp, Smalltalk
  • Ability to define your own languages based on filetype

ack may well change the way you work on the command-line with source code. Try it out and let me know what you think. You can install it by installing App::Ack from CPAN, or downloading the standalone version to your ~/bin directory.

Perl Foundation elects new members

March 18, 2008 Perl Foundation No comments

The Perl Foundation has three new members

  • Karen Pauley, Steering Committee Chair
  • Josh McAdams, Public Relations
  • Jeremy Fluhmann, Conferences Committee Chair

Thanks to Josh to taking the mantle of PR from my shoulders! I wouldn’t be surprised if we wind up teaming up on some stuff down the road….

Help find students for Perl projects in Google Summer of Code 2008

March 18, 2008 Community, Perl Foundation No comments

(Following is Eric Wilhelm’s call for participation in Google Summer of Code.) — Andy

The Perl Foundation is participating in Google’s 2008 Summer of Code™
and we have a lot of capable, willing mentors looking forward to working
with some talented, driven students. So, we would like you to help
find those students (and quickly — the students must apply before
March 24th.)

This is a rare opportunity for students to get a chance to get a paid
summer of hacking on exciting projects like Parrot, Perl 6, Moose,
Jifty, SVK, Catalyst, or their very own Perl modules or applications.
It also brings new talent into the community and gives the student a
hefty “real world” experience with a knowledgable mentor. Further,
employers love to see this sort of demonstration of teamwork, handling
deadlines, communication skills, resourcefulness and etc.

We’re looking for promising students who are interested in open source
(or maybe you know someone who *should* be interested in open source.)
Knowledge of Perl is optional if the project is Parrot-related. The
student doesn’t need to be an expert in the problem domain (after all,
learning is part of the process), but should bring a big pile of
creativity, problem-solving skills, and determination.

Students should review
the page of suggested projects,
encouraged to bring their own proposals (those are often the best.)
The most important first step is getting in touch with the community
and discussing their project idea with potential mentors.

Google has posted some flyers if you happen to have a university
bulletin board or hallway handy:

Additional info:

(Note that Google has particular requirements to do with the fact that
they are paying the students. The student must be able to show their
eligibility regarding enrollment and employability.)

Remember, the Perl community draws talent from many fields, so if you
came to Perl from a non-computer-science major and still have contacts
in that department from your university, it is probably worth
mentioning to them.

Please feel free to forward this to whoever may be interested.

Tim Bunce debunks Perl myths

March 17, 2008 Opinion, Perl 5, Perl 6 1 comment

Tim Bunce has put together a presentation debunking three pervasive myths about Perl:

  • Perl is dead
  • Perl is hard to read / test / maintain
  • Perl 6 is killing Perl 5

That last one has a sort of corollary: “Perl 6 is taking too long”, which presupposes that anyone can say how long Perl 6 should be taking.

Perl Foundation accepted in Google Summer of Code 2008

March 17, 2008 Perl Foundation No comments

Details are non-existent right now, but the Perl Foundation is back in Google’s Summer Of Code program. Congratulations to all who helped us get in there, especially Eric Whilhelm, who displayed an astonishing level of JFDI to get this to happen.

TPF helps defend the Artistic License

March 15, 2008 Opinion, Perl Foundation No comments

Jim Brandt writes in the TPF news blog that the Perl Foundation is helping a court case surrounding the Artistic License. A Java project has adopted the Artistic License and is now in the middle of a legal battle that could be important legal precedent for future cases regarding open source licensing. TPF has helped support an amicus curae brief in the case.

Jim’s article notes “the argument [in the case] that there can be no remedy to a copyright holder who chooses not to charge money for their work.” It’s kind of like how puzzled relatives ask why me work on open source projects if I’m not getting paid to do it, as if it’s less worthwhile that there’s no money (directly) changing hands. Here, the plaintiffs in the case are trying to make that perception into settled case law. Thanks to TPF for their work here against that happening.