PileProject / drive

The drive project
Other
5 stars 4 forks source link

Standardize controllers #59

Closed tiwanari closed 7 years ago

tiwanari commented 7 years ago

This PR standardizes the MachineController to make it has the union of its children's methods.

Background

We talked over the design of controllers again and again offline, and we had two options;

They actually have pros & cons and our opinions conflicted. But finally, at present, we decided to choose the latter.

Pros & Cons of the former

Pros

Cons

Pros & Cons of the latter

Pros

Cons

Why we chose the latter

This was a very difficult problem for us but we took the pros of the latter. Maintaining duplicated codes *.java and *.xml is very annoying and we can easily change our mind when a new type of machine comes if we keep the unified codes clean.

makotoshimazu commented 7 years ago

I'm taking a look. just a moment...

tiwanari commented 7 years ago

@amiq11 Thanks!

This is a wip PR. So please look over it and give any comment:)

tiwanari commented 7 years ago

Notes for me;

I should...

tiwanari commented 7 years ago

NOTE: I checked that we can test each child controller (e.g., NxtCarControllerTest for NxtCarController)

tiwanari commented 7 years ago

Hey @amiq11 , @myusak ,

Though I know I should add more detailed changes into this PR (e.g., some Javadocs, more blocks we will use), I'm almost fixing the design of this PR. So, please look over it again and give me comments.

I want to discuss some stuff;

I may miss something. Please let me know.

tiwanari commented 7 years ago

So far, I received thoughtful comments to keep the design (packages) and codes clean šŸ‘ I'll apply them to codes :)

Is there any other opinion about the designs? If not, I will concentrate on cleaning up codes and ask you to review again later šŸš€

tiwanari commented 7 years ago

Chages;

I want to leave the ControllerBuilder improvement to other PR.

tiwanari commented 7 years ago

Hey @myusak, @amiq11

Now, I think this PR is on the real reviewing stage.

tiwanari commented 7 years ago

Hey @amiq11 @myusak,

If there are no more concerns, I will merge this :)

tiwanari commented 7 years ago

I applied your comments and fix codes a little.

tiwanari commented 7 years ago

I want to merge this around the end of tomorrow. Is it okay? Please let me know if you have more opinions or are too busy to check.

tiwanari commented 7 years ago

Hey @amiq11,

WDYT? Let me know your opinion.

tiwanari commented 7 years ago

I didn't receive any objection to merging so far. So, let me go ahead :)

mandaiy commented 7 years ago

Hey, don't skip the commit message and leave it to the github. At least you should add a summary that describes what classes are changed and why so that people do not have to come to this pull request.

tiwanari commented 7 years ago

Thank you for the comment. I didn't care about it and very sorry about that. I added the detail and used force commit (disable the protection of develop branch temporary). I promise to keep it in mind.