Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistente coding style kiezen en doorvoeren #15

Open
2 tasks
bartvanderwal opened this issue Apr 5, 2018 · 1 comment
Open
2 tasks

Consistente coding style kiezen en doorvoeren #15

bartvanderwal opened this issue Apr 5, 2018 · 1 comment

Comments

@bartvanderwal
Copy link
Member

bartvanderwal commented Apr 5, 2018

De coding style binnen de OOPG is nog niet helemaal consistent. Dit zou wel een mooi voorbeeld zijn, want je ziet dat veel studenten de stijl gewoon kopiëren.

Ik stel zelf voor gewoon de Google Java Style Guide te hanteren; deze is vrij standaard en compleet beschreven (maar daardoor wel uitgebreid).

Ik wil dit zelf wel een keer integraal doorvoeren voor een paar punten.

Bijvoorbeeld package naam aanpassen om hier geen camelCase e.d. te gebruiken (OOPDProcessingEngineHAN :s), en overal spaties na komma's te plaatsen (vooral in parameter lijst van functie) in plaats van soms wel en soms niet:

Google Java Style Guide

  • 5.2.1 Package names are all lowercase, with consecutive words simply concatenated together (no underscores). For example, com.example.deepspace, not com.example.deepSpace or com.example.deep_space.
  • 4.6.2 ... a single ASCII space also appears in the following places only ... after ,, :, ; or the closing parenthesis ) of a cast
@meronbrouwer
Copy link
Collaborator

De packagenamen zijn al aangepast en alle classes die ik heb aangeraakt, heb ik ook geformatteerd. Het meeste werk voor deze taak is dus al doorgevoerd op master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants