Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Craftier

by Elgon (Curate)
on Dec 14, 2000 at 18:33 UTC ( #46616=note: print w/ replies, xml ) Need Help??


in reply to Craftier

Yep, code a bit BASIC-ish? Guilty sticks hand in air

What I try to do now is write my code in the step-by-step way I do to get the sequence of operations planned out in my head, take a break and then come back and look at it with a fresh eye to see where I could tighten it up and make it more efficient and/or easier to read/maintain.

What I'd really like to do is be able to write the fluent, lyrical language I see on PM straight off from fresh but I guess that will come with time and experience. I'm already making headway, particularly where deciding which flow-control structures to use: Goodbye...

for ($i=0; $i<$foo; ++$i){ }
and, Hello...
foreach $i(@foo){ }

I think one good way to 'play creatively' and improve fluency is probably to try writing obfuscated code and poetry. Reading and trying to disentangle obfuscated code is probably helpful too.

Elgon


Comment on Re: Craftier
Select or Download Code
Re: Re: Craftier
by iamnothing (Friar) on Dec 14, 2000 at 22:18 UTC
    Learning to read obfuscated C/C++/Perl code is invaluable when it comes to trying to support code written by others that may not have had your standards of programming. Sometimes I think that's the only way that I could have unravelled some of the code segments I've been given to review...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-08-01 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls