Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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.


Comment on Re: Craftier
Select or Download Code
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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-10-09 02:34 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls