Slashdot Mirror


Where's Your Coding Happy Place?

jammag writes "Cranking out code — your very best code — requires being in the optimal environment, muses developer Eric Spiegel. He explores the pitfalls and joys of the usual locales, cubicle, home, the beach. He claims he's done his best coding on an airplane. In the end, though, he suggests that the best environment is a matter of the environment inside yourself, your internal mood — and to hell with the cubicle or wherever. You have to be focused on quality, regardless of the idiot clients. It's all inside your mind. Where's your coding happy place?"

84 of 508 comments (clear)

  1. A matter of the environment? by James+Skarzinskas · · Score: 5, Insightful

    Lightly sweetened breakfast tea, rainy weather outside, window cracked with a brisk morning breeze.

    Oh, yeah, and vim. Emacs can suck it.

    1. Re:A matter of the environment? by DahGhostfacedFiddlah · · Score: 5, Funny

      WRONG.

      Black-as-hell coffee, bright moonlit night outside, but I'm stuffed in a windowless basement with no ventilation, using Emacs.

      On Windows.

      ME.

      Yes, that's how far I'll go to counter one of you VI-loving lunatics.

    2. Re:A matter of the environment? by RemoWilliams84 · · Score: 5, Funny

      WRONG.

      Getting a blowjob with a gun to my head.

      --
      "I don't have to think. I only have to do it. The results are always perfect, but that's old news." - Meat Puppets
    3. Re:A matter of the environment? by Evanisincontrol · · Score: 5, Funny

      Lightly sweetened breakfast tea, rainy weather outside, window cracked with a brisk morning breeze...

      ...John Travolta singing to me, wearing nothing but a thong and a bottle of baby oil...

      What? Oh, sorry, I got lost in your poetry and thought we were describing a romantic evening in San Francisco.

    4. Re:A matter of the environment? by zarthrag · · Score: 4, Funny

      WRONG

      *Giving* a blowjob with a gun to my head.

      --
      Why can't all fpga/microcontroller manufacturers just release free optimizing compilers???
    5. Re:A matter of the environment? by Anonymous Coward · · Score: 5, Funny

      *Giving* a blowjob with a gun to my head.

      Sounds like my last blind date

    6. Re:A matter of the environment? by Chris+Burke · · Score: 4, Funny

      ...John Travolta singing to me, wearing nothing but a thong and a bottle of baby oil...

      What, like, as a hat?

      --

      The enemies of Democracy are
    7. Re:A matter of the environment? by Lillesvin · · Score: 4, Funny

      Make that:
      coding_performance_level = (vi + smokes + (coffee | mountain_dew)) * (100 / hours_to_deadline);
      and you got a deal. ;-) And yes, the inverted division is on purpose. (Btw, you've got one too many opening brackets - or one too few closing brackets depending on how you look at it.)

      --
      "Live free or don't."
    8. Re:A matter of the environment? by edittard · · Score: 2, Insightful

      bright moonlit night outside, but I'm stuffed in a windowless basement

      Perhaps my neck elevation angle is insufficient, but if I was in a windowless basement how would I know what the lunar illumination situation was?

      --
      At the bottom of the /. main page it says 'Yesterday's News'. Well they got that right.
    9. Re:A matter of the environment? by Ortega-Starfire · · Score: 2, Funny

      >Perhaps my neck elevation angle is insufficient, but if I was in a windowless basement how would I know what the lunar illumination situation was?

      You add it to your google homepage. Which on windows ME should also be set to your active desktop background. Feel the pain yet?

      http://www.calculatorcat.com/moon_phases/daily_moon_phases.phtml#google_home_page

      --
      ---- Liquid was a patriot ----
    10. Re:A matter of the environment? by Ortega-Starfire · · Score: 2, Insightful

      Damp? No. Cold? Yes. And Winter is a bitch.

      --
      ---- Liquid was a patriot ----
    11. Re:A matter of the environment? by cjfs · · Score: 5, Funny

      WRONG

      *Giving* a blowjob with a gun to my head.

      RemoWilliams84, meet zarthrag. zarthrag, RemoWilliams84.

      I'll expect the new kernel by Friday.

    12. Re:A matter of the environment? by michaelmuffin · · Score: 2, Funny

      ; pom
      The Moon is Waning Crescent (19% of Full)
      ;

    13. Re:A matter of the environment? by pyite · · Score: 4, Funny

      And yes, the inverted division is on purpose.

      One serious problem with this. Your performance level is something like: constant/hours_to_deadline. Assuming you work to the deadline (logical), you will perform an infinite amount of work as the integral(1/x) on the interval 0 to t diverges.

      If you can sell your boss on this, though, bravo.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    14. Re:A matter of the environment? by Tubal-Cain · · Score: 4, Funny

      Cold? Yes.

      If cold is a possibility, you don't have nearly enough servers.

  2. In My Opinion, a Truly Horrid List by eldavojohn · · Score: 5, Interesting

    Nearly every location on this list is full of distractions. True, I can multitask while the TV is showing something I've seen or do not care about. Unfortunately, if it's a movie out of my Netflix queue, it greatly hampers my progress.

    Some of these places are just plain uncomfortable like public transportation or an airplane.

    Your bed?! The place where you sleep? Seriously? Granted there aren't a lot of places to suggest, this list blows. I'd be swimming if I were near a pool.

    For me the biggest factor is nice studio quality headphones covering my ears producing low volume music. Maybe it's my favorite non-talk radio station (The Current or Radio K) or maybe it's some classical/jazz/rock album I just picked up. My hands and eyes are busy only with the task at hand. An internet connection will help break the monotony for short periods of time and keep me at full operating power. After that, I like to have hot tea, coffee or water at hand to drink and maybe some raw almonds to munch on. A relaxed position and a bathroom within short distance makes for the optimum coding environment.

    Assuming I have no questions about requirements or technology, this is the state I usually like to be in.

    --
    My work here is dung.
    1. Re:In My Opinion, a Truly Horrid List by mkcmkc · · Score: 2, Interesting

      True, I can multitask while the TV is showing something I've seen or do not care about.

      Actually, I do fairly well watching episodes of TV shows that I've already watched into the ground (e.g., MASH). Because I know exactly what's going to happen, I can tune in and out at any time without missing anything. It's kind of meditative.

      I also agree about the headphones. Perhaps these two are related.

      --
      "Not an actor, but he plays one on TV."
    2. Re:In My Opinion, a Truly Horrid List by AuMatar · · Score: 5, Funny

      Perl. That's enough lines per day to rewrite every application in existence. Unfortunately, being perl none of them can be debugged, so he has to redo it again the next day.

      --
      I still have more fans than freaks. WTF is wrong with you people?
  3. Oddly enough... by yorgo · · Score: 5, Interesting

    ...it was while waiting (and waiting, and waiting) to be called to sit on Jury Duty. I sat outside on the smoking patio (middle of summer) near an outlet with my laptop and generated some of the best code of my life. Perhaps I should start volunteering for Jury Duty...

    1. Re:Oddly enough... by bigredradio · · Score: 3, Funny

      Thanks for the tip. I just got a jury duty letter and was avoiding it. I'll give it a shot.

    2. Re:Oddly enough... by Archangel+Michael · · Score: 5, Funny

      I'd Love to serve on a jury. However, I'm afraid I don't qualify to sit on a jury. You see, I'm a A-Hole with a brain.

      So I get the summons, and show up ...

      Judge: "Does anyone here know any of the parties involved in this matter?"

      Me: "Why does it matter?"

      Judge: "Dismissed"

      Me: "I didn't say one way or the other"

      Judge: "I said dismissed"

      Me: "Yes, I heard, I'm just wondering why"

      Judge: "I don't have to tell you"

      Me: "No, but I'm sure all these people here want to know, especially now that I'm bringing their attention to it"

      Judge: "Another word from you and I'll hold you in contempt"

      Me: "How does being on FOX NEWS sound to you?"

      Judge: "Bailiff, remove him please"

      Me: "Don't Taze me bro"

      Bailiff: .... ZAP

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    3. Re:Oddly enough... by LaskoVortex · · Score: 4, Informative

      Depends on your jurisdiction, I'm guessing, but at least when I served they left me, another programmer, and a chemist on the jury.

      You got tapped because you don't know what you are doing. The trick is, when they get to you and ask you about your job and spouse and such, is to proclaim clearly and in your best and most assertive and confident Obama voice, that you are "able to be 100% impartial and will consider only the evidence presented" and, because of your training as a scientist/engineer, are "never swayed by emotional appeal". If you do this, you are the next juror excused no matter whose turn it is to excuse jurors. It works every time for me.

      --
      Just callin' it like I see it.
    4. Re:Oddly enough... by LaskoVortex · · Score: 2, Insightful

      you should be ashamed you are not among them.

      The layers should be ashamed that my techniques work!

      --
      Just callin' it like I see it.
  4. Up in ya, now go away. by b4dc0d3r · · Score: 2

    If you think this is a troll, you obviously don't work amongst people. Just shut up for a while and maybe I'll get that done, but with all your blabbing and meetings and documentation I just cannot do what you're paying me to do.

    Now go away.

  5. Best place != Most pleasant by mcrbids · · Score: 4, Insightful

    Sad to say, but the "best place" to code in depends on what your goal is.

    After the best quality code? The best place is a quiet place, free of distractions, where the problem can be easily and clearly understood.

    Want the best mood while coding? That's when you consider the balcony of a beach-front apartment, or a nice table with comfy chairs at a restaurant with a view for the afternoon.

    Pick your goals, then come up with what you are after.

    The trick is to find a place with a good combination of comfort for long-term developer happiness and contentment and actual good results. So a nice office with full snacks, comfortable chairs, nice lounge, music, being treated with courtesy and respect, decent pay, decent benefits, and having the freedom to develop in a non-restrictive manner, while still being held accountable for the result is a good mix, and that's where most businesses tend.

    Including my own.

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
    1. Re:Best place != Most pleasant by Red+Flayer · · Score: 4, Interesting

      After the best quality code? The best place is a quiet place, free of distractions, where the problem can be easily and clearly understood.

      I'm not sure that's a universal truth. I concentrate best, for example, where there is a constant murmur (or even din) of background noise. It doesn't matter if it's quiet or loud, but both silence, and variations in the volume of noise, are bad.

      I've produced some of my best code next to a loud brook, birds chirping, etc -- but I've also produced some of my best code in a noisy bar at happy hour and in Grand Central Station at rush hour.

      Silence is anathema to good quality code for me -- constant subtle distractions are a great way of grabbing my focus when necessary so that my subconscious can work out a problem.

      --
      "Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
    2. Re:Best place != Most pleasant by twistedsymphony · · Score: 2, Interesting

      I can see that, I hate absolute silence, I code best when I'm listening to music, anything really. At home it's usually some kind of techno, but at work I'm not allowed to listen to music at all.

      Interestingly enough my most productive week at my job ever was when I stayed to work while the company was shut down for construction, the construction noises combined with some FM radio, comfortable clothes and no distractions from chatty co-workers was the perfect storm for getting work done quickly and effectively.

    3. Re:Best place != Most pleasant by Hatta · · Score: 2, Interesting

      All depends on motivation. If I care, I can tune out any distraction. If I don't, any distraction is fatal to my effort.

      --
      Give me Classic Slashdot or give me death!
    4. Re:Best place != Most pleasant by PipingSnail · · Score: 2, Informative

      That implies you must be using a laptop to write code.

      How can you produce your best code on laptop? Thats just incredible. Rubbish keyboard on all laptops and compromised mouse support.

      I've got an excellent laptop, a Dell M6300 and its not up to the job despite a good large keyboard and 1920x1200 screen. Don't even mention a Macbook with its horrible keyboard and even worse mouse/trackpad etc.

      You need a real machine, with good ergonomics etc. So basically that means separate screen (so you are not hunched over it), real keyboard that you situate a decent distance and height from the screen (unlike a laptop), same for mouse, multiple buttons on the mouse (Ouch, out goes the Apple). OS of your choice, Windows or Linux, doesn't matter.

      Airplane? You've got to be kidding. Thats about as useful an environment as sitting at a bus-stop or in a cafe. Plain useless. If I'm in a plane, I'm suffering all the other folks because I want to go to the destination. If I'm in a cafe its because I'm hungry and/or I have some interesting company to hang out with.

      The last thing I want is some inane conversation about football or a TV soap or some girl nattering about her boyfriend interfering with my software thought processes. Thats the unfortunate things about ears, unlike eyes you can't close them.

      Silence. It can be great. As I get older I find I prefer it more. But often I code to music (Zappa through folk, no rap, no hip hop, no drum and bass - what could be worse?). Melody is good (rhythm implied by melody), rhythm without melody (drum and bad, hip hop, rap all fit that) is bad.

      I often puncuate my software writing with playing musical instruments (border bagpipe and mandolin if you are interested). A good long walk often helps as well.

      And yes, I do get to do all these things. I work for myself these days, but previous employers often let me arrive late for work or leave in the middle of hte day for 3 hours to go horse riding. All about getting the right things. I may be gone for 3 hours but most times those days they got 10 hours out of me those days (yes 10 in the office) and highly productive too (Emacs on various Unix and VMS back then).

      Someone mentioned vi. For productivity? You are joking.

      In an ideal world, vi, its progeny and derivatives (including Emacs vi-mode), like smallpox before it, would be eradicated. And all software developers would be a lot more productive. Bill Joy has a hell of a lot to answer for inflicting that upon the software world.

    5. Re:Best place != Most pleasant by xaxa · · Score: 2, Interesting

      in Grand Central Station at rush hour

      I once did a load of work on the Circle Line (subway) in London. It was busy, but I had a seat and knowing no one else would interfere with me was good.

      That's the difference with an office: in an office, some of the noise might be for me -- someone coming to talk to me, or a phone call, or a conversation about something I know about.

      In any other busy place I don't need to listen for anything, so it's much easier to block out.

  6. In my head while driving. by bigredradio · · Score: 5, Insightful

    Sadly, by the time I get to a computer I often lose some great coding ideas.

    1. Re:In my head while driving. by Anonymous Coward · · Score: 2, Insightful

      For me it's not so much a problem losing ideas en route to a computer, but losing the desire to code by the time I've reached it ...

  7. For me, it's music, not place. by Dr.+Manhattan · · Score: 5, Insightful

    I need music with no vocals - mostly classical and techno. I have a special playlist called "coding" for those times when I really need to be focused.

    --
    PHEM - party like it's 1997-2003!
    1. Re:For me, it's music, not place. by kevingolding2001 · · Score: 5, Interesting

      And Eno! Lots of Eno.

  8. On my floor in the family room... by tjstork · · Score: 2, Insightful

    Next to the fireplace, with my son sitting on my back. Doesn't get any better than that. I would have thought it distracting to work from home like this, and instead I think I've written more, and better code, than I have before. Just awesome. One thing I could improve, would be to have some music going... but that's just laziness on my part.

    --
    This is my sig.
    1. Re:On my floor in the family room... by Anonymous Coward · · Score: 5, Funny

      Dang, dad, I am 35. Can't you write your COBOL some other way?

  9. Not a matter of where, but when by Swizec · · Score: 4, Interesting

    It would seem that no matter where I am, the best coding I do is at about two to four in the morning. It's that time of the day when the internet is somewhat at rest because aussies are going home from work and having dinner, americans are just starting to actually work, or are getting to work and europe is mostly at sleep.

    Then just put a movie or some tv show on the second screen and code away. Nirvana.

    However about writing fiction or any sort of prose, I'm very picky as to the locale. It has to be a busy coffee shop or better yet, a club event. No idea why, just has to.

    1. Re:Not a matter of where, but when by try_anything · · Score: 4, Funny

      If you don't like waiting for the internet to settle down at night, I find it helps to wrap some old towels around the tubes. That muffles the sound of the bits flowing through. American bits are pretty loud no matter what you do, unfortunately.

    2. Re:Not a matter of where, but when by ajlisows · · Score: 2, Interesting

      I have to agree with the not where but WHEN being important. For whatever reason, my synapses fire the best between 10PM and 2AM. On the other side, the 8AM to 11AM block has to be the worst. I'll take shortcuts, use non-descriptive variables (Uhhh, i think I used a and b already. I'll go with d), and avoid commenting anything.

      Of course it could be that if I am working in the morning I am at work and if I am working at night I am at home. At work I face countless interruptions and a rather uncomfortable desk setup. At home I have my "Office" where I have a comfortable chair, an old wooden chair if I need to switch to something solid, and "Papasan" chair if I get really desperate. I have a air purifier for some ambient noise or some music quietly in the background. If I am in here with the door closed the wife knows not to come in unless someone we know is dead/dying or if she means business. A break to get frisky can really put me in focused mindset.

  10. I thrive on stress by eln · · Score: 5, Funny

    I'm at my most productive at 2am the night before the project is scheduled to go live.

    I'm at my second most productive at 9am the following day while I'm patching the running code on the live system to fix what I didn't have time to test the night before.

  11. If any friskiness starts up... by Zakabog · · Score: 4, Funny

    Perhaps the serenity of being next to your significant other results in perfect code. If any friskiness starts up, then maybe itâ(TM)s time to go back out to the couch.

    I'm sure it was only intended as a joke, but if any friskiness starts up while you're coding in bed, and you choose to move to the couch, then maybe it's time to rethink your priorities.

    1. Re:If any friskiness starts up... by barzok · · Score: 2, Funny

      Just rest your laptop or keyboard on the small of her back.

  12. Eww .. those are his best?! by Frag-A-Muffin · · Score: 2, Insightful

    Those sound like mostly horrible conditions to work in! :)

    Although place is important, time is probably MORE important. And this is where people will differ even more. I know people that will get up at 5am and get most of their "good" work done by 9am. That's not for me. :)

    My personal best time is later at night. a) most people are sleeping, so not too many IM distractions. b) it's quiet, the neighbourhood is quiet, wife is most likely asleep, it's quiet. I can think.

    In terms of place, most of the time, these night sessions are done in my home office.

    --

    AirSpeak - http://itunes.com/apps/AirSpeak
  13. Silence by tritonman · · Score: 5, Insightful

    Anywhere there is silence. I hate trying to think while listening to people blabbing on the phone or BSing with each other across their cubes.

    1. Re:Silence by networkBoy · · Score: 4, Interesting

      I like coding in my lab, after hours when nearly everyone has gone home.
      Janitor comes by around 7:30/8:00 and I thank him, listening to techno or classical, depending, I'll get more done in that span between 5:30 and 9:30 then many others in my department will get done in an entire week. Alas, the powers that be have banned overtime, so now I don't pump out as much code. To witt, here I am, as always in the afternoon...

      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
    2. Re:Silence by Like2Byte · · Score: 4, Interesting

      listening to techno or classical, depending, I'll get more done in that span between 5:30 and 9:30 then many others in my department will get done in an entire week.

      I totally agree. When I was able to listen to my iPod (before I lost my tunes - doom on me) I listened to Classical, techno and trance. Wow! Depending on my mood, I'd get more code written than at any other time. It didn't matter what idiot-fest was going on around me, either. Plug me in and BAM! I'm gone. I feel I got more work done in a year at one of my coveted jobs than at 4 years at others.

      Music is where it's at. And, no - I wasn't in band in high school.

    3. Re:Silence by Anonymous Coward · · Score: 2, Funny

      After sex. My best code, and best ideas in general, always came after some hardcore sex with my girlfriend or any of my other female friends.

    4. Re:Silence by Alexandra+Erenhart · · Score: 4, Interesting

      Agree. When I'm in silence, I have so much stuff inside my head that I end up being in my own way when it comes to thinking. Music puts my ideas in order and it lets them flow, like the spice, oh yeah. Also it has to be music with no lyrics, cause I end up singing and I can't sing and code. Must be something in my brain :P.

    5. Re:Silence by commodore64_love · · Score: 2, Interesting

      >>>Anywhere there is silence.

      Anywhere there is noise.

      Noise helps distract me from the voices in my head. Just joking. ;-) But seriously, I like my television turned-on to something random like Animal Planet or the History Channel, while I lounge in my recliner. It helps me feel like I'm just doing a hobby, like when I was a teenager, instead of doing work. The code flows.

      I hate silence; it's boring.

      --
      "I disapprove of what you say, but I will defend to the death your right to say it." - historian Evelyn Beatrice Hall
    6. Re:Silence by hviniciusg · · Score: 2, Funny

      You must be new here, that does not happen whit us very frequent

    7. Re:Silence by seek31337 · · Score: 3, Funny

      I think he's offering, dude!

      --
      No SIG for you!
  14. The Zone by clinko · · Score: 4, Insightful

    I don't have a place, I have music and caffeine. If I hear old Crystal Method or Orbital, I immediately think of late nights in the zone with Mountain Dew and Code.

    The only enemy of "The Zone" were morning birds.

    If I heard birds chirping, I knew I didn't have much time left before my mind would go.

  15. The basement?!? by mcrbids · · Score: 4, Funny

    While the basement is quite good for me, I always get interrupted by my partner as this is her favorite place too. What we do while there is just not relevant to Slashdot's audience at the moment. But I will say I hardly get anything done on the coding front when she drops by.

    What... does your mother make you pick up your dirty socks?

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
    1. Re:The basement?!? by BollocksToThis · · Score: 2, Funny

      Please don't ever tell me about your childhood.

      --
      This sig is part of your complete breakfast.
  16. Re:The basement works for me... by Anonymous Coward · · Score: 2, Funny

    Your basement intrigues me and I would like to subscribe to its newsletter.

  17. Work! by benjfowler · · Score: 2, Insightful

    My favourite coding place? Well, I code for a living, and I have to say work, without a doubt. I'm far too easily distracted -- work is the worst place to get stuff done, except for all the others.

    That said, badly-designed workplaces can destroy productivity. If your workplace is anything like mine, where your employer doesn't give a rat's arse about their developers' productivity, everyone will be sat at packed-in "open plan" offices, where every stray, stupid remark, every loud phone call, every meeting and every joke (and resulting braying laughter) meld together to create a totally useless work environment.

    Perhaps that question should be rephrased to "what time of day do you get most work done?". Given the City's workaholic culture, most folks leave the office at 7.30pm, so my productivity peaks some time after that.

    Yeah, I'm a sad bastard with no life :-)

    1. Re:Work! by johnlcallaway · · Score: 2, Interesting

      I prefer my sad little office cubicle also. Both my home and work computers are similar, but I like my tiny little cubicle with no distractions. (I was recently asked if I wanted to move to a larger cubicle and said no, the extra space just mean more room to pile crap.) I can tolerate some of the low level voices I guess because I've worked in this type of environment for so long. I can't really deal with headphones on all day.

      However .. many years ago (25??) my favorite place to debug was Pizza Hut. I would take a couple stacks of green-bar memory dumps, order up a pizza and pitcher of Pepsi, and sit for hours pouring over them with a highlighter, pencil, and steel ruler. The place would let me take over a booth and filled the pitcher when it ran out. The waitresses were always attentive because I always left a good tip and was polite.

      Ahhh....the good ole days.

      --
      I rarely read replies, it's my opinion and if you thought about your opinion a little more, I'm OK with that.
  18. Best Place to Code by Anonymous Coward · · Score: 5, Funny

    Best productivity is in India. Not sure if it's the food or what... but I am 4x as productive as in the US.

  19. Fire alarm? What fire alarm? by PolygamousRanchKid+ · · Score: 5, Interesting

    For me, when I am really seriously coding, I could just about be anywhere; nothing would disturb me. As a matter of fact, a couple a weeks ago a colleague grabbed me on the shoulder at work, while I was hacking away, and said, "We have to get out of here. There's a fire alarm. Didn't you hear the alarm?"

    Um, no, and I wasn't wearing any headgear.

    --
    Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
  20. with my boss... by cbuosi · · Score: 5, Funny

    i love coding with my boss in my shoulder pseudo-auditing my code and constantly reminding me the project schedule...

    1. Re:with my boss... by monkeySauce · · Score: 4, Funny

      I would totally code with my boss. If she was leaning over my shoulder and inviting me to her bedH^H^H reminding me about the project schedule, I could code like all of Windows 7 before lunch.

      So I guess my coding happy place is where the women are hot and the project milestones involve sex.

    2. Re:with my boss... by monkeySauce · · Score: 3, Funny

      What kind of crappy code can you deliver while being distracted by hot women?

      Didn't I say Windows 7? I thought I said Windows 7.

  21. Not really coding... by immakiku · · Score: 5, Interesting

    I was once designing an algorithm to do something at a lower running time, combining a mixture of data structures and graph theory. I had stayed up almost 22 hours in front of a computer to get it done because I thought I was "almost there".

    Then I fell asleep, jerked awake 4 hours later because I had actually solved it in my dream. When I woke up I realized that the solution in my dream was not complete and that there was a flaw with it. With another hour of modification I finished it up.

  22. Cube, late, quiet, music by dazedNconfuzed · · Score: 4, Insightful

    Best? Coding in my cubicle, from 4-11PM, trance/techno playing at moderate volume, and absolutely no interruptions. Productivity is amazing.

    Unfortunately, for no articulable reason I'm required to work 8AM-5PM, interruptions are constant (walk-in/stand-up meetings happening constantly, PA system calling people, factory running across the hall, doors never stay closed. Productivity is ... well ... go figure.

    --
    Can we get a "-1 Wrong" moderation option?
  23. In a good team by decipher_saint · · Score: 4, Interesting

    A tight team of bright progressive individuals has always brought out the best in my work.

    Crappy co-workers, moronic "hands in" managers, noise and meetings that don't produce anything are utter poison. Obviously interruptions of any kind are deadly to productivity, but sometimes that's part of the job and is usually profitable.

    I guess what I'm saying is my productivity is directly related to who and not where.

    --
    crazy dynamite monkey
  24. In all seriousness anywhere with a fresh pint. by zbend · · Score: 3, Insightful

    It sounds like a joke, but I seriously code best with a gentle beer buzz, my boss will never believe me, but its true.

  25. Stevie Ballmer's lounge by bluefoxlucid · · Score: 4, Funny

    Because it's totally geared towards developers, developers, developers, developers!

  26. Anywhere, really by Tyr_7BE · · Score: 4, Interesting

    Back when I was in my undergrad I bought into the whole idea that "I need conditions to be pristine in order to create". Now, a few years spent working in industry, looking back on this view makes me feel like I was a bit of a diva. My brother is a musician and he claims something similar - when he was first starting off, he subscribed to the view that he needed his environment to get into a "creative zone". But the more he wrote music, the easier it got, to the point where he can do it just about anywhere without being affected too much.

    I mean really, if you're focusing that much on loop constructs and variable names that you can't do it anywhere except places where conditions are ideal, then I guess that's you. But for me, the really important parts like architecture strike me when they strike me. Usually when I'm going about my business doing the groceries, or in the shower, or on a bus, or something like that - whatever's been tumbling around in the back of my mind takes on some semblance of form, and pops to the forefront when it's damn well ready, not when the ambient light is at a certain strength and the atmospheric pressure is just so. I don't subscribe to the view that I need a "creative zone" in order to produce properly. Once I get hit with an idea, getting it out into code is just drudgery. That can be done anywhere.

  27. You'd love google by Wee · · Score: 4, Interesting

    They pack 4-5 developers inside these glass-walled cubes. So there's no end to the visual distractions. And then you have overcrowding in conference rooms, so people routinely host meetings in the offices. Or they merely dial in using their speakerphone. Lunch is always a good time because they make it super easy to grab a tray and take it to your office to eat. So if you get an office mate who likes to work through her lunch by slurping incredibly stinky Indian food, you're a very lucky guy.

    Most unproductive place in the world to try and think about coding, expect maybe a steel foundry or a slaughterhouse or a circus big tent.

    The only bright spot is that if you ask about places that might be a little quieter, they give you these really nice Sennheiser headphones. Not so good if you dislike having something on your head 10 hours a day, though.

    Toward the end there it got to where you'd instinctively know which interview rooms or whatever weren't take. If you dim your screen all the way down and shut off the light, you can get maybe four hours straight work in before it's back to the sights, sounds and smells of the cubicle zoo.

    Sounds like you'd fit right in. You should apply.

    -B

    --

    Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  28. My coding? by CompMD · · Score: 4, Insightful

    My office, from 8am-5pm, with soft music playing on the speakers, overhead lights off, desk lights on, door open half way (I'm in a somewhat quiet hallway).

    Why 8-5? Because its my job, not my life.

  29. You want me to access my happy place? by Anonymous Coward · · Score: 2, Insightful

    For starters: Don't make me feel like a criminal because I forgot my access card. Don't hire minimum wage jerks in uniforms to eyeball everyone suspiciously. Don't make me walk past 60 cubes just like mine so that by the time I sit down I feel like the worthless piece of interchangeable shit you obviously think we all are. Don't send me weekly emails reminding me that my every electronic move is logged. Get rid of those freaking eyeballs in the ceiling every 20 feet. Shove your 50 page human resource manual up your ass. Help me forget that working wasn't always like this and doesn't have to be now.

    See? I am starting connect with my inner muse already...

  30. Re:Obvious by b4dc0d3r · · Score: 2, Funny

    Search the google for mindfuck pictures. When you see it, you'll shit brix.

  31. At work, late at night by MBGMorden · · Score: 2, Interesting

    Personally I've found that I get a lot more done at work, but late at night or on a weekend. If I'm on my home machine coding in my spare time, then I'm easily distracted. Something interesting comes on TV, I decide to log onto WoW for a bit, I get hungry and go for a snack, etc, etc. When I'm actually trying to work on a project I can wring MAYBE an hour to an hour and a half per night out of myself. And that's often done while tabbing back and forth between iTunes and other assorted apps.

    At work, during standard business hours, I have more legitimate distractions, but still distractions. Seems like somebody is always calling, or I have meetings to attend, etc.

    The times when I've noticed that I really tear through a to-do list is when I'm in my office late at night. The building is quiet, there is nobody to bug me, and my work machine has virtually no "fun" software installed on it. About all there is to compete with there is Slashdot and Penny Arcade :), which don't take up much time to check. I've literally had things that I figured would take me 2 weeks to complete that I've stayed an extra 4-5 hours one afternoon and completed in one swoop.

    --
    "People who think they know everything are very annoying to those of us who do."-Mark Twain
  32. Coffee Shop by morgauxo · · Score: 2, Interesting

    Not too original as it's already in the article but it's the coffee shop for me. The office is too quiet, home is too distracting. Coffee shop is just right. It takes some good code to make a profit though with all those overpriced treats around.

  33. My coding happy place... by Khan · · Score: 2, Funny

    ...is in my PANTS! Oh-YEAH! ;-)

    --

    "Klaatu, verada, necktie!" -Ash

  34. A distraction free area. by talldean · · Score: 2, Insightful

    Anywhere without other people distracting me. Microsoft's Project Manager book pointed out that developers work best if they're interrupted once an hour or less. And they're damn right.

  35. Obvious by Locke2005 · · Score: 2, Insightful

    My most productive coding environment is any one in which I don't have access to slashdot! But seriously, I need closed doors so I'm not subjecting to interruptions, and fast 'net access for googling for solutions to problems rather then figuring them out by myself.

    --
    I've abandoned my search for truth; now I'm just looking for some useful delusions.
  36. About 3 hours before its due... by mmaniaci · · Score: 2, Interesting

    My best code is produced when the pressure is on. Just last weekend I was participating in a robotics contest and coded a crude OS for a micro-controller in the 5 hours leading up to the competition. It was very simple, but worked well and I was even able to provide simulation outputs when run on a normal PC.

  37. In the shower by MtlDty · · Score: 3, Insightful

    No seriously. I've had some real moments of epiphany whilst mulling over problems from the day before. Sometimes its only when you're away from your keyboard that you start looking at the bigger picture rather than the minutiae of individual classes/methods

    1. Re:In the shower by jmccarty · · Score: 2, Interesting

      Amen to that. I too have had several programming solutions come to me in the shower. Ever just wake up in the middle of the night with insight to a problem you were working with during the day? I need to find a way to prefect TCMP since so many solutions seem to come to me subconsciously.

  38. Not on topic, but... by Weaselmancer · · Score: 5, Insightful

    at work I'm not allowed to listen to music at all.

    Your employers are douchebags.

    What the crap could it possibly matter if you have an MP3 player stuck in your ears? I'd love to hear somebody actually make a good case for it. If you're a doctor and you have to listen for pages, or a jet pilot who needs to hear audio alarms - fine. But a coder? Give me a break.

    This sort of micro managing "you're still in kindergarten" crap always pisses me right off. It insures an unhappy workplace, and that insures poor results. Who wants to do their very best for someone who treats them like a freaking toddler?

    --
    Weaselmancer
    rediculous.
    1. Re:Not on topic, but... by SBFCOblivion · · Score: 2, Informative

      If it's anything like the last place I worked there is a reason for it (although a bad one).

      My old department at my old job didn't like us listening to music because people from other departments would walk by and see us listening to music and then go complain to their managers. Why complain? Because their departments didn't allow people to listen to music for whatever reason. Why couldn't they listen to music if we could?

  39. Re:Music by Lunzo · · Score: 2, Funny

    I listen to the blues while coding. Interpret that as you will.

    If my boss is reading this that was a joke.

  40. Re:I, too, have had productive flights by CrazyTalk · · Score: 2, Informative

    The best piece of code I ever wrote was on a cross country flight. It was an integral piece of the project I was working on, and in a span of about 2 hours I had greater productivity than in most of the rest of the year put together. Of course, that was a long time ago before coach seats got so small that sitting comfortably let alone working became out of the question.