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

C#

 
GeneralMy thoughts on C# Pin
Brian_TheLion1-Jun-19 15:43
Brian_TheLion1-Jun-19 15:43 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak1-Jun-19 16:06
mveDave Kreskowiak1-Jun-19 16:06 
GeneralRe: My thoughts on C# Pin
Brian_TheLion1-Jun-19 18:16
Brian_TheLion1-Jun-19 18:16 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 3:38
sitebuilderLuc Pattyn2-Jun-19 3:38 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 15:07
Brian_TheLion2-Jun-19 15:07 
GeneralRe: My thoughts on C# Pin
Luc Pattyn2-Jun-19 15:41
sitebuilderLuc Pattyn2-Jun-19 15:41 
GeneralRe: My thoughts on C# Pin
Brian_TheLion2-Jun-19 16:09
Brian_TheLion2-Jun-19 16:09 
GeneralRe: My thoughts on C# Pin
Dave Kreskowiak2-Jun-19 5:27
mveDave Kreskowiak2-Jun-19 5: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 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 
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 

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.