Jump to content


You know you shouldn't be a programmer when...


21 replies to this topic

#1 karligula

    Valued Member

  • Members
  • PipPipPip
  • 180 posts

Posted 08 February 2006 - 06:30 PM

... you cross your fingers every time you run your code (I seem to be doing that a lot lately(!))

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 08 February 2006 - 06:35 PM

LOL

"Run it, change something, run it again to see if it works" is a valid, if slow and error prone method of software development... :unsure:
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 Mihail121

    Senior Member

  • Members
  • PipPipPipPip
  • 1050 posts

Posted 08 February 2006 - 07:27 PM

Don't forget also that the "printf" debugging is a completely legal and widely used way for correcting bugs and memory faults!

#4 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 08 February 2006 - 07:39 PM

Hah. I think every programmer is like that, really. Granted, if you're doing that on HelloWorld, you've got issues. :)

A good way to improve the outcome of your running is unit testing, however. :)

#5 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 08 February 2006 - 08:38 PM

i love it in c#, where i can actually predict the errors while compiling. i _bet_ that'll get a deadlock here..


it's locking!! it's locking!!!! who payes the beer now, dudes?!!? :D
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#6 Alex

    Valued Member

  • Members
  • PipPipPip
  • 152 posts

Posted 08 February 2006 - 08:42 PM

I find it even more scarry if you compile something (to have an excuse to check ur mail or so) that can impossibly work cause it violates at least 2 fundamental assumptions made all over the code..and it runs without any obvious glitches...

Alex

#7 .oisyn

    DevMaster Staff

  • Moderators
  • 1810 posts

Posted 08 February 2006 - 09:05 PM

@ Alex: heh yeah, I had something similar last week. I am working on a scene management system that does all the culling and passes all the appropriate data to the renderer. You can mark a model with flags telling you want it to be dynamically lit and whether it should cast shadows. It all worked fine for some time now, until I saw the statement setting these flags (not my code) using the logical or operator (||) instead of the bitwise one (|). Turns out that it was working correctly because I, in turn, wasn't reading the bitmask correctly. d'Oh! :unsure:
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.

#8 Wernaeh

    Senior Member

  • Members
  • PipPipPipPip
  • 368 posts

Posted 08 February 2006 - 09:15 PM

You shouldn't become a programmer if you spend an entire week of your holidays playing with your shiny new stage piano, instead of finding that
nasty multithread deadlock bugger :)

Well, perhaps I should reconsider that... After all, as long as you drink your
daily caffeine and don't go to bed before 5 a.m., I guess it doesn't matter
what kind of keys you actually hit :o)

Cheers,
- Wernaeh

#9 Ed Mack

    Senior Member

  • Members
  • PipPipPipPip
  • 1239 posts

Posted 09 February 2006 - 05:00 PM

... when you estimate the length of daily chores perfectly.

#10 kariem2k

    Valued Member

  • Members
  • PipPipPip
  • 207 posts

Posted 09 February 2006 - 05:34 PM

LOL,but that happen when you enter a new field of programming but after some time you will not cross your fingers any more :), you will be sure that it will work.
also as a programmer you are like an inventor who is making a mathmatical proof,he of course he has the tools (Mathmatics knowrldge) and you have the knowldge of programming.

#11 ProgramWizard

    Valued Member

  • Members
  • PipPipPip
  • 143 posts

Posted 16 February 2006 - 10:19 PM

...when you get bored during programming. Seriously. I've heard people say how much they hate it, and then turn around and say that it's their calling in life.
Firefox: ProgramWizard's official web browser
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)

#12 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 16 February 2006 - 10:39 PM

Meh, I get bored with it sometimes too. :)

But that's what video games are for. :D

#13 Superfly Johnson

    New Member

  • Members
  • PipPip
  • 19 posts

Posted 17 February 2006 - 02:12 AM

Lolgorithm Says Hi

#14 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 17 February 2006 - 09:37 PM

Ugh. Not the stupid Lolgorithm. It's really not funny to most people that didn't go to your school.
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#15 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 17 February 2006 - 09:55 PM

You could've left it at "It's really not funny".

#16 moe

    Valued Member

  • Members
  • PipPipPip
  • 270 posts

Posted 17 February 2006 - 11:05 PM

...your first program ever said something other than "HelloWorld".

...you don't know the difference between an array and a linked list.

...your test functions have a name other than foo, bar or foobar.

...you look into the mirror and don't think about how to compute the reflections.

...you think "2 + 2 == 5 is true for extremely large values of 2" is not funny.

...you don't have a coffein level greater than 5%.

...you're in danger and your first thought is not F1.

and you should not be into game programming when...
...you see a house beeing build and you don't think: "why is it rendered in wireframe?"

#17 Jynks

    Member

  • Members
  • PipPip
  • 84 posts

Posted 18 February 2006 - 12:18 PM

the longer u leave it b4 u run it the more you love to test it

#18 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 18 February 2006 - 04:02 PM

when thinking about upgrading hardware instead of improving code performance

#19 ProgramWizard

    Valued Member

  • Members
  • PipPipPip
  • 143 posts

Posted 20 February 2006 - 06:56 PM

What's a linked list? :sad:

Do not strike me down, mighty Moe, I've only been programming for 10 months!
Firefox: ProgramWizard's official web browser
Get Firefox
Spread Firefox
hi, i'm a signature viruz, plz set me as your signature and help me spread :)

#20 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 20 February 2006 - 08:18 PM

It's a data structure that holds both data, as well as pointers to other elements that together form a list.

Looks something like this:

template<typename T>
class List
{
public:
    T m_Item;
    List<T> *m_pPrevious;
    List<T> *m_pNext;
};

I've ignored functions for simplicities sake.

The idea is that as you add elements, you chain them onto the pointers. Usually NULL on m_pPrevious or m_pNext signifies the ends of the bounds.

Clear as mud?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users