Click here to Skip to main content
15,899,937 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: What are the worst programming habits? PinPopular
R. Giskard Reventlov24-Jun-14 7:47
R. Giskard Reventlov24-Jun-14 7:47 
GeneralRe: What are the worst programming habits? PinPopular
Nish Nishant24-Jun-14 7:50
sitebuilderNish Nishant24-Jun-14 7:50 
GeneralRe: What are the worst programming habits? Pin
R. Giskard Reventlov24-Jun-14 7:58
R. Giskard Reventlov24-Jun-14 7:58 
GeneralRe: What are the worst programming habits? Pin
_Maxxx_24-Jun-14 14:07
professional_Maxxx_24-Jun-14 14:07 
GeneralRe: What are the worst programming habits? Pin
Kirk 1038982125-Jun-14 5:18
Kirk 1038982125-Jun-14 5:18 
GeneralRe: What are the worst programming habits? Pin
Stefan_Lang24-Jun-14 20:45
Stefan_Lang24-Jun-14 20:45 
GeneralRe: What are the worst programming habits? Pin
greldak24-Jun-14 21:41
greldak24-Jun-14 21:41 
GeneralRe: What are the worst programming habits? Pin
jeffreystacks25-Jun-14 2:47
jeffreystacks25-Jun-14 2:47 
SQL
// check if user is valid
if(IsUserValid(user))
{
   // update the user
   UpdateUser(user);
}
else
{
    // show a messagebox with an error
    MessageBox(error);
}


Worthless comments, agreed...but doesn't mean comments aren't expected.

I'd much rather have a comment at the beginning of the code segment saying what this chunk of work means, rather than what each step does...for example:

C#
// better validate user before we get too far into the process...


</twocentsworth>
I used to call it "Super Happy No-Pants Wonder Day"! It turns out that the police just call it "Tuesday". Go figure...

GeneralRe: What are the worst programming habits? Pin
obermd25-Jun-14 3:11
obermd25-Jun-14 3:11 
GeneralRe: What are the worst programming habits? Pin
diverbw25-Jun-14 5:18
professionaldiverbw25-Jun-14 5:18 
GeneralRe: What are the worst programming habits? Pin
Member 460889825-Jun-14 6:45
Member 460889825-Jun-14 6:45 
GeneralRe: What are the worst programming habits? Pin
Nish Nishant24-Jun-14 7:48
sitebuilderNish Nishant24-Jun-14 7:48 
GeneralRe: What are the worst programming habits? Pin
Roger Wright24-Jun-14 7:49
professionalRoger Wright24-Jun-14 7:49 
GeneralRe: What are the worst programming habits? Pin
_Maxxx_24-Jun-14 15:34
professional_Maxxx_24-Jun-14 15:34 
GeneralRe: What are the worst programming habits? Pin
Roger Wright24-Jun-14 17:01
professionalRoger Wright24-Jun-14 17:01 
GeneralRe: What are the worst programming habits? Pin
_Maxxx_24-Jun-14 17:27
professional_Maxxx_24-Jun-14 17:27 
GeneralRe: What are the worst programming habits? Pin
Roger Wright24-Jun-14 19:46
professionalRoger Wright24-Jun-14 19:46 
GeneralRe: What are the worst programming habits? Pin
BrainiacV25-Jun-14 4:30
BrainiacV25-Jun-14 4:30 
GeneralRe: What are the worst programming habits? Pin
pkfox24-Jun-14 19:32
professionalpkfox24-Jun-14 19:32 
GeneralRe: What are the worst programming habits? PinPopular
Stefan_Lang24-Jun-14 20:47
Stefan_Lang24-Jun-14 20:47 
GeneralRe: What are the worst programming habits? Pin
SortaCore24-Jun-14 22:08
SortaCore24-Jun-14 22:08 
GeneralRe: What are the worst programming habits? Pin
Stefan_Lang25-Jun-14 0:42
Stefan_Lang25-Jun-14 0:42 
GeneralRe: What are the worst programming habits? Pin
SortaCore25-Jun-14 0:53
SortaCore25-Jun-14 0:53 
GeneralRe: What are the worst programming habits? Pin
J. C. Morris25-Jun-14 2:22
J. C. Morris25-Jun-14 2:22 
GeneralRe: What are the worst programming habits? Pin
  Forogar  24-Jun-14 7:50
professional  Forogar  24-Jun-14 7:50 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   479 votes