Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: An irrational coding choice found

by ruzam (Curate)
on Mar 19, 2012 at 14:08 UTC ( #960419=note: print w/ replies, xml ) Need Help??


in reply to An irrational coding choice found

I've made coding choices that I can't rationalize later. But I find it's often more insidious than that.

Having made a coding choice for a particularly complicated problem, I'll come back to the code later to do more work on it (add features, fix bugs, etc) only to find I completely don't understand why I wrote it the way I did in the first place. With fresh ideas on how the code 'should' have been written, I begin a long process of re-factoring the whole mess into something that makes more sense. It isn't until after I've spent considerable time, unravelling large portions of code that I come to understand, why I wrote it the way I did the first time. Some times I get lucky and my 'fresh ideas' make for better code. More often than not, the original code stands and I've wasted time going down a dead end.


Comment on Re: An irrational coding choice found
Re^2: An irrational coding choice found
by BrowserUk (Pope) on Mar 19, 2012 at 14:18 UTC
    only to find I completely don't understand why I wrote it the way I did in the first place.

    Now that's a good time for a comment or two. At least the second time around :)

    Of course, when you're in zone of the coding, you don't always recognise the things that'll throw you later.

    And some would no doubt use that as a justifiction for commenting everything, every time. But yah boo sucks to that.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-07-28 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (196 votes), past polls