These style guidelines must be followed on all assignment and lab submissions.
- Use JavaDoc-compatible comments and always provide a docs folder with your submission:
- Styling guide
- Select Tools -> Generate JavaDoc…
- In the new window, set the output directory to a new directory called docs inside of your project folder.
- It should reside at the same level as the src and bin directories.
- All submitted projects must be formatted as follows:
- First four letters of your last name.
- First three letters of your first name.
- Lab if this is a Lab, Assign if this is an assignment.
- XX signifying the number of the work.
- Example: MierGre_Lab_01
-
Use the default formatting your IDE provides or follow the Java Code Style.
- Regardless of your choices in formatting, consistency is key.
- The file that contains the main function must also contain a block comment like this at the very top:
/**
* Name: Gregory Mierzwinski
* Date: January 18th, 2022
* Description: …
*/
- Use an auto-formatter if you have issues! See here for a guide on how to do it in IntelliJ.
- Other files must also contain a description such as this at the top, but they can refer back to the main description if there is nothing to describe.
- Submission exporting guidelines using a Zip file:
- Find your project folder through any file explorer, and compress it into a Zip.
- Keep the project name as the name of the Zip file.
- Send me the project to my email or Moodle (if it’s setup).
- Submission exporting guidelines using Github:
- Install Git
- Click VCS/Version Control -> Create Git Repository..
- Select the folder that contains your project and click OK
- Click Git -> Github -> Share Project on Github
- Keep the project name as the name of the repository, keep it as private.
- Login to Github through the same window.
- After pressing Share a page will open up with the new repository.
- Download the zip of the repository from the Code dropdown.
- Send that zip to me by email or through Moodle.
- If you make more changes, they will need to be pushed and the zip will change.