|
Optional responses:
Siri: While the sentiment is appreciated, I don't have lips to likewise respond in kind. Besides, your breathe reaks.
Siri: OK! OK!! I'll show you a list of local stores that have breath mints, already!!
Siri:
|
|
|
|
|
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
|
|
|
|
|
and... (puts on a black hat)... derivative.
tee hee
Greetings - Jacek
|
|
|
|
|
Unused memory is a wasted memory, they said
CPoint m_points[50];
It will be fast, they said.
Greetings - Jacek
|
|
|
|
|
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.
|
|
|
|
|
if it's Zero based or not - the Count of elements you give should be 12 - or are you using a "Special" calendar?
|
|
|
|
|
I put away the month of August of course (usually holidays...) so 11. In case of salary should be 13. We have a 13th salary here.
The signature is in building process.. Please wait...
|
|
|
|
|
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.
|
|
|
|
|
|
Lol
Previous -> Read "CLR via C#" by Jeffrey Ritcher.
Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder.
Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.
|
|
|
|
|
Does this really belong to this forum? I would put it to SoapBox.. Not sure so.
The signature is in building process.. Please wait...
|
|
|
|
|
I think this is the correct forum - it seems to be CodeProject's equivalent to TheDailyWTF. The Soapbox seems to be mainly for terrible jokes and insane rants.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I wrote this because it seems that here there are mostly developers who are publishing their owns / collegues super good or super bad code.
The signature is in building process.. Please wait...
|
|
|
|
|
Richard Deeming wrote: The Soapbox seems to be mainly for terrible jokes and insane rants.
Just for those lacking a sense of humour. The most rants are very funny.
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Yet another delight from the VB6 rewrite...
Function GetINI(heading As String, setting As String, iniPath As String)
Dim temp As String * 120
Dim ret As Long
If iniPath = "Default" Then
iniPath = gl_DatabaseDir & "\XXXX.ini"
End If
ret = GetPrivateProfileString(heading, setting, iniPath, temp, Len(temp), iniPath)
If ret = 0 Then
Beep
Else
GetINI = Trim(temp)
End If
End Function
I think this is like pre-watershed television, where expletives are covered by a beep.
It's also worth considering that none of our PC's have a speaker
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
If this function is called many times from different threads and by some reason the XXXX.ini cannot be found, the result will be:
beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;beep;
ctrl+Alt+Delete --> Task Manager --> End Process
Imagine if it's a night over batch...
The signature is in building process.. Please wait...
|
|
|
|
|
Luckily its in a GUI application. Although the idea of a machine in the server room going Beep repeatedly amuses me.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Soooo... I get to roll out my story about having a server play Westminster Chimes on its speaker again?
|
|
|
|
|
vonb wrote: If this function is called many times from different threads
VB6, threads! That made my day
|
|
|
|
|
Back in my VB6 days, I wrote multithreaded VB6 apps. The proper use of APIs lets VB6 do a whole lot more than most developers realize.
That said, I like .NET much better, which is why I shifted my primary development language from VB6 to VB.NET and C#. It is a better framework for multithreaded apps and although VB6 was OO, .NET finishes the OOA that VB6 started (not saying there was no OO before VB4/6 - obviously - just in that line of succession of VB -> .NET).
|
|
|
|
|
MSBassSinger wrote: VB6 was OO
Barely. It didn't even have class inheritance or interfaces.
MSBassSinger wrote: NET finishes the OOA that VB6 started
Do you mean OOP?
|
|
|
|