Skip to content

1audrey/apprentice-boot-camp-fundamentals-2

 
 

Repository files navigation

Competencies, Behaviours and Knowledge units

  • TC1 Logic: writes good quality code (logic) with sound syntax in at least one language
  • TC4 Test: can test code and analyse results to correct errors found using either V-model manual testing and/or using unit testing
  • TC9 Development lifecycle: can operate at all stages of the software development lifecycle, with increasing breadth and depth over time with initial focus on build and
  • TC10 Can apply good practice approaches according to the relevant paradigm (for example object oriented, event driven or procedural)
  • TC11 Can interpret and follow: software designs and functional/technical specifications, testing frameworks and methodologies, company defined ‘coding standards’ or industry good practice for coding, company/team/client approaches to continuous integration/source control

Resources

  • Slides
  • Laptops
  • Internet access
  • post-its
  • pens
  • flips, index cards

Mentors / Languages

Two–three mentors required in addition to leads. These should be able to cover support for the required languages.

Several exercises (katas and code starters) will need to be ported to required languages.

Prep-work for apprentices

None

Follow-on tasks

Organisation mentors should look to exercise the knowledge we’ve covered in the boot camp. Below are suggestions for tasks that would do this, but please use your own judgement to work out what to do. There is no need for anything to be returned to MD or the presenters—it’s just a learning exercise.

  • Take a look at one of your codebases and find examples of duplication
  • Do a kata using the red green refactor practice
    • We will be doing the Bowling Kata as part of the boot camp
  • Spend a day doing red green refactor on your codebase with a pair, and leave some time at the end of the day to reflect / retrospect
    • Did you enjoy it
    • What made it difficult
    • What made it easier
  • Pair on a refactor where you use the IDE to refactor your code rather than manually rewriting it
  • Explore ‘Refactoring Guru’ from the resources below
  • Try to get better at using the keyboard shortcuts for your IDE

Further reading / learning resources

Slides

The slides can be viewed from the link at the top of the repository.

Exercises

  • Receipt duplication (pairs)
  • TDD Bowling Kata (pairs)
  • TDDing realistic stories
  • Rename refactor
  • Extract variable refactor
  • Extract constant refactor
  • Extract method refactor
  • Adapting duplicated code
  • Removing duplication

Boot Camp Summary

TDD

  • Why do we write tests
  • Why do we write tests first
  • Why people might not write tests first
  • Arrange, Act, Assert
  • Red, Green, Refactor
  • Exercise: Bowling Kata with TDD
  • Exercise: Implementing realistic user stories using TDD

Refactoring

  • Refactoring vs rewriting
  • Exercise: Renaming things
  • Exercise: Extracting variables
  • Exercise: Extracting constants
  • Exercise: Extracting methods

DRY

  • Definition
  • Exercise: adapt poorly implemented checkout kata with lots of duplication
  • How to fix
  • Why duplication happens
  • Exercise: refactor away duplication

Briefing for organisation mentors

  • TBC

Working with the slides

The slides are stored as Markdown files in docs/_posts and are presented using a combination of Jekyll and reveal.js. A remote Jekyll theme is used to help make changes to the Jekyll code centrally.

The easiest way to preview your changes locally is to use docker to run Jekyll. To do this, install docker if you haven’t already and run docker-compose up from the root of this project in a terminal. Your changes will be visible on http://localhost:4000/. Any changes you make to the slides will be reflected in your browser—there’s no need to restart docker. You can hit ctrl-c to stop the process.

Once you push your changes the slides will be published using GitHub Pages automatically (see the link at the top of the repository).

Releases

No releases published

Packages

No packages published

Languages

  • C# 32.0%
  • Java 23.7%
  • JavaScript 23.1%
  • Python 21.2%