Quality is an elusive thing but there are probably several aspects you want to improve. Some of them might be:
- Maintainability
- Succinctness
- Algorithmic efficiency
- Correctness
- Confidence of Future Correctness in Face of Changing Requirements
- Hackability
- Pleasantness to Look at After a Month of Doing Something Else
- Locality of effects
- Showoffability to your peers
- Showoffability to your betters
These are not well-distinguished from each other and are often overlapping or related. As you learn more and more Perl and programming, always ask yourself "how can this technique or principle help me achieve these goals in my code"? An incremental attitude is very good to have: you can't make your stuff perfect in one go, and gradual improvement is not a bad thing!
There are many things you can pursue in this line. For example, writing tests are a wonderful and permanent benefit even if at first they only cover a small part of your functionality. Adding use strict and use warnings if they aren't there already (and heeding their advice!) will help a lot too. (If you find it difficult to do and have already started splitting your code to modules, tackling one file at a time may be useful.) Depending on your program's goals and your existing code various "more than intro-level" stuffs will be suitable next—I'd suggest showing us some code and saying "this does X but can how would you suggest doing it better?". Many of us here are self taught and virtually all have learned from others on this site: welcome! you are in good company.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.