|
Why do you think I posted it in this forum? Did you miss the mistake?
|
|
|
|
|
And do you see that I marked it as a joke? Oh dear, I know the meaning of this forum, and I saw the problems the code snippet causes. And I posted like someone would do who uses to write such code. That seems to be beyond the joking capacity of an average CP member though, as can be deduced from the votes...
|
|
|
|
|
Ouch.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
That is a level of fail which leaves me speechless.
|
|
|
|
|
I can do it even better ...
Yesterday I found that gem in my own code
Boolean deleted = false;
if(deleted){
...
}
what a great luck I wrote it only five minutes before I observed my supersophisticated State-of-the-art-Failure...
|
|
|
|
|
In few of the reports I came across this while doing some maintenance work... beautiful isn't it ???
select ......
where
and F2TRDT >= " & Year(Parameters!DateFrom.Value)*10000+Month(Parameters!DateFrom.Value)*100+day(Parameters!DateFrom.Value) & "
and F2TRDT <= " & Year(Parameters!DateTo.Value)*10000+Month(Parameters!DateTo.Value)*100+day(Parameters!DateTo.Value) & "
Zen and the art of software maintenance : rm -rf *
Math is like love : a simple idea but it can get complicated.
|
|
|
|
|
Nice thinking!
|
|
|
|
|
Oh, I see your point: that guy was assuming a month could have upto 99 days, and a year upto 99 months, and thus was waisting many numbers, and his formula will soon hit the limits of an Int32.
He'd better do a
and F2TRDT >= " & Year(Parameters!DateFrom.Value)*372+Month(Parameters!DateFrom.Value)*31+day(Parameters!DateFrom.Value) & "
and F2TRDT <= " & Year(Parameters!DateTo.Value)*372+Month(Parameters!DateTo.Value)*31+day(Parameters!DateTo.Value) & "
which still waists some 6 or 7 days per year.
|
|
|
|
|
It is not about converting into integer number... The date needs to be in yyyyMMdd format.. The whole point is why not use Foramt() function...
Zen and the art of software maintenance : rm -rf *
Math is like love : a simple idea but it can get complicated.
|
|
|
|
|
... I'd better have marked my post as a joke ...
|
|
|
|
|
virang_21 wrote: The whole point is why not use Foramt() function...
Is that similar to the Format() function?
|
|
|
|
|
now i need some mind bleach, thanks.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
|
|
|
|
|
|
I just wish he told us what he realy felt!
|
|
|
|
|
Pinched and forwarded.
Thanks!
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Duovote Countered
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
"// PSD is not my favourite file format."
This is so much shorter and summarises the preceding rant quite well.
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
The best bit is that the first executable statement after the rant has a comment saying 'Sanity check'. I think that that comment should have preceded the big comment.
|
|
|
|
|
[^]
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
There are some great ones in that list. I especially like Quote: //When I wrote this, only God and I understood what I was doing
//Now, God only knows
Soren Madsen
|
|
|
|
|
The first one in that list is awesome.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
Short and to the point...
|
|
|
|
|
I do not know that is it really weird or not!
It is a long time that I have this problem. The file name of my MP3 files change every nonspecific time but in a specific format. I mean the name of the artist will be add in the beginning of the file name.
For example it changes
13 Take Care (Feat. Drale)
into
Rihanna-Take Care (Feat. Drale)
I take care of storing my archive regular, so it's going to kill me.
SignatureNotFoundException
|
|
|
|
|
uhm, what kind of virus would correctly name your mp3's for you? it looks like you have software automatically managing your mp3's. Like iTunes, WinAmp, etc.
|
|
|
|
|
I do not have; at least the software that you mentioned.
SignatureNotFoundException
|
|
|
|