Programming and State of mind.

This is a discussion on Programming and State of mind. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Is it only me or when writing programs you are highly susceptible of going absolutley nuts? Because if it's only ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    75

    Programming and State of mind.

    Is it only me or when writing programs you are highly susceptible of going absolutley nuts?

    Because if it's only me then I must change how I program.

    Thanks.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It can be quite frustrating when things aren't working. You have to be very persistant and quite a pedant/detail oriented person to be a good programmer.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    75
    Quote Originally Posted by matsp View Post
    It can be quite frustrating when things aren't working. You have to be very persistant and quite a pedant/detail oriented person to be a good programmer.

    --
    Mats
    I must be more detail oriented then.

    Thanks

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,408
    You also have to be good at ignoring the details that are just distractions in a given context, i.e., you need to be good at creating and using abstractions.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    And if you're not careful, you begin speculating about the implementation of the real world just after waking up.


    ... yes, that has happened to me.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    you begin speculating about the implementation of the real world just after waking up.
    The other morning I woke up, said good morning to my wife, and thought, "wait... don't I need parentheses after saying hello?"

  7. #7
    Registered User BuzzBuzz's Avatar
    Join Date
    Feb 2009
    Posts
    89
    Quote Originally Posted by sean View Post
    The other morning I woke up, said good morning to my wife, and thought, "wait... don't I need parentheses after saying hello?"
    Depends whether it was a variable or a literal string, so you need to ask yourself - what did you actually mean when you said hello.
    Any help I give may be classified as:
    The Blind leading the Blind...
    Currently working through:
    "C++ Primer Plus"

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    1,198
    Im very often like a square wave when i program...."damnit why isnt this working....damnit damnit damnit damnit" then after a while (pointing in random directions in the air or at the screen where the offending code is is usually involved during this time) I usually figure out how to solve it and thus get very happy and start coding like a madman. Then just repeat said process and you have me programming pretty much.

    A friend of mine says its very entertaining to watch me program.

  9. #9
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    What I usually do is I plan out everything to a fine level of detail. I then go over my plans looking for potential problems and fixing them. Once done, I begin the programming, if relevant. I use a stage system, sort of like a video game, where I split functions into stages, describing the basic routine that should be followed, the write the function following this, starting with the basics then adding the extra complexity needed for the full effect one bit at a time. This way, I avoid the headaches though I still run into occasional problems.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  10. #10
    In my head happyclown's Avatar
    Join Date
    Dec 2008
    Location
    In my head
    Posts
    391
    When I started programming, I found myself starting to do the oddest things.

    1. Thinking about a problem 16/7.

    2. Trying to debug a program in my head while I am lying in bed, waiting to fall asleep. This does not help in trying to fall asleep.

    3. Waking up at 2am or some other ungodly hour, turning on the computer, modifying some code, then trying to debug it. An hour or 2 later(time really flies when you're debugging), turn off the computer and getting back to bed.

    4. Try to program 30 seconds after waking up. But my mind is still in bed, so everything is a challenge.

    5. Trying to cram my head full of programming related stuff that are way beyond my current capabilities, and that I will probably never ever need to use.

    I could go on and on, but you already get the point.
    OS: Linux Mint 13(Maya) LTS 64 bit.

  11. #11
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Quote Originally Posted by happyclown View Post
    5. Trying to cram my head full of programming related stuff that are way beyond my current capabilities, and that I will probably never ever need to use.
    Ah, the classic case of what I call "the law of rapid ability-learning". "One gains experience the fastest and easiest by doing things at their own level". It's a principal I've used for a while. My main weakness with programming right now is pointers. I also get a few of those items you've mentioned, but even if I haven't done any programming in a long while (mostly with planning, figuring out how to resolve an obstacle or trouble spot I encountered).
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  12. #12
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by jordanguyoflove View Post
    Is it only me or when writing programs you are highly susceptible of going absolutley nuts?

    Because if it's only me then I must change how I program.

    Thanks.
    After awhile you stop going nuts and just stay that way, it's more efficient. Once i get 'in the zone' as they say, I'm a machine. I think like a machine, I work like a machine, 16, 24, 36, 48 and sometimes even 72 hours straight without drugs or sleep. I'm bipolar you see, so when these little brainstorms hit, I can get years of work done in a few days. The down side is when they end it can be weeks or months of soul crushing insanity with little or no productivity before another one hits. I once told my psychiatrist its a blessing and a curse. I wouldnt wish it on my worst enemy, but I wouldnt give it up for anything in the world. I find self-flagellation helps sometimes.
    Last edited by abachler; 04-03-2009 at 01:57 AM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  13. #13
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,597
    Programmers are messed up people, with messed up problems.

    Great, I fit right in.

    Seriously though, it is kind of nice to know that I'm not the only one who exhibits 'obsessed' behavior over code at times.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  14. #14
    Registered User
    Join Date
    Oct 2008
    Posts
    75
    Hahaha

    One gains experience the fastest and easiest by doing things at their own level". It's a principal I've used for a while.
    I thought about the same thing the other day.
    MUST NOT look at very tempting out of your league stuff.
    BAD, mmkay.

  15. #15
    Registered User
    Join Date
    Oct 2008
    Posts
    75
    Quote Originally Posted by abachler View Post
    After awhile you stop going nuts and just stay that way, it's more efficient. Once i get 'in the zone' as they say, I'm a machine. I think like a machine, I work like a machine, 16, 24, 36, 48 and sometimes even 72 hours straight without drugs or sleep. I'm bipolar you see, so when these little brainstorms hit, I can get years of work done in a few days. The down side is when they end it can be weeks or months of soul crushing insanity with little or no productivity before another one hits. I once told my psychiatrist its a blessing and a curse. I wouldnt wish it on my worst enemy, but I wouldnt give it up for anything in the world. I find self-flagellation helps sometimes.
    I heard about that, but 72 hours is just out of my reality.
    I can't even go 24 hours without sleeping unless I am on something.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 08:09 AM
  2. Serial port programming in Linux
    By g4j31a5 in forum Linux Programming
    Replies: 20
    Last Post: 11-06-2006, 09:44 PM
  3. current state of game programming
    By Laserve in forum Game Programming
    Replies: 1
    Last Post: 04-28-2005, 05:12 AM
  4. Replies: 0
    Last Post: 07-22-2003, 11:29 AM
  5. Independent & Effeciency :: Programming Concepts
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 06-08-2002, 05:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21