Slashdot Mirror


How To Get Out of Developer's Block?

Midnight Thunder writes "I have spent the past six months working on a software project, and while I can come up with ideas, I just can't seem to sit down in front of the computer to code. I sit there and I just can't concentrate. I don't know whether this is akin to writer's block, but it feels like it. Have any other Slashdotters run into this and if so how did you get out of it? It is bothering me since the project has ground to a halt and I really want to get started again. I am the sole developer on the project, if that makes a difference."

20 of 601 comments (clear)

  1. Coder's block by fiannaFailMan · · Score: 4, Insightful

    I take a walk if it's one of those small bugs that holds you up for days and then turns out to be a semi colon in the wrong place.

    If I can't motivate myself to work on a particular project, I work on something similar for personal projects at home, because that's always more interesting than doing something because you have to. Once I get into it, I get little moments of inspiration like "Ah, that'd be a really useful feature to use at work." That makes the work more interesting and there are times at work when I get little moments of inspiration like "Ah, that'd be really useful to use on my home project."

    --
    Drill baby drill - on Mars
  2. Break your project into manageable steps by Antidamage · · Score: 5, Insightful

    Break your project into manageable steps. It's the only way to tackle large, complicated tasks when you lack motivation.

    If you do enough small steps, you'll regain your enthusiasm for the project. Then you'll be back on the rails in no time.

  3. Too many possible factors by hattig · · Score: 5, Insightful

    Sole developer is hard. There's no easy answer as people react differently.

    I'd say:

    1) Get away from the computer for a bit.

    2) Do that other project that keeps interrupting your thoughts.

    3) Sit down and work out a hard plan with deadlines. Not long term deadlines, but in the near future. If you can't do this, then maybe the project is too fuzzily defined.

    4) Do a lot more work with pencil and paper. Only use the computer for programming and post-pencil-paper documentation.

    5) Is there anything outside life that's affecting you? Afraid of zombies in red jackets dancing if you fail to finish the project? Is it actually going well, or are you unhappy with it? Ask yourself the hard questions to see if it's that. I.e., you feel it's not worth finishing the project, so you can't.

    6) It could just be your work conditions - chair, computer position, desk cleanliness. Or the people around you - interruptions, etc. Make notes of when you get interrupted, and then see what they're like at the end of the week. Like a food diary, you might be surprised.

    1. Re:Too many possible factors by Heir+Of+The+Mess · · Score: 5, Insightful

      I've had this problem where I've sunk into a funk, there's a few things I did to cure it:

      - Quit coffee for a while and get your sleep patterns back to normal

      - Exercise more. Sitting at a desk I can get my breathing down to almost nothing and my pulse down to 40. Do this for a year and your body becomes inefficient at getting oxygen into your system. Exercise and stretch your lungs. I do 50 pushups a day, and jogging on the weekend and it's changed my life.

      - Once an hour move around a bit, again increasing your breathing and heart rate.

      - Try to get more sunlight in your life.

      - Stop reading slashdot for a while - it sucks the life force out of you. In fact try to cut down on tv and internet browsing and do stuff requires more active involvement.

      --
      Australian running a company that does C# / C++ / Java / SQL / Python / Mathematica
  4. Don't Code, Design by fidget42 · · Score: 5, Insightful

    Work on the software's architecture or design. Draw diagrams on how the pieces are to fit together and how data (and control) are to flow throughout the system. This lets you look at your project from a more abstract perspective and may make it easier to get motivated to code portions.

    --
    The dogcow says "Moof!"
  5. Start fun and build momentum by ChopsMIDI · · Score: 4, Insightful

    Start fun and small. Do the fun stuff first, get your mind obsessing over it (sketching up your mockups, database schemas, etc), so that that's all you're thinking about, then starting the coding isn't so much of a hassle. Don't think too big off the bat, or the project will seem too daunting. Focus on getting a small prototype up and running, then once you've got that momentum, you can start adding features.

    They say to start but not finish the easy stuff at night so that when you wake up the next morning, you have the easy part to finish, which gets you started. Then, once you've got momentum, continuing on the harder stuff is easier.

    --

    How could I say to men: "Speak louder, shout! For I am deaf!"? -Ludwig van Beethoven
  6. Blocked? You're not interested in the code... by Dr_Harm · · Score: 4, Insightful

    Writer's block occurs when the stuff you're trying to write is SO BORING or otherwise uninteresting and unengaging that you, yourself don't even care about it. I've heard at least one writer say that writers block is a good thing, as it tells him when he needs to go in another direction. I would take the same approach to this situation. You've got this piece of code to write, but it's so uninteresting that you don't even care about it. The question then becomes, "Why?" Is it a feature that isn't really needed? Is it an ugly brute-force approach to a problem? Maybe it's just a piece of backend code that you don't really consider "sexy". Once you figure out why you're not interested, you can then address that problem and the coders block will fix itself.

  7. 3 Things by Aikiplayer · · Score: 4, Insightful
    When I get stuck (kinda often sometimes):

    1. Find something really easy, quick, simple to do. Builds momentum. (At the end of the day, I like to leave myself something easy for the next day to get started on).

    2. Find somebody to discuss the project with. That alone will often get me going.

    3. Get more sleep. This is more of a personal thing, but I find I'm able to concentrate less effectively when not getting enough sleep.

    --D

  8. Step by step process by Nefarious+Wheel · · Score: 5, Insightful

    1) Examine your motives. Do you really want to do this? No? Think about the effect on you if you don't. Spend no more than 2 minutes on this stage. Decide.

    2) Describe the problem to yourself, written, in a single short paragraph. Display this where you can see it as you work.

    3) Determine the absolutely smallest possible component of this job that you need to do. Maybe a 5 minute job. If you can't break down a big job into smaller jobs, you're in the wrong business. Pick that smallest little job and do it. Write it down on a physical list and tick it off. Actually do this step.

    4) Determine the next little job. Work a bit to find the next smallest task. Rinse and repeat.

    5) By this time you might have momentum. But if all else fails, acquire a McDonald's or Wendy's job application. Have it framed and on your wall in front of you. Nothing will motivate you better than that.

    --
    Do not mock my vision of impractical footwear
    1. Re:Step by step process by Jurily · · Score: 5, Insightful

      3) Determine the absolutely smallest possible component of this job that you need to do. Maybe a 5 minute job. If you can't break down a big job into smaller jobs, you're in the wrong business. Pick that smallest little job and do it. Write it down on a physical list and tick it off. Actually do this step.

      4) Determine the next little job. Work a bit to find the next smallest task. Rinse and repeat.

      I hear ya. Whatever you do with that code, keep fiddling with it. Keep your attention on it even if it's just some comment formatting. After a while, your brain starts to get into gear and next time you look up from your screen, the janitor will be telling you to go home already.

      For most of us, there is a certain period of time we have to sit and look stupid, before we can be productive. Just stick with it.

  9. Do some truth by heretic108 · · Score: 4, Insightful

    Sounds a lot like, deep down, you don't really want to be there, or at least you don't want to be working on that project. Are you happy working as a coder? Do you like your particular technical area? Do you truly like your colleagues? Your employer?

    Conditions such as depression not withstanding, it sounds like something deeper within you is trying to tell you something.

    --
    -- In the beginning was the WORD, and the WORD was UNSIGNED, and the main(){} was without form and void...
  10. More to it than that. by Photo_Nut · · Score: 5, Insightful

    Your motivation to work on something has to come from within. That being said, if you are in a depressed mood (understandable in these times), then you are less likely to be productive. I suggest going out for a run, getting your blood pumping, etc. Sometimes caffeine helps. Music helps. Minimizing distractions helps - web browser, cell phone, etc.

    One thing you can do if you want motivation is to reward completing the boring or hard tasks with easier, more fun tasks. Mix up the hard problems you have to solve with minor annoyances. That way, if you can't concentrate on a hard problem, you can at least make some progress. Making progress is the way to get through the doldrums.

    Go to bed early, next to a window facing East. Wake up in sunlight.

    You might also take the approach that video games do - track the work you do. Reward yourself for making milestones.

    1. Re:More to it than that. by OldSoldier · · Score: 4, Insightful

      Many years ago I had a conversation with an author friend who mentioned that by the time she gets to writing chapter 11 in a book she begins to lose interest in completing it. Something along the lines of being far enough into the book to have put a good piece of work in and are bored with the prospect of what lies ahead and not far enough into it that the end is in sight. She mentioned that she just needs to power through those spots. Eventually you'll move through it and the work will become self fulfilling again.

      I think that book-writing metaphor applies here too.

      If this is essentially your first project (or your first solo project) you may not believe there's an joyful end to where you currently are, but if you really believed in what you were doing when you started you'll get that old feeling again when you start to get closer to the end. So ... yea... get back to work.

      BTW, my author friend didn't refer to this as 'writers block' because that term applies to a loss of ideas and inability to figure out what to write next. Her "chapter-11" concern and what appears to be your concern too, is an easier one of lacking motivation; you know what to do you just don't want to do it. Now... if you got a thorny problem and don't know how to get started working on it then ... that's closer to the classical writers block problem.

  11. Re:LSD and Weed by ScoLgo · · Score: 4, Insightful

    *** Whoosh! ***

    --
    "Michael, I did nothing. I did absolutely nothing - and it was everything that I thought it could be."
  12. Sole development is hard by SimonInOz · · Score: 4, Insightful

    Doing it by yourself is, indeed, hard.

    I have done too much of this. Far too much. I need to get back to a group ... over a year away from a company, some years away from a team. My sanity is fading a bit.

    You get the following problems:

          You get lonely

          You have nobody to talk over a problem or a design with - and that's bad. You can get stuck on a stupid problem, and if you talked to someone else they'd have said "You idiot, you just need to use this widget" .. and they'd be right. This is probably the worst one

          You get very jaded. There's no competition, nor does anyone say "Well done Fred. Nice work"

          If you are working at home - the fridge is far, far too close. Nasty

          Your designs get corrupt because there's nobody charged with keeping the design and structure in shape. It's far too easy to cheat - you wrote the code, after all, why do I need encapsulation?

    What to do?

    The fridge problem takes self control, the corrupt design problem is tough, and the loneliness problem is very difficult. Take some external sport, maybe - perhaps some sort of team sport (I skate - in a team. Embarrassing for a geek perhaps, but nice to talk to people completely outside your field).
    But you do need some interaction with your peers - Slashdot is not a good way. Too introspective.

    You need a friend network, for the occasional geek chat, kick in the head, and the odd war story. Oh, and beer.

    Personally I am trying to leap back into the arm of an organisation, with teams. A difficult change, especially in the current climate, but essential for my sanity.

    So I wish you luck.
    You might try studying a completely new environment - Ruby or something, in an attempt to reinspire the child-like wonder that got you into this area. It's still there. Go for it!

    --
    "Cats like plain crisps"
  13. Prioritized Procrastination by EEBaum · · Score: 4, Insightful

    I find that nothing gets me cleaning the apartment like having a project to do. And nothing gets me working on a project like having a clean apartment AND another more urgent, less appealing project to do.

    Right now, if your apartment is messy, work on your current project. Of course, instead of working the project, you'll procrastinate it by cleaning your apartment. When your apartment is clean, get yourself an urgent, unappealing project. Soon you'll be using your original project as a means of procrastinating the new one!

    --
    -- I prefer the term "karma escort."
  14. Re:Shut down your web browser by sznupi · · Score: 4, Insightful

    "Shut down your web browser", especially that part that involves reading or...posting/submitting articles to Slashdot.

    --
    One that hath name thou can not otter
  15. Re:LSD and Weed by tomsomething · · Score: 5, Insightful

    Love the "Insightful" mod! What if I said "ba-ZING!"

    --
    Welcome to Slashdot. Replace this text with your desired signature before replying to a story.
  16. Holiday, vacation, take some time off by will_die · · Score: 4, Insightful

    Take a break, holiday or vacation just get away from it all and don't bring your computers with you. The break needs to be for a min of a week and perferably longer.
    Depending on other factors you could also be suffering from burnout

  17. Test Driven Development by xp · · Score: 5, Insightful

    I find test-driven development a great way to break out of the developers block. Just write a small test, the tiniest most trivial test that you can imagine. Now make it pass. And pretty soon you are back in the game.
    --
    Hate your boss?