Points, Points Everywhere
-
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];Most of the cases are keeping around 4 - 10 max points. And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
-
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];Most of the cases are keeping around 4 - 10 max points. And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
So I guess 50 is rather.... (puts on sunglasses).... pointless.
brisingr_aerowing@Gryphon-PC $ rake in_the_dough Raking in the dough brisingr_aerowing@Gryphon-PC $ make lots_of_money Making lots_of_money
-
So I guess 50 is rather.... (puts on sunglasses).... pointless.
brisingr_aerowing@Gryphon-PC $ rake in_the_dough Raking in the dough brisingr_aerowing@Gryphon-PC $ make lots_of_money Making lots_of_money
-
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];Most of the cases are keeping around 4 - 10 max points. And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
-
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];Most of the cases are keeping around 4 - 10 max points. And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
-
50? Wait a sec.. A yes, 5 more years and I am there (Didn't think I was so old..) :)
The signature is in building process.. Please wait...
-
The project history stated its there since 2007 at least. I guess then they added the cvs system. The problem is that noone noticed this problem for 6 years :X
-
Can happen. Sometimes it makes sense to put a fixed array example:
int[] iMonths = new int[11];
Assuming it is 0 based..
The signature is in building process.. Please wait...
vonb wrote:
int[] iMonths = new int[11];
I hope that was a joke, or a typo!
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
Can happen. Sometimes it makes sense to put a fixed array example:
int[] iMonths = new int[11];
Assuming it is 0 based..
The signature is in building process.. Please wait...
;P if it's Zero based or not - the Count of elements you give should be 12 - or are you using a "Special" calendar?
-
;P if it's Zero based or not - the Count of elements you give should be 12 - or are you using a "Special" calendar?
-
This little gem was found today in one class declaration thanks to Visual Studio Watch window. I was browsing one of the class members and i was stunned when i saw the window
int m_cnt;
CPoint m_points[50];Most of the cases are keeping around 4 - 10 max points. And i don't even know why exactly 50 ? Why not 100, or 500 or maybe more ... the more the merrier.
The programmer has exactly 50 days left on his/her contract. Out door and wait for the frantic "It's broken call... please come fix it at 3x your previous rate!!!" Just a guess. We had a bug tracking system written some time ago that had a primary record holder delared something like DefectRecord Records[50]; Because he/she never thought anyone would have more than 50 defects to see at one time on a report. Guess they never ran into a project like the one I'm currently on.