Click here to Skip to main content
14,331,456 members
   

C#

 
GeneralRe: C# mp4 stream reader Pin
nicko135-Jun-19 7:46
membernicko135-Jun-19 7:46 
AnswerRe: C# mp4 stream reader Pin
Gerry Schmitz5-Jun-19 5:52
mveGerry Schmitz5-Jun-19 5:52 
GeneralRe: C# mp4 stream reader Pin
nicko135-Jun-19 7:59
membernicko135-Jun-19 7:59 
QuestionDataProtection API Pin
Super Lloyd2-Jun-19 21:22
memberSuper Lloyd2-Jun-19 21:22 
AnswerRe: DataProtection API Pin
Kornfeld Eliyahu Peter2-Jun-19 22:35
mveKornfeld Eliyahu Peter2-Jun-19 22:35 
AnswerRe: DataProtection API Pin
Eddy Vluggen2-Jun-19 22:50
mveEddy Vluggen2-Jun-19 22:50 
GeneralMy thoughts on C# Pin
Brian_TheLion1-Jun-19 15:43
memberBrian_TheLion1-Jun-19 15:43 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak1-Jun-19 16:06
mveDave Kreskowiak1-Jun-19 16:06 
Brian_TheLion wrote:
After learning C# for a while it seems that you need to keep within certain rules to have the program compile.

True for ANY language, not just C#.

Brian_TheLion wrote:
It looks like a case of modifying a program so that it works under C#. There is no global variable allowed so in order to move variables between classes means re-writing the program so it fits within the C# rules.

It's no the rules of C# so much as it is a strict implementation of Object Oriented Programming, which other languages support, not just C#.

"Global variables", in my humble opinion, are a lazy and error prone way of moving data between objects.

Brian_TheLion wrote:
the program I have in mind that I want to write has many varables between classes

You're thinking of data used in more than one class as "global". Well, "global" is just another container, just like a class instance is a container, that can be passed into other class methods.

Brian_TheLion wrote:
It also makes the program easier to deal with when changes are made.

Actually, this isn't true. You have code all over the place that can manipulate "global" variables and debugging problems with that code can be a nightmare because there is no central repository controlling access to those variables.

GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 18:16
memberBrian_TheLion1-Jun-19 18:16 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 3:38
professionalLuc Pattyn2-Jun-19 3:38 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:07
memberBrian_TheLion2-Jun-19 15:07 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 15:41
professionalLuc Pattyn2-Jun-19 15:41 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:09
memberBrian_TheLion2-Jun-19 16:09 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 5:27
mveDave Kreskowiak2-Jun-19 5:27 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 14:25
memberBrian_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
memberBrian_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
memberBrian_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 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:56
memberBrian_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 

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.