in reply to Personality Splits and Programming

I've noticed a number of Perl hackers take the drug Ritalin, presumably to treat ADHD. As noted here, Ingy even gave a talk at YAPC::Taipei entitled "Kwiki, the Ritalin and Everything". This drug does seem to allow some hackers to hyper concentrate for long periods.

Replies are listed 'Best First'.
Re^2: Personality Splits and Programming (ritalin)
by tye (Sage) on Aug 05, 2009 at 07:47 UTC
    This drug does seem to allow some hackers to hyper concentrate for long periods.

    I can see how to interpret that phrase such that I don't disagree with it. However, it seems likely that some will interpret it differently and even that eyepopslikeamosquito might have meant it in a way that I strongly disagree with. So I'll take this opportunity to complain about some common misconceptions about ADD/ADHD and medications used to treat it while disputing one interpretation of that sentence.

    However, it is likely more accurate to characterize such as the Ritalin preventing distractibility, thus allowing the ADD to cause hyper focus; not that the Ritalin is causing hyper focus.

    Back to the topic of this thread, there are different programming tasks where different environments can help or hinder them. There are programming tasks that require such mental focus that mundane noises like music or nearby conversation are distractions that stop me from making progress. There are programming tasks where some background noise is required in order to be able to keep at the task the most successfully. And I've had cases of programming tasks where being slightly buzzed on alcohol was helpful.

    When the alcohol helps, it seems to be that it somewhat slows down and somewhat dulls my mind, making it easier to stay focused for longer. Without alcohol, the task is rather boring and unchalenging and thus hard to keep doing. With alcohol, the task becomes just chalenging enough to keep my attention.

    Everybody has an optimal level of stimulation. Most people have a very strong preference for achieving this level of stimulation. So some people are constantly needing to go do something extreme. Some people are constantly looking for a nice quiet place. You can even oversimplify this and decide that daredevils lack internal stimulation so have to seek external stimulation while introverts have rich internal stimulation and thus avoid excess external stimulation.

    Some programming tasks are quite taxing on my mental abilities and so I have to do them in the most peaceful of settings. At the other extreme are programming tasks that are only taxing of my patience and thus a beer can be helpful. Most programming tasks for me fall between those two extremes and a little background noise provides just enough additional stimulation such that I don't feel the need to go searching for more stimulation and so can stay focused on programming.

    I've had a couple of friends tell stories of programming when more than just buzzed and having amazing revelations... only to wake up the next day to utter crap code that makes no sense at all (and doesn't work). I've never tried to program when drunk.

    - tye        

      Everybody has an optimal level of stimulation. Most people have a very strong preference for achieving this level of stimulation. [...]

      Some programming tasks are quite taxing on my mental abilities and so I have to do them in the most peaceful of settings. At the other extreme are programming tasks that are only taxing of my patience and thus a beer can be helpful.

      I think this is incomplete.

      A point Marvin Minsky has made is that investigation into "intelligence" is a spurious chase as long as you think of it in the singular. The contention is that what we perceive from the outside as "intelligence" is really a huge bucket of completely unrelated mechanisms for totally different tasks, and what we perceive is an emergent property of all of them acting in semi-random configurations on the tidbits we feed them.

      Now, if you disagree with that in broad, there's no point reading further. But if you go with it, I think it expands the understanding of the issue here. Your "mental abilities" are no more singular than "intelligence" is. Nothing is ever taxing on your mental abilities; it's taxing on some mental ability, or realistically, on some combination of your mental abilities. The rest of them are just sort of floating around twiddling their thumbs.

      That's where distraction comes from; those pieces that aren't being used are still turning over, waiting for something to grab onto. If I don't need my internet connection, I can unplug my router. If I don't need music, I can unplug speakers. Don't need to know the time, unplug the clock. But I can't unplug pieces of my mind. The mind commands the body and it obeys; the mind orders itself and meets resistance.

      There are things I've been unable to make progress on without music playing. Sometimes, very loudly. That's not because the music is helping me think; it's because the music is helping me not think, with those mechanisms that aren't involved in what I'm trying to do, but are still searching for input somewhere. I keep them busy so they don't go seeking out stimulation elsewhere and drag me away. It's actually the same problem you solve when you work in silence; eliminating distractions. It's just that in that case, you're eliminating external distractions, while in the other, you're harnessing external distractions to eliminate internal distractions.

      I'm a twitchy sort; I have to have things on my desk to fiddle with. There's a pen on my keyboard I get to clicking; a folding knife I'll open and close and twirl. I've had a mini-Slinky that got flung around. I've even got a Ball of Whacks. It claims to be a "creativity tool" and a "creative stimulant". But that's crap. Fiddling with it doesn't lead me to new ideas; it keeps my hands and part of my mind busy, so the rest of me can ignore those bits of me and think.

      Heck, it's the same thing you do with kids; you give 'em something harmless (well, as harmless as anything is in the hands of a small destruction machine :) to do to keep them out of your way while you try to do something else. All your mental tools are like little children in that way; if you don't feed them, they'll scream and yell until you do, so if you want to be able to get anything done they need to be either involved in it (and some problem do involve nearly everything you can bring to bear), or otherwise appeased. And indeed, chemically-induced altered states can function the same way as these other distractions, at least for some people.

      Well, except most jurisdictions frown on applying them to your kids...

        Thanks for your thoughts.

        I don't have a strong opinion one way or another about "multiple intelligences". It certainly makes sense in many ways to me.

        But it also seems to at least somewhat contradict one phenomenon I noted. Certain programming tasks require so much concentration that I must have utter peace. I really don't think that these programming tasks exercise every single one of my brain's "intelligences" so I don't see how total lack of distraction is advantageous there when using this theory of "distracting your other intelligences".

        And, there really does appear to be an optimal level of over-all stimulation that most people strongly work toward. Any number of forms of stimulation work for me, each by itself. So I'm happy riding my bike or reading or doing a puzzle, usually without any extra stimulation. But riding the bus or watching a show or less intense conversation leaves me almost desperate for something to fiddle with. And watching an interesting show or programming usually has me wanting some background task to go along with it.

        Brain wave studies might shed some light on this. Concentrating results in a certain frequency of "brain wave" to become dominant, perhaps to globally communicate to your whole brain to shut up with the distractions unless you are involved in the important work currently being concentrated on?

        - tye        

