Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Is it correct?by LesleyB (Friar) |
on Jul 14, 2008 at 17:00 UTC ( [id://697520]=note: print w/replies, xml ) | Need Help?? |
I have to agree with tantarbobus on this. Some of the points raised are very difficult for a novice to evaluate. I think that 'does the code not do something it isn't meant to do' question is important as part of the 'does it work' question. (This is effectively asking the question, is the code within spec.) At a very simple level, most of us novices are monumentally relieved when we get a regexp to match at all. At last it works! However, how many perl novices then check whether that regexp matches what it oughtn't to? I guess this is where testing comes in and being able to effecitively test something is part general programming experience and part specific language experience. I haven't yet used the Test module yet because I feel I haven't written anything needing it yet.
I also feel there is definitely a particular mindset to be adopted to be able to write terse but informative perl code . My code is verbose and I would love to be able to improve its terseness but I don't yet know how. Giving a novice along a few breadcrumbs along the trail is no bad thing. It is up to that individual to commit the time to learning but having guides along the way does help tremendously.
In Section
Meditations
|
|