One method one interface as per Use case? [on hold]2019 Community Moderator ElectionInterface vs Base classC# Interfaces. Implicit implementation versus Explicit implementationWhat's the difference between a method and a function?What does it mean to “program to an interface”?Case insensitive 'Contains(string)'Proper use of the IDisposable interfaceUnderstanding Python super() with __init__() methodsInterface vs Abstract Class (general OO)What is the difference between an interface and abstract class?Proper Repository Pattern Design in PHP?
Formatting a table to look nice
Are small insurances worth it
Split a number into equal parts given the number of parts
Is there a math equivalent to the conditional ternary operator?
What is the meaning of "notice to quit at once" and "Lotty points”
School performs periodic password audits. Is my password compromised?
Difference between 'stomach' and 'uterus'
Where is the fallacy here?
PTIJ: Aharon, King of Egypt
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Is there a way to find out the age of climbing ropes?
Every subset equal to original set?
Plagiarism of code by other PhD student
How to roleplay my character's ethics according to the DM when I don't understand those ethics?
What does each site of a vanilla 9.1 installation do?
Giving a talk in my old university, how prominently should I tell students my salary?
3.5% Interest Student Loan or use all of my savings on Tuition?
“I had a flat in the centre of town, but I didn’t like living there, so …”
Why would the IRS ask for birth certificates or even audit a small tax return?
How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?
How to merge row in the first column in LaTeX
Practical reasons to have both a large police force and bounty hunting network?
Is divide-by-zero a security vulnerability?
Where is this quote about overcoming the impossible said in "Interstellar"?
One method one interface as per Use case? [on hold]
2019 Community Moderator ElectionInterface vs Base classC# Interfaces. Implicit implementation versus Explicit implementationWhat's the difference between a method and a function?What does it mean to “program to an interface”?Case insensitive 'Contains(string)'Proper use of the IDisposable interfaceUnderstanding Python super() with __init__() methodsInterface vs Abstract Class (general OO)What is the difference between an interface and abstract class?Proper Repository Pattern Design in PHP?
I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.
- IBalance: CheckBalance()
- IDeposit: PlaceDeposit()
- ILogin: CheckCardNoPassword()
- IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)
- IWithdrawal: MakeWithdrawal(BankAccount bankAccount)
Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:
- IEnumerable ViewAllBankAccount()
- BankAccount ViewBankAccount(long accountNumber)
- InsertBankAccount(BankAccount bankAccount)
- DeleteBankAccount(BankAccount bankAccount)
- Save();
Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?
c# oop interface repository-pattern
put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.
- IBalance: CheckBalance()
- IDeposit: PlaceDeposit()
- ILogin: CheckCardNoPassword()
- IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)
- IWithdrawal: MakeWithdrawal(BankAccount bankAccount)
Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:
- IEnumerable ViewAllBankAccount()
- BankAccount ViewBankAccount(long accountNumber)
- InsertBankAccount(BankAccount bankAccount)
- DeleteBankAccount(BankAccount bankAccount)
- Save();
Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?
c# oop interface repository-pattern
put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
6
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
1
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago
add a comment |
I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.
- IBalance: CheckBalance()
- IDeposit: PlaceDeposit()
- ILogin: CheckCardNoPassword()
- IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)
- IWithdrawal: MakeWithdrawal(BankAccount bankAccount)
Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:
- IEnumerable ViewAllBankAccount()
- BankAccount ViewBankAccount(long accountNumber)
- InsertBankAccount(BankAccount bankAccount)
- DeleteBankAccount(BankAccount bankAccount)
- Save();
Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?
c# oop interface repository-pattern
I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.
- IBalance: CheckBalance()
- IDeposit: PlaceDeposit()
- ILogin: CheckCardNoPassword()
- IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)
- IWithdrawal: MakeWithdrawal(BankAccount bankAccount)
Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:
- IEnumerable ViewAllBankAccount()
- BankAccount ViewBankAccount(long accountNumber)
- InsertBankAccount(BankAccount bankAccount)
- DeleteBankAccount(BankAccount bankAccount)
- Save();
Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?
c# oop interface repository-pattern
c# oop interface repository-pattern
asked 12 hours ago
SteveSteve
94129
94129
put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
6
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
1
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago
add a comment |
6
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
1
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago
6
6
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
1
1
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
6
I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
– Wai Ha Lee
12 hours ago
1
Does it make sense to implement, test or use these interfaces in isolation?
– chase
12 hours ago