Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Added detailed Contributing guideline (#191) #233

Open
wants to merge 1 commit into
base: experimental
Choose a base branch
from

Conversation

PAException
Copy link
Contributor

Closes #191

@PAException PAException added the Documentation Improvements or additions to documentation label Apr 22, 2020
@PAException PAException added this to the 0.5 milestone Apr 22, 2020
@PAException PAException linked an issue Apr 22, 2020 that may be closed by this pull request
@PAException PAException force-pushed the issue/191 branch 2 times, most recently from a98a933 to ba92cd1 Compare April 24, 2020 09:55
@PAException PAException modified the milestones: 0.5, Alpha Apr 26, 2020

Great if you want to contribute to this project!

But we have to maintain this project and to do that easier everyone has to observe the follwing rules.
Copy link
Contributor

Choose a reason for hiding this comment

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

"we have"
that's not rly true, better would be "Our job as maintainers is to guarantee high code quality and standards, which makes it easier for other people, including us, to contribute to this project. Because of that everyone should follow certain rules while contributing to this project."


## Code Style

The code is written like the official [Java Code Conventions](https://www.oracle.com/technetwork/java/codeconventions-150003.pdf).
Copy link
Contributor

Choose a reason for hiding this comment

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

our code isn't written like some conventions - our conventions are somewhere similar to the oracle java code conventions


The code is written like the official [Java Code Conventions](https://www.oracle.com/technetwork/java/codeconventions-150003.pdf).

Important is to give the methods and classes expressive and clear names to easily differentiate between them.
Copy link
Contributor

Choose a reason for hiding this comment

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

Use more titles, for example: ### Expressive method and class names


Important is to give the methods and classes expressive and clear names to easily differentiate between them.

A command should be wrapped in a new line if it has more than 120 characters.
Copy link
Contributor

Choose a reason for hiding this comment

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

Command?
"Statement" is the word u are searching for


A command should be wrapped in a new line if it has more than 120 characters.

Tab characters have to be used instead of spaces.
Copy link
Contributor

Choose a reason for hiding this comment

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

"As the standard indentation for code we use tabs"

ControllerResult<SolutionModel> solutionResult = this.solutionController.getSolution(taskId);
````

DTOs are named if they are are requestDTO ``dto``, if it is a responseDTO they are called `responseDTO`.
Copy link
Contributor

Choose a reason for hiding this comment

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

duplicate "are" and the sentence is hard to understand bc of improper grammar

- controller<br>
└ controller of endpoints
- database<br>
└ repositories of controllers and models of those repositories
Copy link
Contributor

Choose a reason for hiding this comment

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

missing verb somehow

Copy link
Contributor

Choose a reason for hiding this comment

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

and repositories have nothing to do with controllers - just models. Remember: We are using MVC, which separates these layers

- database<br>
└ repositories of controllers and models of those repositories
- endpoint<br>
└ endpoint classes and response/request DTOs (**D**ata**T**ransfer**O**bject)
Copy link
Contributor

Choose a reason for hiding this comment

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

DTOs are in a sub-package of "endpoint"

- endpoint<br>
└ endpoint classes and response/request DTOs (**D**ata**T**ransfer**O**bject)
- pubsub<br>
└ pubsub classes and subscriber/publisher for the [PubSubSystem](https://github.com/E-Edu/concept/blob/master/documentation/dev/architecture/architecture.md#pubsub-cluster)
Copy link
Contributor

Choose a reason for hiding this comment

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

plural for "subscriber/publisher"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you mean exactly?

- pubsub<br>
└ pubsub classes and subscriber/publisher for the [PubSubSystem](https://github.com/E-Edu/concept/blob/master/documentation/dev/architecture/architecture.md#pubsub-cluster)
- spring<br>
└ custom config files of spring
Copy link
Contributor

Choose a reason for hiding this comment

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

"Spring related classes"


## Issues

##### Any Bugs, Feature Request or Improvements?
Copy link
Contributor

Choose a reason for hiding this comment

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

Use three instead of four


##### Any Bugs, Feature Request or Improvements?

[Write us an issue!](https://github.com/E-Edu/task/issues/new/choose)
Copy link
Contributor

Choose a reason for hiding this comment

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

They won't write an issue to us, they create an issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Contribution Guide
2 participants