Kay lives here

working with the web

knightblog-cat

Missing in action: code mojo

lost

The past few days have been very frus­trat­ing. The symptoms:

  • my house is spot­less, all laun­dry is done
  • inboxes — both phys­i­cal and vir­tual — are cleared
  • tasks for the next three months are neatly scheduled
  • feed reader is cleared of unread and flagged items
  • phys­i­cal and vir­tual desk­tops are clean and organised

But no mat­ter what I do, I can’t seem to con­cen­trate on code for long enough to actu­ally do any­thing. Things that should be easy are not. Things I thought were obvi­ous seem fraught with dif­fi­culty. Com­pli­ca­tion lurks in every conditional.

This has hap­pened before. I don’t think my zen-like state of Get­ting Things Done is the cause of my lack of code focus — I think it’s a symp­tom. In the absence of any real work, I’m seek­ing refuge in struc­tured procrastination.

I’m sure I’m not the only one that expe­ri­ences this. So, what do you do when your cod­ing brain goes on hol­i­day? How to do you get your code mojo back?

7 Comments

  1. Sum­mary : Small baby steps.

    Do some­thing small, the first step to some­thing big­ger. Jus t go back to the cod­ing 101 prin­ci­ples. How do we start some­thing. look for the next step, and do it.

    It is a prob­lem. I’ve faced it many a time, espe­cially if the work in mun­dane and bor­ing, I will put it off and put it off.

    How to fix it… this works for me..

    I find he right envi­ron­ment helps, ener­getic music, remov­ing all the dis­trac­tions (email, forums, twit­ter, feeds, phone) and just fool­ing your­self into the first step.

    Then as you fin­ish that first step and the next try and give your­self micro goals like:

    1) fin­ish the task faster
    2) try a dif­fer­ent way of doing it, a dif­fer­ent method or direc­tion
    3) Try use soft­ware / tools that is new to you.
    4) Attempt to inte­grate some­thing new (that you have just picked up) into the code.

    May work for you.

  2. I often try to admit to myself when I don’t have the mojo. If I don’t HAVE to get some­thing done, then I will play the gui­tar or go for a walk. Night time walks are my favorite.

    It seems that your body might be try­ing to tell you some­thing and your mind doesn’t want to listen.

    Unless Clients are whip­ping you, take a few moments to be unpro­duc­tive. You will, oddly enough, be more pro­duc­tive for it.

  3. I know the cause Spring Fever.
    http://www.answers.com/topic/spring-fever

    Last year I remem­ber it well, I just could not sit at my desk, I found my self doing other stuff, ah.. other than work. I found my self dream­ing about going to a base­ball game. (I don’t even like Baseball)

    After a few hours I forced myself to get back to work. And just as Gary sug­gested, start small. Find the desert (the fun part you have been look­ing for­ward to doing) part of the project and do it first. Then once you get your code mojo back, go for the rest.

    A short walk dur­ing lunch may also help.

    OR

    Just go back to bed for a few more months and all will be well. :-)

  4. I’m in a bit of a slump myself right now. I have 3 projects in the hop­per and all are stalled for var­i­ous rea­sons. I’ve found that dur­ing slow times it’s best to take full advan­tage of them. Close the lap­top, put down the nerdy books and go do some­thing else.

  5. I agree with the above. Ditch the PC, go and do some­thing phys­i­cal like play squash or per­haps even some­thing that will make both you and Dave… happy, then get a good night or days sleep (whichever way it works for you).

    Doing the above will give you some much-needed rest, but also gives your sub­con­scious a chance to background-process the prob­lems you are hav­ing. I believe that I do about 70% of my best work with­out ‘actively’ think­ing about it.

    Good luck!

  6. you’re amongst com­pany. Even the famous Joel Spol­sky has been there.

    from http://www.joelonsoftware.com/articles/fog0000000339.html

    Once you get into flow it’s not too hard to keep going. Many of my days go like this: (1) get into work (2) check email, read the web, etc. (3) decide that I might as well have lunch before get­ting to work (4) get back from lunch (5) check email, read the web, etc. (6) finally decide that I’ve got to get started (7) check email, read the web, etc. (8) decide again that I really have to get started (9) launch the damn edi­tor and (10) write code non­stop until I don’t real­ize that it’s already 7:30 pm.”

    Some­where between step 8 and step 9 there seems to be a bug, because I can’t always make it across that chasm.”

  7. Pingback: How to get back in the zone | kay lives here