|
Look at the bright side.
Now you have an alphabeticaly ordered list of bugs.
I bug
|
|
|
|
|
If they had line numbers, that might not be so bad.
|
|
|
|
|
If I wanted to mess with my teacher that would be the way to do it...but I personally drew ASCII art with my source to mess with them
|
|
|
|
|
Did he sort it by hand or fed the code to some elegant sorting algorithm he invented
|
|
|
|
|
Are you kidding? He probably didn't know the meaning of the word invented and certainly didn't know what an algorithm was.
|
|
|
|
|
'-?Ibbdddeeeehiillnooooopssttuuuvwwy
oops, sorry, I mean:
I don't beleive you - who would be so stupid?
|
|
|
|
|
Impressive. I'm not sure if he'll make a good computer programmer but he sure as hell would make a good computer.
Steve
|
|
|
|
|
He may be the best bugger of the world
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
|
|
|
|
|
<br />
";".ToCharArray()<br />
'nuf said.
|
|
|
|
|
Did I mention that this was an argument to string.Split() which is defined to take (params char[])?
They could have simply typed:
';'
|
|
|
|
|
It would have been a gem if the code was something like this:
"argument1;argument2;argument3".Split(";".ToString());
I have no smart signature yet...
|
|
|
|
|
Derek Viljoen wrote: Did I mention that this was an argument to string.Split() which is defined to take (params char[])?
That was only introduced in .NET 3.5 IIRC.
I have written similar code ages back too.
|
|
|
|
|
Same here - and until today I still would have had I not seen your post and tried using a single char parameter.
Thanks
|
|
|
|
|
|
harold aptroot wrote: No, see here: http://msdn.microsoft.com/en-us/library/b873y76a%28VS.80%29.aspx[^]
Well, I can't say, the f***in page is stuck on C++
PS: IIRC C++ does not support .NET params .
Update:
IE to the rescue. I see it was there (in 2.0), maybe I am thinking of something else...
|
|
|
|
|
I don't know what else you could be thinking of - you were talking about the params overload for .NET 2.0 right?
|
|
|
|
|
This is what I have seen years ago.
a.ToString().ToString();
Yeah... he was just tired... couldn't prevent a prank by Intellisence.
|
|
|
|
|
The one I loathe is
string s = "Hello";
string x = s.ToString();
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
or even ".".ToString();
Two heads are better than one.
|
|
|
|
|
What happened to your post titled "BitVector32 vs BitArray ???" in this forums? Did you delete it?
|
|
|
|
|
Sorry.
I deleted it because it could be a mere slander.
|
|
|
|
|
Who cares, we don't know the author anyway
|
|
|
|
|
problem:
why "i don't rember exactly the hard coded string".ToString.ToUpper(); ?
answer: I just hate writting using caps.
Concluzion: I'm sure he/she had his reasons.
I bug
|
|
|
|
|
Private Sub textBox1_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles textBox1.KeyPress
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
Dim Index As Short = textBox1.GetIndex(eventSender)
If InStr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" & Chr(8), Chr(KeyAscii)) > 0 Or KeyAscii < 32 Then
Else
KeyAscii = 0
Beep()
End If
eventArgs.KeyChar = Chr(KeyAscii)
If KeyAscii = 0 Then
eventArgs.Handled = True
End If
End Sub
Getting sick of these kind of codeblocks ...
oh yeah, remember Char(8) is a backspace
If anyone knows why he might have written this line :
Dim Index As Short = textBox1.GetIndex(eventSender)
I have no clue ...
|
|
|
|
|
ddecoy wrote: I have no clue ...
Welcome to my world...
-NP
Never underestimate the creativity of the end-user.
|
|
|
|