Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: An irrational coding choice found

by ruzam (Curate)
on Mar 19, 2012 at 14:08 UTC ( [id://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.

Replies are listed 'Best First'.
Re^2: An irrational coding choice found
by BrowserUk (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://960419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found