Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 14:25
Brian_TheLion2-Jun-19 14:25 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 15:42
mveDave Kreskowiak2-Jun-19 15:42 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:30
Brian_TheLion2-Jun-19 16:30 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 17:26
mveDave Kreskowiak2-Jun-19 17:26 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 17:46
Brian_TheLion2-Jun-19 17:46 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak3-Jun-19 2:37
mveDave Kreskowiak3-Jun-19 2:37 
GeneralRe: My thoughts on C# Pin
#realJSOP2-Jun-19 4:29
mve#realJSOP2-Jun-19 4:29 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 5:44
mveDave Kreskowiak2-Jun-19 5:44 
Using variables themselves for passing data to everywhere, like in the old BASIC days, is lazy in an OOP environment. Doing so is an attempt to bypass OOP principles and avoid learning how to do it correctly.

I never said there is never a need for globally accessible DATA. I'm saying using global VARIABLES (outside of a class, because the old non-OOP days is where this idea comes from) to hold that data is the wrong way to do it. It's not even possible to do that in C# anyway, where everything must be in a class somewhere.

Static classes are a good thing where globally accessible data can be managed properly, but, as you said, must be done appropriately and for the correct reasons.

GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:56
Brian_TheLion2-Jun-19 15:56 
GeneralRe: My thoughts on C# Pin
#realJSOP3-Jun-19 0:15
mve#realJSOP3-Jun-19 0:15 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak3-Jun-19 2:37
mveDave Kreskowiak3-Jun-19 2:37 
GeneralRe: My thoughts on C# Pin
Brian_TheLion3-Jun-19 12:22
Brian_TheLion3-Jun-19 12:22 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:17
Brian_TheLion2-Jun-19 15:17 
GeneralRe: My thoughts on C# Pin
BillWoodruff1-Jun-19 17:40
professionalBillWoodruff1-Jun-19 17:40 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 18:02
Brian_TheLion1-Jun-19 18:02 
GeneralRe: My thoughts on C# Pin
OriginalGriff1-Jun-19 20:16
mveOriginalGriff1-Jun-19 20:16 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 20:37
Brian_TheLion1-Jun-19 20:37 
GeneralRe: My thoughts on C# Pin
phil.o1-Jun-19 22:02
professionalphil.o1-Jun-19 22:02 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:16
Brian_TheLion2-Jun-19 16:16 
GeneralRe: My thoughts on C# Pin
OriginalGriff1-Jun-19 22:47
mveOriginalGriff1-Jun-19 22:47 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:45
Brian_TheLion2-Jun-19 15:45 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 6:10
mveDave Kreskowiak2-Jun-19 6:10 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:32
Brian_TheLion2-Jun-19 15:32 
GeneralRe: My thoughts on C# Pin
Brian_TheLion3-Jun-19 12:49
Brian_TheLion3-Jun-19 12:49 
GeneralRe: My thoughts on C# Pin
BillWoodruff2-Jun-19 20:07
professionalBillWoodruff2-Jun-19 20:07 

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.