At some point while sitting in front of the terminal, whether it be ten hours or two hours after logging on (or after not getting to log on 'til after lunch 'cause of something more important at home, or something just plain stooopid) my brain seems to forget any semblance of logic --- I leave the $ off of vars, I leave the () off of functions (well, maybe not) but --- the logic of programming just seems to leave.

   Does this ever happen to anyone else? How do you get past it? How do you handle it? Is there a scientific reason for, or a nomenclature for this phenomenon?

   AAAHHHHHHHHHHHHHhhhhhhhhhhhhhh....

Gee, I wonder if that helped....back to the screen?

    It happens when I get tired. Mostly it's really simple things, like the $, or the second = in a conditional statement.

      Hmmm.. you probably need to run this:
      ob_clean (brain);

      As described @.net:
      This function discards the contents of the output buffer.

      This function does not destroy the output buffer like ob_end_clean() does.

      Don't use the ob_end_clean, I guess 😉

      knutm

        This happens to me a lot Dalecosp 🙂 I think it must have something to do with sitting in one spot for an exceptionally long period of time - that whole "lack of oxygen to the brain" thing.

        What works for me is to jump up, do some jumping jacks, run around the desk a couple of time, stick my head out the window for some fresh air, and then do a couple of toe-touches. Not only do you get a fresh look at your code, the head rush is great! 😃

        -Elizabeth

          Originally posted by mogster
          Hmmm.. you probably need to run this:
          ob_clean (brain);

          Aye, indeed this is very true; 'cept in humans it's called "sleep", which is entirely unlike sleep(), but ... oh, never mind. But the brain definitely needs a chance to do all the little administrivia jobs that pile up during operation, just like a computer...

          What do I do when my brain goes "pfft!"? I go "pfft!" back and then do something totally unrelated for a while.

          Elizabeth: I've long held the position that a lot of the twentieth century can be explained as a result of the fact that so many of the most influential people of that time wore devices that served solely to restrict blood flow to the brain.

            it's bizarre: when I get tired of PHP programming, I seem to revert to basic (which I started with years ago) ...

            for $i=0 to ... /* oh f*** I should be going home now!!! */
            

            at this stage, I usually meet a friend in a pub. however, since I'm, still stoned, the first half of an hour he has got to do the talk.

            😉

              i go sleepy:o

              ZZZZzzzZzzZzZz

                Write a Reply...