Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

solved split wise#17

Open
gdsoumya wants to merge 1 commit intoworkattech:masterfrom
gdsoumya:solved_split_wise
Open

solved split wise#17
gdsoumya wants to merge 1 commit intoworkattech:masterfrom
gdsoumya:solved_split_wise

Conversation

@gdsoumya
Copy link
Copy Markdown

No description provided.


public static void main(String[] args) {
// Initializing ExpenseManager Object
ExpenseManager expman = new ExpenseManager();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid variable names like expman

}

public String getMob_no() {
return mob_no;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use either camelCase or underscore_separated. not both. For java, best to go with camelCase

@gcnit
Copy link
Copy Markdown
Collaborator

gcnit commented Oct 28, 2019

Hi @gdsoumya I looked at your code.

Code looks good! I've given a few comments that could help make the code better. Both of which are mentioned in our how to prepare article as well.
It would be a good idea for you to look at How to prepare for machine coding round? and solve another problem from our practice section

You may also want to look at my solution for Design Splitwise - Machine Coding

@gdsoumya
Copy link
Copy Markdown
Author

Hi @gcnit thank your valuable feedback, I will make the changes as suggested. I looked at your solution it was very modular and clean, I learned a lot.

I just have another question, will my solution be acceptable even though it doesn't break the ExpenseManager into further sub modules?

@gcnit
Copy link
Copy Markdown
Collaborator

gcnit commented Oct 28, 2019

Should be good for an sde1 role. Just keep the code readable.

@gdsoumya
Copy link
Copy Markdown
Author

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants