Click here to Skip to main content
14,453,230 members
   

C#

 
GeneralMy thoughts on C# Pin
Brian_TheLion1-Jun-19 16:43
MemberBrian_TheLion1-Jun-19 16:43 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak1-Jun-19 17:06
mveDave Kreskowiak1-Jun-19 17:06 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 19:16
MemberBrian_TheLion1-Jun-19 19:16 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 4:38
sitebuilderLuc Pattyn2-Jun-19 4:38 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:07
MemberBrian_TheLion2-Jun-19 16:07 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 16:41
sitebuilderLuc Pattyn2-Jun-19 16:41 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 17:09
MemberBrian_TheLion2-Jun-19 17:09 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 6:27
mveDave Kreskowiak2-Jun-19 6:27 
Brian_TheLion wrote:
You have an inventory class and a get/drop class

No you wouldn't. You would have an Inventory class with Add, Get, and Drop methods.

A class is always a noun. The methods exposed by the class are always verbs that perform operations on that noun.

Your Inventory class should never output messages to the console. UI operations have nothing to do with managing the data stored by the Inventory class.

This is true for ANY OOP language, including C++ and Java.

GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:25
MemberBrian_TheLion2-Jun-19 15:25 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 16:42
mveDave Kreskowiak2-Jun-19 16:42 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 17:30
MemberBrian_TheLion2-Jun-19 17:30 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 18:26
mveDave Kreskowiak2-Jun-19 18:26 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 18:46
MemberBrian_TheLion2-Jun-19 18:46 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak3-Jun-19 3:37
mveDave Kreskowiak3-Jun-19 3:37 
GeneralRe: My thoughts on C# Pin
#realJSOP2-Jun-19 5:29
mva#realJSOP2-Jun-19 5:29 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 6:44
mveDave Kreskowiak2-Jun-19 6:44 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:56
MemberBrian_TheLion2-Jun-19 16:56 
GeneralRe: My thoughts on C# Pin
#realJSOP3-Jun-19 1:15
mva#realJSOP3-Jun-19 1:15 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak3-Jun-19 3:37
mveDave Kreskowiak3-Jun-19 3:37 
GeneralRe: My thoughts on C# Pin
Brian_TheLion3-Jun-19 13:22
MemberBrian_TheLion3-Jun-19 13:22 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:17
MemberBrian_TheLion2-Jun-19 16:17 
GeneralRe: My thoughts on C# Pin
BillWoodruff1-Jun-19 18:40
mveBillWoodruff1-Jun-19 18:40 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 19:02
MemberBrian_TheLion1-Jun-19 19:02 
GeneralRe: My thoughts on C# Pin
OriginalGriff1-Jun-19 21:16
communityengineerOriginalGriff1-Jun-19 21:16 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 21:37
MemberBrian_TheLion1-Jun-19 21: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.