- Sign in to GitHub (create an account if neccesary)
- Fork this repository to your own account.
- Clone the project on your development machine (git clone https://github.com/YourAccountNameHere/Workshop-EatSleepCodeRepeat.git)
- Open the solution in Visual Studio (The solution should compile without errors)
- Go to the website of AppVeyor and log in with your GitHub account.
- Add the Workshop-EatSleepCodeRepeat project.
- The project should start building without any further configuration --> The build will fail due to a failing unit test.
- Go to Visual Studio and create a new branch (example: fix multiply unit test)
- Implement the missing functionality in the Calculator class and make the unit test pass.
- Commit your local changes (git add *, git commit -m "your comment here").
- Push the changes to your Github repository (git push, or Publish the branch in Visual Studio).
- Open a Pull Request in GitHub or create Pull Request in Visual Studio.
- The AppVeyor CI should queue a build for the new Pull Request that now succeeds.
- Merge the Pull Request if the build passes.
- Optional: Add the Appveyor Badge to this README.MD file.
- Optional: Protect the master branch to ensure that failing builds can not be merged to master.
- Go to BetterCodeHub.com and log in with your GitHub account.
- Run and analyze the Workshop-EatSleepCodeRepeat repository with BetterCodeHub.
- Refactor the code in Visual Studio Lab2 to comply with the first three guidelines.
- Commit and push your changes to GitHub after refactoring
- Run the analysis in BetterCodeHub.com --> The project should now comply to 9 of the 10 guidelines.
- Send a pull request to the BetterCodeHub repository with your version of the refactoring
Similar to Lab 2:
- Refactor the code in Lab3 to comply with the last guideline.
- Don't forget to send a pull request.
Fork one of the available open-source projects to your own GitHub account:
- Netflix Fido
- codemaid
- ShareX
- GitHub Scientist.NET
- Optional: Fork your own favourite open-source project.
Go to BetterCodeHub.com and analyze an open-source project. Compare the quality of different open source projects with respect to the guidelines. Look for potential refactoring candidates and investigate how much refactoring is neccesary to make the project comply to a guideline. Discuss the results with your peers.
Use the input from Lab 4 to refactor the code of an open-source system:
- Clone your forked repository to your local machine.
- Try to open the project in Visual Studio and compile the solution (this might take some effort to get things working)
- Make a small improvement to the code-base.
- Commit and push your change.
- Run the analysis on BetterCodeHub to learn how your change affected the adherance to the guidelines.
- Create a pull request (WARNING: Only create pull requests to the BetterCodeHub fork and not to real projects, otherwise we will not be able to track your change).