No, I'm not reclaiming it from another language that has stolen it's fire. I'm simply reclaiming it for myself. My work has taken a Windows oriented VB.NET turn in the last year and my Perl knowledge has gone by the wayside, unfortunately. It's gotten to the point where I look at Perl code and it's much like the garbled mess I saw when introduced to regular expressions.

Naturally, this disturbs me greatly. While I was never a great Perl coder (and am hard-pressed even to say I was a good one), I have a great love of the language. Unfortunately, as of late, I haven't wanted to look at any code when I'm not at work. I think my mind is working like:

(work = code)
(home = sleep)
(home + code = SEGMENT_FAULT)

So, I've decided to start up a small project to reclaim my sense of Perl. It's a text editor. A SIMPLE text editor. Kind of like Notepad. Nothing big. Just enough to get me back into it. And I doubt any of you will ever see it. That's not the point. The point is getting my head back around Perl. The reasons I chose a text editor:

1) Re-orienting myself with regular expressions, and find/replace/trim trailing spaces/etc are perfect things to get me back into it.

2) GUI programming. I've never done GUI programming in Perl, and I'd like to play with the simpler GUI features to get a feel for them.

3) To get it back.

Not in any specific order. I'm all for "using the right tool for the job" which I constantly tell other programmers when they need advice, and personally, I would use C with Perl or Python bindings if the goal were to make a really cool text editor. But the "job" that I have to do right now isn't the text editor. It's getting back a piece of the Perl I've been missing for so long. And like any foreign language that you learn, it's getting rustier with disuse by the moment.

So, why am I posting this on Meditations when I'm a lurker by nature and usually only post a random comment here or there? Well, I want to know if any of you have been in the same boat. Has work, time, life, etc kept you away from Perl? How did you get back to it? Are you trying to get back or are you wondering what you were thinking and running far, far away? I want us to think about what we've gained and (in my case) lost in terms of Perl.

I want to hear success stories, failures, and valiant attempts to keep Perl near us. Of course, if Perl never left your life, then you can count yourself lucky and comment or fear the day when it wanders out of your life and you feel like starting a simple project or making a topic like this.

Replies are listed 'Best First'.
Re: Reclaiming Perl
by webfiend (Vicar) on Feb 14, 2003 at 00:09 UTC

    Are you kidding? I'm constantly coming back to Perl after drinking the Kool-Aid of some other language. And there is usually a stage of reorientation as I remember that Perl is a language, complete with punctuation and poetry. To paraphrase a line off of the Python site, the annual decision to keep using Perl is one of my little rituals :-)

    Heck, I've even done almost the exact same project idea to rebuild my confidence. I called mine "DoltPad", and I think I had just gotten cut and paste working before I got an idea for a "real" project.

    So here's what I do when I feel the need to rebuild my interest in Perl:

    • Grab Programming Perl or some other book, flip to a random page, and start reading
    • Look at some CPAN module I tried to reinvent while I was using another language. See if it has added anything new or exciting since I last looked at it
    • Try my hand at some Perl poetry
    • Try my hand at some Perl obfuscation
    • Go to Perlmonks and select a Random Node until a lightbulb goes off in my head
    • Think of some relatively small but challenging project that I could do in Perl, and get to it
    • Talk to any Java evangelist for an extended period of time

    These are just a few tricks, and they aren't in any particular order. Oh, and you haven't "lost" anything. At most, you've gotten rusty or forgotten stuff. Start using Perl more everything will snap back into place. Most of us are a lot smarter than we give ourselves credit for.


    I just realized that I was using the same sig for nearly three years.

Re: Reclaiming Perl
by FoxtrotUniform (Prior) on Feb 14, 2003 at 00:10 UTC
      Well, I want to know if any of you have been in the same boat. Has work, time, life, etc kept you away from Perl? How did you get back to it? Are you trying to get back or are you wondering what you were thinking and running far, far away?

    What kept me away? Two rather heavy project courses. Last term, I wrote a compiler front-end pretty much from scratch (while taking four other courses). I didn't really want to do much hacking when I came home from twelve-hour days in the lab alternately debugging a bison grammar written by someone else and fiddling with FFT code whose output didn't quite fit with the textbook's dictum.

    How did I get back into it? A couple things. First, I have a fair bit of Perl code hanging about, doing various behind-the-scenes but important things on the server I'm adminning. When I realized that this term gave me more free time than last term did, I decided to start putting more time into maintenance, and start chipping away at my to-implement feature list. Second, a friend asked me to serve as local Perl guru for a project he's embarking on. That got me back into reading my (and his) Perl, but didn't quite get me back up to the point I was at a year or so ago, when I was hacking Perl full-time.

    What to do?

    Come right on back to Perl Monks. In the past week or so, I've been exposed to other people's problems, solutions, comments, ideas, and opinions. It's a wonderfully mind-broadening experience.

    Now if only I could find the same push to get back into Lisp hacking....

    --
    F o x t r o t U n i f o r m
    Found a typo in this node? /msg me
    The hell with paco, vote for Erudil!

Re: Reclaiming Perl
by mugwumpjism (Hermit) on Feb 14, 2003 at 13:38 UTC

    Perhaps you should try to write a GUI text editor using POE (see http://poe.perl.org/ - basically POE is event based programming in Perl) and the GTK+ Perl modules. You should be able to prototype an editor with not very many lines of code.

    Have a look on the POE site for examples using Gtk; who knows, it might be your bag.

    $h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";
      I will definitely take a look at POE. I think I checked it out a while ago and hadn't been back. I was already planning on using GTK+ for the GUI aspects, so this seems right up my alley. Thanks for the suggestion!
Re: Reclaiming Perl
by michaeld (Monk) on Feb 14, 2003 at 12:32 UTC

    Personally, I'm not RE-claiming Perl, as I just started out using it. I'm rather CLAIMING it... and having a difficult time in doing so...

    The company I work for is "not into open source stuff" as they call it themselves. Which in practice means that they do all the one-off jobs either by hand, either by $1000+++ solutions.

    Well... it's their money and time, I suppose

    So I started out using Perl myself for some of the jobs that come with the project I'm working on. (Sneaky uh?)
    Naturally, I can't work on Perl all of the time, so advancing in Perl is a bit like advancing in a traffic jam for the moment: go...stop...go...stop...

    Besides that, I started out re-writing a java html pre-processor I've been using for the last 2 years ... in my spare time of course.
    This already has proven very helpfull in understanding the OO side of Perl.

    It's just a matter of re-claiming your own time, in my opinion... hard enough in itself...

    Cheers!
    Michaeld.

Re: Reclaiming Perl
by xjar (Pilgrim) on Feb 14, 2003 at 19:59 UTC
    In regard to GUI programming, I must say that Perl/Tk is very easy to get into. I haven't really done anything with GTK+ or Win32::GUI, but Perl/Tk was very easy to "get". If you choose to go this route, the resource I used most often (aside from Mastering Perl/Tk) was this collection of man pages.

    As well, you probably aren't looking for an outright "hand out" for your notepad project, but if you get stuck (assuming you go with Perl/Tk) feel free to check out medit, a notepad-like editor that I wrote.

Re: Reclaiming Perl
by Clachair (Acolyte) on Feb 16, 2003 at 00:33 UTC
    I had the same problem a couple of years ago, for the same reason; corporate spent megabucks upgrading, forcing VBA on us all. Pity. For consolation I had the same idea, and wrote an editor using Perl/Tk, which I called Ticklepad (after Tcl) with about the same functionality as Wordpad. Finally ported it to the Linux box. Now, back to lurking . . . . Never lick a gift horse in the mouth.