Click here to Skip to main content
14,362,267 members
   

C#

 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 15:16
memberBrian_TheLion4-Jun-19 15:16 
GeneralRe: My thoughts on C# Pin
Nathan Minier4-Jun-19 15:26
professionalNathan Minier4-Jun-19 15:26 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 15:30
memberBrian_TheLion4-Jun-19 15:30 
GeneralRe: My thoughts on C# Pin
Nathan Minier4-Jun-19 15:40
professionalNathan Minier4-Jun-19 15:40 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 15:53
memberBrian_TheLion4-Jun-19 15:53 
GeneralRe: My thoughts on C# Pin
Nathan Minier4-Jun-19 15:47
professionalNathan Minier4-Jun-19 15:47 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 16:12
memberBrian_TheLion4-Jun-19 16:12 
GeneralRe: My thoughts on C# Pin
Nathan Minier4-Jun-19 16:29
professionalNathan Minier4-Jun-19 16:29 
Largely because it's hard to maintain, and very common to forget that you stuck a static property on an object 3 years ago when you first wrote the code.

It can also lead to unexpected object states when you can change a static property from outside that object, and proper value validation logic - let alone proper state checks - is often ignored in accessors.

Lastly, it's simply not an OOP approach. It's an old-school method that is more-or-less a legacy of structured programming. Yes, static properties are very cool when used to modify the behavior of a genus of objects on the fly, but that's simply not what we're doing here. IMO if you find yourself writing software like this you're not thinking about it in a way that will lead to a good end result.

If you're just learning it's fine. Use it as a tool to make something that works. Just keep in the back of your mind that you're learning the skills to do it better the next time, and that how you conceptualize your code will have a huge impact on how good your code ends up being.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor

GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 17:37
memberBrian_TheLion4-Jun-19 17:37 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 16:28
memberBrian_TheLion4-Jun-19 16:28 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 16:38
memberBrian_TheLion4-Jun-19 16:38 
GeneralRe: My thoughts on C# Pin
Nathan Minier4-Jun-19 16:41
professionalNathan Minier4-Jun-19 16:41 
GeneralRe: My thoughts on C# Pin
Gerry Schmitz4-Jun-19 7:53
mveGerry Schmitz4-Jun-19 7:53 
GeneralRe: My thoughts on C# Pin
Brian_TheLion4-Jun-19 19:44
memberBrian_TheLion4-Jun-19 19:44 
QuestionHow to perform the content of a variable as a C# instruction Pin
Member 133074841-Jun-19 11:02
memberMember 133074841-Jun-19 11:02 
AnswerRe: How to perform the content of a variable as a C# instruction Pin
BillWoodruff1-Jun-19 16:33
mveBillWoodruff1-Jun-19 16:33 
GeneralRe: How to perform the content of a variable as a C# instruction Pin
Member 133074841-Jun-19 19:22
memberMember 133074841-Jun-19 19:22 
AnswerRe: How to perform the content of a variable as a C# instruction Pin
jschell2-Jun-19 9:53
memberjschell2-Jun-19 9:53 
QuestionHow To Make This Generic Pin
Kevin Marois31-May-19 12:55
professionalKevin Marois31-May-19 12:55 
AnswerRe: How To Make This Generic Pin
#realJSOP1-Jun-19 6:00
mve#realJSOP1-Jun-19 6:00 
QuestionAsk C# everyone God, about SQLiteHelper increase delete to modify the static to directly call the way Pin
Dhjjf29-May-19 23:15
memberDhjjf29-May-19 23:15 
AnswerRe: Ask C# everyone God, about SQLiteHelper increase delete to modify the static to directly call the way Pin
BillWoodruff29-May-19 23:41
mveBillWoodruff29-May-19 23:41 
AnswerRe: Ask C# everyone God, about SQLiteHelper increase delete to modify the static to directly call the way Pin
Eddy Vluggen29-May-19 23:56
mveEddy Vluggen29-May-19 23:56 
AnswerRe: Ask C# everyone God, about SQLiteHelper increase delete to modify the static to directly call the way Pin
OriginalGriff30-May-19 0:00
protectorOriginalGriff30-May-19 0:00 
AnswerRe: Ask C# everyone God, about SQLiteHelper increase delete to modify the static to directly call the way Pin
#realJSOP30-May-19 5:55
mve#realJSOP30-May-19 5:55 

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.