Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.


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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2018-03-17 17:08 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (225 votes). Check out past polls.