As a former swimmer and coder, I understand exactly what you're talking about. Whenever I was in excellent shape, code would just flow from my fingers. I think it had to do with the fact that my body and mind were in sync.

Recently, I won the Ohio State Championships for Magic, the Gathering. I'd been close before, but the change was that I decided there was no option but to win. I wanted it so bad I could taste it, and I didn't allow myself any distractions. Before, being in the Top 8 would rattle me, but I didn't allow for that to happen this time.

What does that have to do with coding? Well, if you're constantly distracted or thinking about what is going on around you, then you won't be able to concentrate on what you're doing. That applies to both coding and swimming.

What I used to do before meets was to try and enter a slight meditative overlay, almost a mild auto-hypnosis. That would help me retain my calm and focus. Then, right before I entered the pool, I would shift out of that and start getting myself pumped up. This would allow me to go from a rested state to an active state very quickly and efficiently.

Don't worry about not doing well your first few meets. I remember a football player joining the team in college to keep fit during the off-season. He sucked. But, he kept at it and became a valued member of the team by the end of the year. Swimming is arguably the hardest sport to excel in at the lower levels, because it's the most alien sport for humans. Keep at it, and welcome to the best sport in the world. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.


In reply to Re: Best Performance by dragonchild
in thread Best Performance by pokemonk

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.