Slashdot Mirror


Finding a Personal Coding Trifecta

jammag writes "For Seinfeld's George Constanza, his dream of the ideal moment was having sex while watching TV and eating a pastrami sandwich. He called this Nirvana state 'The Trifecta.' Developer Eric Spiegel adapts this concept of Nirvana to the act of writing your best possible code. He examines all (or most) of the possible things that might contribute to the 'The Trifecta' for developers — food, beverages, time of day. Spiegel also describes his personal Trifecta."

35 of 188 comments (clear)

  1. my trifecta by larry+bagina · · Score: 5, Funny

    taking a shit, eating pizza, and a porn-star quality blow job.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

    1. Re:my trifecta by choongiri · · Score: 5, Insightful

      I have mod points, but instead of modding this post funny I'd rather point out that it's actually about 10x more intelligent than the article. How did this garbage get on the front page?

    2. Re:my trifecta by psychodelicacy · · Score: 3, Funny

      As a member of the female species, I would like to nominate my trifecta: A healthy and nutritious alfalfa salad; some Evian water (in the branded bottle, of course); and an episode of "Sex and the City" playing in the background.

      I mean, get serious. Having a manicure? Whilst trying to type? I'm not gonna let anyone be in my vicinity while I'm coding, let alone some vapid manicurist. Sheesh.

      --
      A closed mouth gathers no foot.
    3. Re:my trifecta by Anonymous Coward · · Score: 2, Insightful

      I agree.

      my coding trifecta is more like: 3 Pints of Guinness, 2 joints. and actually there isn't a third part to it.

  2. Oblig by sys.stdout.write · · Score: 5, Funny

    You only need one thing.

  3. yum, stereotypes! by Peganthyrus · · Score: 3, Insightful

    (Unless of course you are the rare female coder, but then weâ(TM)d have to replace eating the pastrami sandwich with getting a manicure.)

    Wow, way to avoid reinforcing stereotypes there, Eric!

    --
    egypt urnash minimal art.
  4. hmm by greywire · · Score: 5, Insightful

    while the article is lame, the subject is not.

    More important than what you need to get into your zone (because I think we all know how this works for our own needs), is how do you explain this to others who do not understand "the zone"?

    The hardest part for me is getting others to respect my zone. They just don't understand. For kids, you can't really blame them. You just have to stay out of sight and out of mind. But for the adults, they often just don't get it.

    The biggest "zone breakers" are interruptions of any kind or duration. Having to stop for even one minute to take a call or acknowledge a communication can break your flow completely and it can take time to get back into gear. I think there have even been studies showing it takes some 15 minutes average to get back.

    And of course this applies to anyone doing something highly creative or thoughtful.

    --
    -- Senior Software Engineer, Attorney appearance services, locallawyerapp.com.
    1. Re:hmm by NewbieProgrammerMan · · Score: 4, Insightful

      The biggest "zone breakers" are interruptions of any kind or duration. Having to stop for even one minute to take a call or acknowledge a communication can break your flow completely and it can take time to get back into gear. I think there have even been studies showing it takes some 15 minutes average to get back.

      That's one reason I hate working in a busy office environment: most workplaces seem to encourage people to interrupt each other. There's always a meeting, or a phone call, somebody wanting your attention, or some "emergency" knocking you out of a state in which you can make any progress.

      It seems to me that it's a lot easier to get difficult things done at home where I can unplug the phone and internet connection and just work. It's better for others, too--if a good random idea pops into my head, it can sit in my outgoing mailbox queue instead of egging me on to walk over to someone's office/cubicle and interrupting their work.

      --
      [b.belong('us') for b in bases if b.owner() == 'you']
    2. Re:hmm by i_ate_god · · Score: 2, Interesting

      >

      The biggest "zone breakers" are interruptions of any kind or duration. Having to stop for even one minute to take a call or acknowledge a communication can break your flow completely and it can take time to get back into gear. I think there have even been studies showing it takes some 15 minutes average to get back.

      While I agree 90% of what you just said, I always find that a zone break is something I want after a few hours, without realizing I want it. Zone breaks, mind is distracted by something else, I go back a little refreshed. Yeah, it takes me a bit of time to get into that trance like state of mind, but I get there by checking what I just did in the previous trance. Sometimes when you hit that trance like state, mistakes creep in, or you forget to comment something. That little break helps me get through those smaller tedious tasks WHILE coding, rather than spend a day doing it when I'm done the feature I'm working on.

      --
      I'm god, but it's a bit of a drag really...
    3. Re:hmm by linzeal · · Score: 2, Interesting

      People that interrupt you repeatability in a creative industry are fishing for ideas. Do not withhold your ideas from the group at large, merely feed the psychic vampires disinfo. I treat any corp office job like a mini-series 1984 and I try to get my idiot co-workers led away by the thought police holding all their belongings in a cardboard box.

  5. Some folks don't need a zone by willoughby · · Score: 3, Informative

    I can't remember where I first read this definition...

    Professional:
    Someone who can do his very best work, even when he doesn't feel like it.

    1. Re:Some folks don't need a zone by im_thatoneguy · · Score: 4, Funny

      Professional: Someone who can do his very best work, even when he doesn't feel like it

      n.
      1) A fabled mythical creature.
      2) A robot.

    2. Re:Some folks don't need a zone by NewbieProgrammerMan · · Score: 4, Insightful

      If somebody can do their best work at the drop of a hat, no matter how they feel, I'd venture a guess that their best isn't very good.

      --
      [b.belong('us') for b in bases if b.owner() == 'you']
    3. Re:Some folks don't need a zone by $0.02 · · Score: 5, Interesting

      Only the mediocre are always at their best. (Jean Giraudoux)

      --
      If enithin kan gow rong it whil. (Murfey)
  6. simple by speedtux · · Score: 4, Insightful

    A few days of a free schedule, no interruptions, and a private, quiet workspace will do the trick for me.

  7. What's the one thing I need to code? by composer777 · · Score: 5, Insightful

    Go away...
    No, seriously, just go away...

  8. Re:trifecta by Z00L00K · · Score: 2, Insightful

    Whatever makes you happy is the important part.

    And writing good code will make your life easier than writing sloppy code since the sloppy code will haunt you forever.

    Just being able to avoid those 02:00 in the morning calls the day before an important event accounts for a lot. A clear conscience makes you sleep well and have time over for your favorite actions. If that resolves to painting, making love or hunting that's a different issue.

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
  9. My Trifecta: No Boss, No Boss, No Boss by reporter · · Score: 5, Interesting
    My trifecta is the following.
    1. Absence of a boss whose primary concern is his own promotion.
    2. Absence of a boss who threatens you with loss of employment if you refuse to work more than 40 hours per week.
    3. Absence of a boss who demands that you echo the party line. You are expected to say, "Yes. The API implementation that I received from department XYZ is wonderful." just because the department is managed by the girlfriend of the CEO.
  10. three for me by dmomo · · Score: 4, Interesting

    1) A clear notion of the task at hand (very rare in most work places)
    2) An interesting problem to solve (even more rare)
    3) The ability to focus. No interruptions or noise.

    The third one, however is so damn rare, that if I were granted it.. I'd be most reticent to push my luck by asking for the first two. The laughter of upper management alone will certainly be loud enough to wake me from the day dream.

  11. Here's mine: by Anonymous Coward · · Score: 3, Interesting

    1. 11 pm.
    2. Good headphones.
    3. Good music.

  12. TRIfecta? by FlyingSquidStudios · · Score: 3, Insightful

    Why does his trifecta have five points?

  13. How about...QUIET?? by symbolic · · Score: 3, Insightful

    He completely overlooked this - in fact, I found this comment rather amusing: "...so I can take little mental breaks and sing along." Around coworkers. Whom, he assumes, have their earbuds in. They may have their earbuds in, but it might be that they are pursuing the lesser of two completely undesirable options. I used to think like he did - that I needed music in order to code. After trying a little experiment where I went without for a while, I realized how much I had been kidding myself. I am now a strong believer that there's nothing like a quiet environment for allowing one to focus on their work.

  14. My Trifecta by im_thatoneguy · · Score: 2, Informative

    1) Inspiration and motivation. (The project is appealing with interesting and stimulating challenges.)
    2) Optimism. (The project has clear and attainable goals. I look forward to completion because I think it'll be a great product.)
    3) Competition and Recognition. (My project is going head to head with someone else's and or might receive recognition. I'll work faster. I'll be less likely to lose Optimism or Motivation and it'll challenge me to push beyond the comfort zone.)

  15. Re:pyschopath by thetoadwarrior · · Score: 4, Funny

    Chill out. The bible doesn't say you can't have a shit and get a blow job at the same time. So if the bible isn't against it then where are you getting this high moral sense from?

  16. My Three by SirLurksAlot · · Score: 5, Interesting
    1. Caffeine
    2. Groove Salad
    3. Headphones
    4. Bonus: A deadline

    The first is best in low to medium doses, anything more than that and I'm too wired to really focus. Best served green and carbonated or with equal amounts of milk and sugar. The second falls under the category of "repetitive music with few to no lyrics." The third can actually stand apart from the second because I've found that even if I'm not actually listening to anything at the time people see the headphones and (usually) give a second thought to bothering me, especially at work. Finally the deadline is a big factor because like many people I seem to produce my best code under pressure.

    Of course it also helps to have tools that I don't have to fight against to get things done, time away from my coworkers (who are usually great fun, which is actually the problem), and no constant email interruptions.

    --
    God, schmod. I want my monkey man!
  17. My 3 by Daimanta · · Score: 3, Interesting

    1. night
    2. near total silence
    3. no other people awake in the vicinity

    I have found that these three help me to focus on my task and nothing else. No distractions, no obligations to anyone and the silent hum of my pc help me to focus on my goal, whatever it might be.

    This is fully personal however and other people may find this the most displeasent way to be productive. This might not be the ideal situation for me but I feel very comfortable and it can be reached quite easily once a day.

    If these conditions are fulfilled and I am devoted to my task I can get some good work done. My problem is that I need to reach a certain waypoint in my work or else I can have a sleepless night thinking about how to finish it.

    --
    Knowledge is power. Knowledge shared is power lost.
  18. I would also add... by ThousandStars · · Score: 2, Insightful

    Atmosphere or equipment. In my case, I like a quiet spot, an Aeron, and a Model M keyboard. Ridiculous? Maybe, even probably. But they help me get in the zone to work much more than, say, music, which I mostly find irritating.

  19. Re:pyschopath by SetupWeasel · · Score: 3, Funny

    Well then you really don't want to hear my trifecta. It involves choking people without a sense of humor to death by ramming my cock, covered in shit, down their throat, and that's just the first part!

  20. Re:trifecta by xaxa · · Score: 4, Informative

    1) Very large glass of water (I'll lose concentration shortly after it runs out)
    2) Relative quiet, not many people walking around or making phone calls.
    3) My favourite coding music (psytrance or futurepop, depending on my mood)

    Also important
    4) Knowing I'm unlikely to be disturbed, and that I'm not being watched.
    5) No imminent deadline (be that the project deadline, or the told-Ben-I'd-go-to-the-cinema-at-7 deadline).
    6) Some fresh air and exercise (cycling to work, and walking round a nearby public garden/park at lunchtime).

    I think most important is
    0) A good sleep the night before.

  21. Why trifecta? by xkillyourfacex · · Score: 2, Interesting

    I'll play along, but I don't get it. "vitamin r" + a 40oz, posicore/youth crew hxc on the stereo, and programming = coding trifecta. Can't do that every night obviously but if I can do it, I absolutely will do it, it's the best way to program... or to do anything, really. Of course, I'm failing to mention the half-dozen other conditions equally critical to the "coding zone".

    I don't think any programmer can narrow down only two factors (plus coding) that comprise the nexus of programming. that number is unrealistically low and suspiciously arbitrary -- what, just cause the word "Trifecta" is a fashionable internet meme you think there ought to be a coding Trifecta? Admit it, you just like saying the word and you like being heard saying it. Some kind of nerd ego thing? You just want to fit in? You want to announce to others that you're in the know? "Hey, look here... I said Trifecta. That's THREE things... Yea, I got the 411 on that. I can count all kinds of things to THREE, for example coding focusizers, so what's up?"

    Come on, people. This is why jocks think nerds deserve a fist to the face.

  22. Mine by thatskinnyguy · · Score: 3, Interesting
    1. Whole pot of coffee. If said coffee pot is empty there will be a break while coffee is being brewed.
    2. Two packs of Marlboro Menthols. That is in case one pack runs out. If I can't smoke at my desk, the work is going to be shit because my concentration will be broken by a jonesin for a fix and a trip outside.
    3. My desk chair that was fashioned from the driver's seat of my last car. It's made to be sat in for hours unlike normal assless desk chairs.
    --
    The game.
  23. Re:My Trifecta: No Boss, No Boss, No Boss by $0.02 · · Score: 2, Informative

    Couldn't you simplify that to just

    Absence of boss?

    --
    If enithin kan gow rong it whil. (Murfey)
  24. Trifecta? I didn't know Jessica Alba by ClosedSource · · Score: 4, Funny

    had two identical sisters.

  25. Re:My Trifecta: No Boss, No Boss, No Boss by syousef · · Score: 2, Funny

    1. A sinecure

    2. "Working" from home

    3. A fat paycheck

    You don't get these coding though. Think an ex-politician, a diplomat, or perhaps CEO of a failed bank.

    --
    These posts express my own personal views, not those of my employer
  26. Re:How I would like to acheive Nerdvana by pyite · · Score: 2, Insightful

    So let me sum it up... 1) No accountability 2) Not a team player and too good to help others and 3) Not willing to interact with non-technical people.

    Okay, then! Remind me never to hire you.

    --

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