Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: An irrational coding choice found

by Ratazong (Monsignor)
on Mar 19, 2012 at 10:29 UTC ( #960389=note: print w/replies, xml ) Need Help??

in reply to An irrational coding choice found

Coming back to your general question (and not the specific array vs. hashes-topic):

Have you ever made a coding choice that later you can not rationalize?

That is a common effect. In most SW-development-process-models this is addressed by documentation of your SW-design. By documenting all (important) design choices, you can find out later why you have choosen which way. However programmers tend to like coding and to dislike documentation ... thus the reasons for a decision are often forgotten. So in the real world this approach is less usefull than in theory.

When I code, I often just "try if things work", without thinking too much which is the best way (unless I estimate that performance (runtime, memory) will be critical). Then later I often encounter the situation that I wonder why I didn't use another approach. The only rationalization is "it seemed to work that way before". However there is nothing wrong with that approach. Modern SW-development-methodology even encourages it: if the old decision is not good (enough), just do a refactoring .

So the answer to your question is: Yes. However that is nothing uncommon, and nothing to worry too much.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960389]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2018-04-21 12:10 GMT
Find Nodes?
    Voting Booth?