Re^2: Personality Splits and Programming
by xyzzy (Pilgrim) on Aug 05, 2009 at 16:42 UTC
    Ritalin and related ADD/ADHD drugs are mild (compared to illicit doses) amphetamines, so they will act like a stimulant. I have stayed up all night hammering out code under the influence of cannabis and Adderall (20mg XR). The only problem is since the drug is designed to treat people with an (arguably) real disorder, if you don't have ADD/ADHD it will just make you hyper, twitchy, and able to think about 23 things at once, which could be a good thing if you need to multi-task but if you're looking to concentrate on one specific problem then you might not get as much done as you hoped.


    Everything is true." "Even false things?" "Even false things are true" "How can that be?" "I dunno man, I didn't do it."
      Ritalin isn't really mild in reality even when compared to other illicit dosage, the argument is, if someone has ADHD, it would be mild because it has some disorder that takes in its effect for it to work on but if someone (otherwise healthy)uses it to hyperfocus andthat mild affect turns out into many ugly manifestations, noisy irregular heart beats, dilated pupils, random blood pressure changes to just quote few. So it can be a double-dagger, its abuse is rampant too. I think for my case, I would settle to a mug of green tea and a dim room for a while, sort of flushing out the clogged thinking reservoirs when hammering a code and then go and resume hammering it, I heard there is this herb or shrub called Ghat, it makes them focus like 12 hours straight, but I am a chicken to try these...unleashing my imagination through natural routes can make me remember what I have been doing after having done with it instead of waking up from the state I got in and not being able to understand the code I wrote, now that is somewhat embarassing....

      I want to see what other monks think and what they do in order to get in the mood when writing some code, these clues can be rewarding to us all, right?

      Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind