Skip to content

BetterCodeHubTraining/BCH-dotNet-intro-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop Eat Sleep Code Repeat

Lab 1: Configuring a CI pipeline

  • 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.

Lab 2: Use BetterCodeHub to find refactoring candidates

  • 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

Lab 3: Use BetterCodeHub to find refactoring candidates

Similar to Lab 2:

  • Refactor the code in Lab3 to comply with the last guideline.
  • Don't forget to send a pull request.

Lab 4: Analyzing existing open-source projects

Fork one of the available open-source projects to your own GitHub account:

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.

Lab 5: Refactoring an open-source project

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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages