View Poll Results: Should I smoke crack while programming?

Voters
25. You may not vote on this poll
  • Yes! It gives you that "Creative Edge"

    4 16.00%
  • Why are you asking me these questions?

    5 20.00%
  • Mommy took my crack pipe! *Cries*

    2 8.00%
  • You are so stupid.

    14 56.00%

Thread: Hehe, look at this code. (Not looking for help)

  1. #16
    It doesn't matter whether you give types and variable names or just types in the function prototype. It works exactly the same either way. Although putting the variable name wastes time.
    -Mike
    {InFeStEd-ArCh0n}

  2. #17
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    I like to put the names in if I have decriptive names. The whole idea is that you should be able to look at the prototype and see what the function will do for you. This works better if you have names in there.

  3. #18
    sorry for getting back to the subject of goto's, but just as Prelude said, people who don't know how to use them shouldn't use them. The problems I see with it, is sometimes the labels overlap. Another thing is it is hard to debug, and hard to pick through your code. I use goto like once or twice in most of my projects.

  4. #19
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    I don't think goto's are the problem. maybe it's a bad programming technique but it was used in earlier languages. the compiler compiles them the same right? I know the machine has different types of memory levels/settings or something... anyway, I find it normal to use them, not regularly, but for quick jumps from a code fragment to another to save time processing in a program. thinking about this for a sorting algorithm now...
    think only with code.
    write only with source.

  5. #20

    Post GOTOs

    For text-based adventure games goto canreally make things confusing but they were used often back in the old days for one of the greatest text games ever........... ZORK!!!!

  6. #21
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163
    i just voted on the crack pipe one because i like it
    +++
    ++
    + Sekti
    ++
    +++

  7. #22
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    dont i love the result
    it is so true

  8. #23
    First we argue about goto's, now we're talking about Crack. This is truly the programming messageboard for me.
    -Mike
    {InFeStEd-ArCh0n}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM