Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Getting better at this?

by Lady_Aleena (Curate)
on Sep 07, 2020 at 00:29 UTC ( #11121426=perlmeditation: print w/replies, xml ) Need Help??

Hello everyone.

I think I have made some improvements on how I write and use what I write.

Since I began using git, I have made several changes to my code for my site.

First, I moved everything used only for my site and have no intention of sharing on CPAN into one directory/name space called Page, This is the code so many dislike, so now it is all in one place away from everything else most are somewhat neutral about.

After that bit of reorganization, I wanted to get the code not used for my site away from my site's code, so decided to do something about it. After a lot of digging on CPAN to get some site related code out, I had to know where to put external data used in half a dozen modules. It took me a while to figure it out. Once I did, File::ShareDir made it into my code.

Next, I had to get my site's modules out of PERL5LIB, so I finally used FindBin after fighting against it all these years. I had been putting my site's lib into PERL5LIB since I was using Windows XP. It followed through when I switched to Debian. So, now $HOME/perl5/lib/perl5 is the only lib in PERL5LIB.

Once I got that done, I had to figure out where to move the site independent modules to.

I moved the ones I use for my personal non-site scripts to $HOME/bin/files/lib. These are the reason I learned how to use FindBin. I know it is not the best place for them, but they are not pretty and are not even version controlled now.

I moved the ones I want to share to $HOME/mods/lib where I can write tests and whatever else I need to learn.

There are some duplicate modules in my site's lib dir as are in mods/lib, but that will change once I get those packaged and on CPAN.

I thought some of you might be interested in these little changes in my coding practices; some have been arguing with me over them for a very long time. I hope that the changes I made are slight improvements. If you are interested in looking at what I have done in the past two months, you can see my site's and module's repositories. I am trying to stay excited about sharing, but it can be hard when I see just how much more I need to do to get these ready for it.

Have a nice day everyone...

I hope this was not too scattered.

My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.16.3 or 5.30.0 on web host depending on the shebang.

No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena

Replies are listed 'Best First'.
Re: Getting better at this?
by Anonymous Monk on Sep 07, 2020 at 05:04 UTC

    Milady, you have come so very far. I remember being puzzled by your early questions. Not so much what the answer was as much as how to explain it in a way that would make sense to you. At times, I wanted to just write it for you, but that wouldn't have really been helping. Git? Modules? You didn't even know what that meant! ;^)

Re: Getting better at this?
by perlfan (Vicar) on Sep 07, 2020 at 04:34 UTC
    >I thought some of you might be interested in these little changes in my coding practices

    Good job :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://11121426]
Approved by Athanasius
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2020-12-01 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?