Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Craftier

by Elgon (Curate)
on Dec 14, 2000 at 18:33 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found