Click here to Skip to main content
15,169,185 members

Comments by Qwertie (Top 10 by date)

Qwertie 24-Jan-12 2:58am View
What does BF+I stand for? It doesn't appear related to the method name LinesCountIndexOf. Why not just use the same method names consistently throughout your post?
Qwertie 24-Jan-12 2:52am View
.NET strings can have '\0' in the middle, not just at the end.
Qwertie 18-Oct-11 14:02pm View
I hope you don't mind that I modified your tip. Unless I'm mistaken, your original code which used 'new' inside the method, will create a new array on every call, which is not what I'd call "caching" the results.
Qwertie 12-Oct-11 17:17pm View
Reason for my vote of 5
For that fascinating link to "Prime Numbers without Mystery"
Qwertie 12-Oct-11 14:58pm View
Note: the standard versions of this algorithm might use "i+r.Next(list.Count-i)" instead of "r.Next(list.Count)", so that the swap target is chosen only from not-yet-shuffled items. I am not sure if doing so improves the randomness of the result, however.
Qwertie 12-Oct-11 14:39pm View
Reason for my vote of 1
Random numbers should never be fed into a sort algorithm.
Qwertie 5-Sep-11 12:35pm View
This would be easier if combined with the VC# "code snippets" feature... after making a snippet file, you could type "stub" then <tab> to expand code like that.
Qwertie 15-Dec-10 22:30pm View
This will kill you in a debugger. Usually you want to catch first-chance NullReferenceExceptions, but if you use this a lot, the debugger will constantly stop the program. And whether in the debugger or not, your program could potentially get noticibly slower.
Qwertie 1-Dec-10 0:15am View
Reason for my vote of 2
Poorly worded. see Alternate 3
Qwertie 1-Dec-10 0:14am View
Step 2 is not required.