Unfortunately, I don't have the luxury of working in Perl at my day job, but I still think I can offer my perspective on this Meditation. :)

I'm one of the people that writes the applications (end-user) that automate the criminal justice system. My approach to solving the task at hand depends on many factors including the complexity of the problem, likelihood of affecting other parts of the program, and how fast it needs to be done.

If it's fairly simplistic, I won't waste any time trying to figure out the algorithm in my head before starting to hack out the code. I'll just let the solution come to me as I write it.

But I do often try to think out the problem beforehand. I jot things down on a notepad. Normally at the top of the page is "Problem: <description>", to remind me not to get to lost in the details and remember what I'm trying to solve. Then I write down the "Solution: <description>" detailing (well, ok, generalizing) the steps that need to be taken to solve the problem. For example, yesterday I worked on a problem where the solution was:

If I'm at the point where I can generalize the steps that need to be taken to solve the problem, that's when I write my best code (that which fits well with the rest of the app).


In reply to Re: How formal are Iyour/I methods? by mothra
in thread How formal are Iyour/I methods? by flay

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.