Click here to Skip to main content
15,901,122 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? Pin
Dan Neely25-Jun-14 2:37
Dan Neely25-Jun-14 2:37 
GeneralRe: What are the worst programming habits? Pin
Stefan_Lang24-Jun-14 22:40
Stefan_Lang24-Jun-14 22:40 
GeneralRe: What are the worst programming habits? Pin
Nicholas Marty25-Jun-14 3:46
professionalNicholas Marty25-Jun-14 3:46 
GeneralRe: What are the worst programming habits? Pin
Dave Kreskowiak24-Jun-14 8:34
mveDave Kreskowiak24-Jun-14 8:34 
GeneralRe: What are the worst programming habits? Pin
Eddy Vluggen24-Jun-14 9:00
professionalEddy Vluggen24-Jun-14 9:00 
GeneralRe: What are the worst programming habits? Pin
Dave Kreskowiak24-Jun-14 14:05
mveDave Kreskowiak24-Jun-14 14:05 
GeneralRe: What are the worst programming habits? Pin
Eddy Vluggen24-Jun-14 22:29
professionalEddy Vluggen24-Jun-14 22:29 
GeneralRe: What are the worst programming habits? Pin
Dave Kreskowiak25-Jun-14 2:30
mveDave Kreskowiak25-Jun-14 2:30 
I like to be explicit in my code. There is no doubt in my intent. I just find it a bit strange that "private" is the only exception to access modifiers where you have to be explicit about everything but only because it's default. I'm just saying that the access modifier shouldn't have a default forcing you to be explicit in your intent and (granted hopefully) think about what you're doing.

I am happy to say, as the other replier pointed out, that I'm not one of those that needs to be "saved from himself" because VB made everything Public by default and that's what generates tons and tons of bad "public everything" code.

I don't believe that the problem is with VB. I believe the problem is with the education and the lax standards of what should be taught in school. I've has more than few degreed grads that couldn't tell me the difference between public and private. I've also heard most of those same grads say they've never written an API, to which I call BULLSHIT since every application contains it's own API, usually for the sole consumer being the application itself.

I think the entire "private as default" or whatever modifier is default is a Band-Aid on a bigger problem.


EDIT:

And just for the record, I'm going to admit to being a hypocrite. I also rely on private being the default in my own code but, just because I do it, that in no way means I think it's a good idea.

GeneralRe: What are the worst programming habits? Pin
PIEBALDconsult25-Jun-14 5:53
mvePIEBALDconsult25-Jun-14 5:53 
GeneralRe: What are the worst programming habits? Pin
Eddy Vluggen25-Jun-14 8:52
professionalEddy Vluggen25-Jun-14 8:52 
GeneralRe: What are the worst programming habits? Pin
Stefan_Lang24-Jun-14 22:44
Stefan_Lang24-Jun-14 22:44 
GeneralRe: What are the worst programming habits? Pin
Chris Losinger24-Jun-14 9:42
professionalChris Losinger24-Jun-14 9:42 
GeneralRe: What are the worst programming habits? Pin
harold aptroot24-Jun-14 8:06
harold aptroot24-Jun-14 8:06 
GeneralRe: What are the worst programming habits? Pin
Herbie Mountjoy24-Jun-14 21:40
professionalHerbie Mountjoy24-Jun-14 21:40 
GeneralRe: What are the worst programming habits? Pin
Stefan_Lang24-Jun-14 22:49
Stefan_Lang24-Jun-14 22:49 
GeneralRe: What are the worst programming habits? Pin
harold aptroot24-Jun-14 23:11
harold aptroot24-Jun-14 23:11 
GeneralRe: What are the worst programming habits? Pin
PIEBALDconsult25-Jun-14 8:14
mvePIEBALDconsult25-Jun-14 8:14 
GeneralRe: What are the worst programming habits? Pin
Dan Neely25-Jun-14 2:39
Dan Neely25-Jun-14 2:39 
GeneralRe: What are the worst programming habits? Pin
jeron124-Jun-14 8:08
jeron124-Jun-14 8:08 
GeneralRe: What are the worst programming habits? Pin
OriginalGriff24-Jun-14 8:10
mveOriginalGriff24-Jun-14 8:10 
GeneralRe: What are the worst programming habits? Pin
_Maxxx_24-Jun-14 15:39
professional_Maxxx_24-Jun-14 15:39 
GeneralRe: What are the worst programming habits? Pin
Brisingr Aerowing24-Jun-14 18:16
professionalBrisingr Aerowing24-Jun-14 18:16 
GeneralRe: What are the worst programming habits? Pin
Peter Adam25-Jun-14 0:01
professionalPeter Adam25-Jun-14 0:01 
GeneralRe: What are the worst programming habits? Pin
Maximilien24-Jun-14 8:17
Maximilien24-Jun-14 8:17 
GeneralRe: What are the worst programming habits? Pin
dan!sh 24-Jun-14 8:21
professional dan!sh 24-Jun-14 8:21 

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   501 votes