Coder Social home page Coder Social logo

laurenbee / apprentice-boot-camp-fundamentals-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcr-digital/apprentice-boot-camp-fundamentals-1

0.0 0.0 0.0 6.61 MB

Slides and exercises for Fundamentals 1

Home Page: https://mcr-digital.github.io/apprentice-boot-camp-fundamentals-1/

License: Creative Commons Attribution Share Alike 4.0 International

Java 22.15% C# 30.87% Python 26.34% JavaScript 20.64%

apprentice-boot-camp-fundamentals-1's Introduction

Fundamentals One Boot Camp

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
  • TC10 Can apply good practice approaches according to the relevant paradigm (for example object oriented, event driven or procedural)

Resources Required

  • Slides
  • Laptops
  • Internet access
  • Post-its
  • Markers
  • A3 paper for apprentices to draw on
  • Whiteboard (or flipcharts if this is not possible)

Mentors / Languages

One mentor required per three apprentices (leads can act as mentors). 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 if not already done.

Prep-work for apprentices

  • Make sure you can sign in to github.com with your own account
  • Fork this repo (so you can push your changes later)
  • Clone your fork: git clone https://github.com/[your-username]/apprentice-boot-camp-fundamentals-1.git
  • Follow the instructions in the README for your language under the exercises directory, making sure you can run the tests
  • It’s normal to have problems with this, so just let us know! :)

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.

  • Draw a diagram showing how the classes interact in some code you have been working on
  • They should identify Encapsulation, Abstraction, Inheritance, Polymorphism (this might require some discussion)
  • Take a look at one of your codebases and find examples of classes with multiple responsibilities
  • Try to improve some existing classes or methods with multiple responsibilities by using some of the OO principals
  • Finish off the exercises started at the boot camp (checkout kata for example)

Further reading / learning resources

Slides

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

Exercises

  • Identify objects from business scenario (groups)
  • Model a pack of playing cards (groups)
  • Use abstraction to make the Snap! game work for normal cards (groups)
  • Refactor the card model using inheritance (groups)
  • Use polymorphism to implement Super Snap! using a mixture of card types
  • Adapting Checkout Kata (pairs)
  • Separating responsibilities from Checkout Kata (pairs)

Boot Camp Summary

Object Orientation

  • Programming paradigms
  • Why OO?
  • How to think about objects

Source Control and GitHub

  • Why source control
  • Create, clone, commit, push

OO Principles

  • Modelling some classic scenarios with objects
  • Principles
    • Encapsulation
      • Apply to modelling
      • Rewrite some existing code to remove inappropriate intimacy and coupling
      • Code review some existing code
    • Abstraction
      • Apply to modelling
      • Rewrite some existing code to abstract complexity
      • Explain difference between encapsulation and abstraction
      • Introduce to interfaces
    • Polymorphism
      • Apply to modelling
      • Give some examples
    • Inheritance

Single Responsibility Principle

  • Cohesion
  • Functional Decomposition
  • Critiquing and adapting poorly implemented checkout kata

apprentice-boot-camp-fundamentals-1's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.