Click here to Skip to main content
15,892,059 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding Standards Pin
jschell13-Feb-14 9:09
jschell13-Feb-14 9:09 
GeneralRe: Coding Standards Pin
John Nurick14-Feb-14 1:25
John Nurick14-Feb-14 1:25 
GeneralRe: Coding Standards Pin
jschell14-Feb-14 10:15
jschell14-Feb-14 10:15 
GeneralRe: Coding Standards Pin
Gerry Schmitz14-Feb-14 10:15
mveGerry Schmitz14-Feb-14 10:15 
GeneralRe: Coding Standards Pin
jschell17-Feb-14 11:47
jschell17-Feb-14 11:47 
GeneralRe: Coding Standards Pin
Shameel13-Feb-14 3:35
professionalShameel13-Feb-14 3:35 
GeneralRe: Coding Standards Pin
Kornfeld Eliyahu Peter13-Feb-14 3:40
professionalKornfeld Eliyahu Peter13-Feb-14 3:40 
JokeRe: Coding Standards Pin
Richard Deeming13-Feb-14 3:43
mveRichard Deeming13-Feb-14 3:43 
Matt U. wrote:
foreach (MyFileObj file in _myFileCollection)

Whoops - you didn't declare the MyFile file variable at the top of the method! Poke tongue | ;-P

Matt U. wrote:
// Setup the class that will be returned
someObj = new MyClass();
someObj.FileCount = count;

Now how is anyone supposed to understand that code with the single comment you've provided? Surely it should be:
C#
// Setup the class that will be returned
someObj = new MyClass(); // Create a new instance of the MyClass class and store it in the someObj variable.
someObj.FileCount = count; // Store the value of the count variable in the FileCount property on the instance of the MyClass class stored in the someObj variable.

There, isn't that better? Roll eyes | :rolleyes:



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 4:30
Matt U.13-Feb-14 4:30 
GeneralRe: Coding Standards Pin
Jonathan C Dickinson13-Feb-14 21:44
Jonathan C Dickinson13-Feb-14 21:44 
GeneralRe: Coding Standards Pin
Richard Deeming14-Feb-14 0:27
mveRichard Deeming14-Feb-14 0:27 
GeneralRe: Coding Standards PinPopular
Pete O'Hanlon13-Feb-14 3:45
mvePete O'Hanlon13-Feb-14 3:45 
GeneralRe: Coding Standards Pin
MarkTJohnson13-Feb-14 3:50
professionalMarkTJohnson13-Feb-14 3:50 
GeneralRe: Coding Standards Pin
HobbyProggy13-Feb-14 3:58
professionalHobbyProggy13-Feb-14 3:58 
GeneralRe: Coding Standards Pin
wout de zeeuw13-Feb-14 3:58
wout de zeeuw13-Feb-14 3:58 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 4:32
Matt U.13-Feb-14 4:32 
GeneralRe: Coding Standards Pin
Gregory Gadow13-Feb-14 4:16
Gregory Gadow13-Feb-14 4:16 
GeneralRe: Coding Standards Pin
wout de zeeuw13-Feb-14 4:26
wout de zeeuw13-Feb-14 4:26 
GeneralRe: Coding Standards Pin
Member 1008817113-Feb-14 8:54
Member 1008817113-Feb-14 8:54 
GeneralRe: Coding Standards Pin
jschell13-Feb-14 9:12
jschell13-Feb-14 9:12 
GeneralRe: Coding Standards Pin
Member 1008817113-Feb-14 9:35
Member 1008817113-Feb-14 9:35 
GeneralRe: Coding Standards Pin
jschell14-Feb-14 10:16
jschell14-Feb-14 10:16 
GeneralRe: Coding Standards Pin
S Houghtelin13-Feb-14 4:29
professionalS Houghtelin13-Feb-14 4:29 
AnswerRe: Coding Standards Pin
Ravi Bhavnani13-Feb-14 4:39
professionalRavi Bhavnani13-Feb-14 4:39 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 5:12
Matt U.13-Feb-14 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.