Tagged Questions
20
votes
3answers
3k views
Is my coding technique progressing in terms of C# loops?
I have isolated a little bit of code that was causing a small debate between myself and another user. I have taken some of the things that he said and meshed it with the code that was being reviewed ...
20
votes
7answers
1k views
Is it bad practice to increment more than one variable in a for loop declaration?
While coding today, I came across the following loop in C#:
...
20
votes
11answers
2k views
13
votes
11answers
608 views
Is it better to put more logic in a for loop condition, or to use a while loop?
I had this as an interview question, and the interviewer pointed this out. Here's what I wrote:
...
3
votes
3answers
182 views
Loop optimization for image processing
I have this piece of code that is running too slow. I was wondering if anyone can help me optimize it as I can't seem to find any more shortcuts. I'm not sure if using ...