View Full Version : You know you shouldn't be a programmer when...
karligula
02-08-2006, 10:30 AM
... you cross your fingers every time you run your code (I seem to be doing that a lot lately(!))
Reedbeta
02-08-2006, 10:35 AM
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... :lol:
Mihail121
02-08-2006, 11:27 AM
Don't forget also that the "printf" debugging is a completely legal and widely used way for correcting bugs and memory faults!
eddie
02-08-2006, 11:39 AM
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. :)
davepermen
02-08-2006, 12: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
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
.oisyn
02-08-2006, 01: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! :D
Wernaeh
02-08-2006, 01: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
Ed Mack
02-09-2006, 09:00 AM
... when you estimate the length of daily chores perfectly.
kariem2k
02-09-2006, 09:34 AM
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.
ProgramWizard
02-16-2006, 02: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.
eddie
02-16-2006, 02:39 PM
Meh, I get bored with it sometimes too. :)
But that's what video games are for. :D
Superfly Johnson
02-16-2006, 06:12 PM
Lolgorithm Says Hi
monjardin
02-17-2006, 01:37 PM
Ugh. Not the stupid Lolgorithm. It's really not funny to most people that didn't go to your school.
eddie
02-17-2006, 01:55 PM
You could've left it at "It's really not funny".
...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?"
Jynks
02-18-2006, 04:18 AM
the longer u leave it b4 u run it the more you love to test it
when thinking about upgrading hardware instead of improving code performance
ProgramWizard
02-20-2006, 10:56 AM
What's a linked list? :sad:
Do not strike me down, mighty Moe, I've only been programming for 10 months!
eddie
02-20-2006, 12: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?
ProgramWizard:
10 months programming and you don't know what a linked list is...? Shame on you!
Just kidding :lol:
As eddie showed you create a data structure witch connects (links) instances of a class toghether. There are single and double linked lists (some homework for you ;)) It's mainly used if you dynamically add/remove elements within the list at runtime. Hence a list can grow. Opposed to that you have the arrays witch have a fixed size after initializeing.
e.g. someArray[10] has 10 elements (elements 0-9). The advantage of an array would be the direct access like someArray[6] accesses the 7th element stored in the array (start counting with element 0). Whereas the linked list normally must iterate through the elements to find a specific one.
ListNode* tempNode = myList->Head; // the first element in the list
int iCounter = 0;
while( 6 != iCounter )
{
tempNode = tempNode->nextNode;
++iCounter;
}
it also requires some error checking (catch the end of the list...) witch I didn't add to keep it simple.
I only added it above because I know some people studying informatics and they didn't know the difference between a linked list and an array after 1 year of studying. If you are a coder as a hobby there is no problem but if you study in this area you should know after 1 year. Just my oppinion no offence intended. Being a hobby coder myself I expect someone who studies to know more than me :)
p.s. ignore all typos in this post... after reinstalling my PC I have yet to install word with all it's beautiful word spelling checks... (the only feature i ever use in word :))
Nils Pipenbrinck
02-20-2006, 03:08 PM
You shouldn't be a programmer when:
You try to open the office with your office key -
and try to open your homedoor with the homedoor-key.
vBulletin, Copyright ©2000-2010, Jelsoft Enterprises Ltd.