in reply to Re: Solution Approach
in thread Solution Approach

Ryszard,
Thanks for the comments.

I read sometime that creating algorithm for given problem is much harder than finding the uses of algorithm. If the steps between answer code and problem are described in detail. then that would be helpful to solve many more problems.

---I'm not sure i necessarily agree with this statement. It would seem to me to imply that you're going off creating algorithms without a clear idea of what you want.

Well, this step comes only after defining the problem. It's about practicing building algorithms to solve the problem --Documentation should be a part of your solution design anyways. From a design perspective the method i use to describe an algorithm is a UML / use case based approach. This gives me enough room to break down the problem then describe its components to a very detailed level including exceptions.

It will also solve one more problem in the long run: Documentation.

--Anyone who is serious about their projects and the long term viability of their code should have their algorithms and application design documented anyways. It eliminates (or reduces) the bus factor associated with many shops. In a broader sense, on one hand no documentation may equal job security, but on the other hand, it also means you cant get promoted.

While UML is definitely helpful, Not all projects requires UML, or not everyone here has access or familiar with URL or VISIO to use it. Also so the projects sometimes grows in organic fashion as per requirement, starting very small. 'Necessasity of being serious about the project from the beginning' can be embeded subconsciosly atleast partially in the thinking of approaches towards solution

What I am trying to promote is faster and matured insights towards the problem, will help ultimately to build better solutions and apporach reuse.

I agree 100% with your point about CPAN and Snippets like items. We need something similar for 'approaches' which can actually be archive of algorithm behind CPAN modules or Snippets and then alternative approaches/algorithms can be discussed to make it more robust.

Artist