Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

As far as telling how fast and how far are you progressing with a tool, or in this case a programming language, all I can share is my own method.

Take something simple you wrote along time ago, (in the world of computers this would be 8-3 months ago :) ) now take what you wrote and write the same thing but as you would do it now, disregard any of your old code and just do it as though it is a problem and a task presented to you at the present moment. Now take those two peices of code and evaluate the quality of both, the chances are that if you have learned anything at all since you first wrote said peice of code that the newer one is going to be faster cleaner and what not.

Another way one can look at is this. Take a problem from this site, maybe something that is written about in Seekers of Perl Wisdom and that is replied to with code as a solution by a perl programmer you respect and beleave is better than you, aka "a good perl programmer". And without looking at the code they posted, write your own solution and then compare there code vs. yours.

An example of this little method of mine that I ran into once was a situation where I wrote a peice of code for one of my clients. It was supposed to be a simple image manipulation script, that would take images in a directory and process them in a way and then store them somewhere else. Now mind you this was about a year ago and I knew a whole lot less about perl than I do now. So I wrote this script and it was about 200 lines of code and was really ugly. Well recently that same client asked me for some more things (features) to be added into that script. Well once I started on adding those features into the script and took a look at the code for the first time in about a year, I was amazed at how horrible the code was. Well I rewrote it from scratch, and now its about 50 lines of much cleaner code and 800 precent faster with new features and all (where as the new script processes the same image in 1/8th the time the old one would).

I guess what it really comes down to is whether or not you are happy with how good your code is. And that all depends on how you view your code in comparison to other people code and that all depends on how good you view there code.

Well anyways that just my two cents, and Iam going to stop babbling now :)




lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/

In reply to Re: At what rate are YOU progressing? by lindex
in thread At what rate are YOU progressing? by mothra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-29 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found