Click here to Skip to main content
15,443,094 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: What about deprecated keywords ? Pin
jschell17-Jul-21 9:31
Memberjschell17-Jul-21 9:31 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
Bohdan Stupak29-Jul-21 6:25
professionalBohdan Stupak29-Jul-21 6:25 
QuestionIn OO, How to handle the object parameter of a method Pin
codecs12-Apr-21 4:43
Membercodecs12-Apr-21 4:43 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Richard MacCutchan2-Apr-21 5:30
mveRichard MacCutchan2-Apr-21 5:30 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Gerry Schmitz2-Apr-21 6:17
mveGerry Schmitz2-Apr-21 6:17 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Dave Kreskowiak2-Apr-21 6:49
mveDave Kreskowiak2-Apr-21 6:49 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Eddy Vluggen2-Apr-21 11:53
professionalEddy Vluggen2-Apr-21 11:53 
AnswerRe: In OO, How to handle the object parameter of a method Pin
codecs12-Apr-21 17:50
Membercodecs12-Apr-21 17:50 
Thanks for all your replys,
but I cannot change the method name as DoSomethingToB

for example, the following method will calculate total price and update it to repository,
but also update the Customer c, such as
--Customer.Points
--Customer.Role
depended on the amount he bought:
public void SetTotalPrice(ShoppingCart s, Customer c, List<Product> lp)

and the caller of the method will use Customer.Points and Customer.Role to do other calculation.

Therefore, I cannot change the method name because its purpose is about total price,
the updated of Customer c is a side effect

I think, in OO design, the above SetTotalPrice() method is not appropriate, isn't it?
GeneralRe: In OO, How to handle the object parameter of a method Pin
Richard MacCutchan2-Apr-21 21:31
mveRichard MacCutchan2-Apr-21 21:31 
GeneralRe: In OO, How to handle the object parameter of a method Pin
codecs13-Apr-21 16:58
Membercodecs13-Apr-21 16:58 
GeneralRe: In OO, How to handle the object parameter of a method Pin
jschell9-Apr-21 15:10
Memberjschell9-Apr-21 15:10 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Rob Grainger6-Jul-21 11:09
MemberRob Grainger6-Jul-21 11:09 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Bohdan Stupak6-Apr-21 22:20
professionalBohdan Stupak6-Apr-21 22:20 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Rob Grainger6-Jul-21 11:11
MemberRob Grainger6-Jul-21 11:11 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Bohdan Stupak24-Jul-21 23:40
professionalBohdan Stupak24-Jul-21 23:40 
QuestionHow can a method return a validation result Pin
codecs112-Mar-21 19:54
Membercodecs112-Mar-21 19:54 
AnswerRe: How can a method return a validation result Pin
Gerry Schmitz13-Mar-21 7:56
mveGerry Schmitz13-Mar-21 7:56 
AnswerRe: How can a method return a validation result Pin
Mycroft Holmes13-Mar-21 11:13
professionalMycroft Holmes13-Mar-21 11:13 
AnswerRe: How can a method return a validation result Pin
Eddy Vluggen13-Mar-21 12:11
professionalEddy Vluggen13-Mar-21 12:11 
AnswerRe: How can a method return a validation result Pin
codecs113-Mar-21 19:02
Membercodecs113-Mar-21 19:02 
AnswerRe: How can a method return a validation result Pin
Richard Deeming14-Mar-21 22:21
mveRichard Deeming14-Mar-21 22:21 
GeneralRe: How can a method return a validation result Pin
codecs116-Mar-21 0:15
Membercodecs116-Mar-21 0:15 
Questionwhat is types of Architecturel rendering ? Pin
Member 1506545021-Feb-21 23:46
MemberMember 1506545021-Feb-21 23:46 
AnswerRe: what is types of Architecturel rendering ? Pin
Victor Nijegorodov22-Feb-21 1:19
MemberVictor Nijegorodov22-Feb-21 1:19 
QuestionHow to store data to be able to report on it. Pin
20212a11-Feb-21 7:05
Member20212a11-Feb-21 7:05 

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.