15,742,180 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Qwertie (Top 10 by date)
Qwertie
24-Jan-12 2:58am
View
Deleted
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
Deleted
.NET strings can have '\0' in the middle, not just at the end.
Qwertie
18-Oct-11 14:02pm
View
Deleted
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
Deleted
Reason for my vote of 5
For that fascinating link to "Prime Numbers without Mystery"
Qwertie
12-Oct-11 14:58pm
View
Deleted
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
Deleted
Reason for my vote of 1
Random numbers should never be fed into a sort algorithm. http://blogs.msdn.com/b/ericlippert/archive/2011/01/31/spot-the-defect-bad-comparisons-part-four.aspx
Qwertie
5-Sep-11 12:35pm
View
Deleted
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
Deleted
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
Deleted
Reason for my vote of 2
Poorly worded. see Alternate 3
Qwertie
1-Dec-10 0:14am
View
Deleted
Step 2 is not required.
Show More