Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Advice for next steps on my Perl journey

by MoodyDreams999 (Beadle)
on Apr 28, 2023 at 20:22 UTC ( [id://11151896]=perlquestion: print w/replies, xml ) Need Help??

MoodyDreams999 has asked for the wisdom of the Perl Monks concerning the following question:

I've spent weeks learning perl at my job, but I feel like it isn't enough to really learn it. I would say I'm still a noob, but I know the basics, I've written a couple projects around 500-900 lines involving parsing and spreadsheets, I've written/ copy pasted, changed probably at least 100 little scripts. My job uses perl, but pretty much has everything it needs coding wise so they might need the very occasional debugging or modifying of scripts. Perl is actually my first programming language, hasn't been easy learning perl as my first. I feel like I'm still lacking quite a bit when it comes to coding.

Do you guys have any hard but not too hard ideas for projects or some suggestions of learning certain modules or whatever to put me in the direction of knowing and being able to program professionally. Our work uses PHP, java, and SQL in well so ive learned a little SQL and the basics of VBA due to working on access database.

I would appreciate the guidance, because I feel kind of lost with what to do next since my job isn't necessarily a programmer.

  • Comment on Advice for next steps on my Perl journey

Replies are listed 'Best First'.
Re: Advice for next steps on my Perl journey
by eyepopslikeamosquito (Archbishop) on Apr 28, 2023 at 22:04 UTC
      Thank you! I have some pdf of perl books, but I'll add some links, if I find something else.
Re: Advice for next steps on my Perl journey
by hippo (Bishop) on Apr 28, 2023 at 22:09 UTC

    Have you looked through the Tutorials section? There are plenty of articles there covering a wide range of topics - there's sure to be something at your level and area(s) of interest.

    Have you written a module from scratch? That's one step we have all had to take at some point. There are tutorials for that too. If everything you have done so far has been script-based then moving into modules would be the logical progression.


    🦛

      I have checked that out, but its always good to go back. I haven't written a module yet, perhaps I should check out more safe coding practices before I look into that. Thank you!
Re: Advice for next steps on my Perl journey
by GrandFather (Saint) on Apr 29, 2023 at 05:48 UTC

    One way to get exposure to a good range of problems at all levels is to hang out here. For questions that look like something that you may be able to handle, have a go. Not with providing an answer here as to immediate goal, but just as a exercise in solving problems and writing solutions to those problems. If you want your answer "marked", post it as an answer, perhaps with a caveat depending on your comfort level. Even if you don't post an answer, you can at least see what other people have posted and compare your approach to theirs.

    Perl has a lot of power hidden away in the corners, but it is generally a fairly forgiving language. If you want to post code here and have it critiqued, go for it. Questions go here (SOPW). Requests for comments might better go in the Meditations section. In general small self contained scripts will be better accepted than larger scripts or scripts that depend on external resources such as files or databases (CPAN modules are of course ok).

    Update: clarify "external resources" - thanks hippo

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      Yeah, you're right I could be more of a part of this community and work on writing self contained scripts. Thank you.
Re: Advice for next steps on my Perl journey
by choroba (Cardinal) on May 01, 2023 at 20:05 UTC
    I'm probably repeating myself, but I hope not frequently enough to annoy anyone:

    You can check the Pull Request Club. If you join, you'll be assigned one project a month to contribute to. For me, it was a magnificent way to learn about existing modules, understanding their source code, different styles and restrictions they follow; to get in touch with their authors and maintainers, to get familiar with testing, development and deployment tools. I even got a T-shirt! :-)

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re: Advice for next steps on my Perl journey
by cavac (Parson) on May 03, 2023 at 14:23 UTC

    A little bit of self promotion here, but you could play around with Net::Clacks, which is a real time messaging library i wrote. It has some basic examples of a chat client. You could build a little home automation project around it.

    I would suggest trying something like this:

    • A central clacks server that handles the messaging.
    • An Arduino with a few buttons to act as "mission control". A Perl script that takes the button presses via Serial and sends NOTIFY messages via clacks. This way, you'll learn how to use Device::SerialPort to talk to a microcontroller.
    • A couple of cheap "smart power outlet" thingies flashed with the open source Tasmota firmware. A Perl script that takes the NOTIFY messages and sets the state of the power outlets. It should also read their current state and STORE that state in Net::Clacks. This will give you the opportunity to learn basic control of stuff via Web Apis.
    • A simple command line tool that RETRIEVES the current state of all power outlets from Net::Clacks and also lets you power on/off those devices.
    • A more complex "command line GUI" using Curses::UI to do the same.
    • Add a temperature/humidity sensor to the Arduino and make sure to update the Perl script to regularly power temperature and humidity to Clacks.
    • Add a new "automation" service that reacts to temperature and/or humidity, decide if, say, a humidifier needs to be on and send that signal via Clacks to one of the existing Tasmota power outlets.
    • Write a new clients that logs all kinds of states (tasmota on/off, temperature, humidity) to a database using DBI every minute. And learn during this the basics of using a database like PostgreSQL.
    • Write a script that reads the last 24 hours worth of data from the database and generates a temperature and/or humidity graph. GD::Graph should come in handy for that, although you could also use Gnuplot to generate ASCII art graphs for command line use.
    • Add Mail::Sendmail to your "automation" script to send warnings mails of temperature or humidity falls outside some limits you set.

    At first, it may sound complex, but in the end you will have a handful of somewhat small scripts that work together through a messaging system. Each script does very little by itself and should be easy enough to understand, yet you should be able to accomplish quite complex tasks when you combine them.

    I don't know about you, but i myself feel a certain satisfaction when i write programs that not only do stuff on screen but interact with something in the physical world. For this years Linuxdays in Graz i made a robot that handed out lollipops to children (and adults!) when they pressed a big red "Emergency Stop" button: "Giving out free lollipops the engineering way" (YouTube)

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Re: Advice for next steps on my Perl journey
by stevieb (Canon) on May 03, 2023 at 05:17 UTC
    Do you guys have any hard but not too hard ideas for projects or some suggestions of learning certain modules or whatever to put me in the direction of knowing and being able to program professionally.

    I started here. I was energetic, enthusiastic and ready to go. I was Perl, all in. I fucking delved deep. I read the likes of Merlyn to learn how references work. I still didn't understand. I worked my ass off on doing simple things, contemplating "what can I do to move forward".

    What I did, was go to the main CPAN page, look for projects that I liked, and started writing patches. I started writing my own things, but was afraid to publish them. With many Monks behind me, I started gaining confidence. I started answering questions here. I then learned how to publish my own work, which I finally did, getting out of my comfort zone. It took some time to be confident, but here I am.

    OP, I see in you what I saw in me back in the day. Back then, I had nothing; no clout, no help.

    Want to learn Perl? Get a hold of me and I will finance you to be at the conference in Toronto in July. I offer to you what I could have wished for myself.

    -stevieb

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11151896]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found