foundersandcoders / workshop-QMUL

Resources & learning material for QMUL workshop
3 stars 3 forks source link

TDD week #11

Open MyPitit opened 8 years ago

MyPitit commented 8 years ago

Monday

10:00 - 11:00 Introduction & Course Overview 11:00 - 13:00 Github workshop 13:00 - 14:00 Lunch 14:00 - 16:30 Introduction to HTML, CSS & GitHub Pages 16:30 - 17:00 Upload to GH Pages

Tuesday

10:00 - 11:00 Introduction to TDD Romanizer?

Wednesday

Thursday

Friday

Project - Stopwatch build TDD

Resources

sohilpandya commented 8 years ago

@MyPitit Thanks for creating this issue.

@sofer @tormod17 @JackTierney Monday looks good.

Tuesday we will first need to introduce Javascript to them, no need to do the Git/GitHub Repo as they need to focus of code craftmanship & TDD.

Tuesday

10am - 1pm Introduction to Javascript and the Basic Codewars Challenges without any tests just like we did with API Week. 2pm - 5pm Introduction to TDD. What is TDD Why TDD and How TDD. I will create slides for this using the following repo - https://github.com/dwyl/learn-tdd

Wednesday

10am - 10.30am Recap of TDD and why we should do it, talk about tech companies and the ethos they have in terms of using TDD. Good for them and their CV's. 10.30 - 1pm Morning Challenge that Jack did with FAC8 and Ruth with FAC 7 very similar but will get them understand the testing suite and testing better. - https://github.com/JMurphyWeb/testing-morning-challenge 2pm - 5pm Coin Calculator Challenge from https://github.com/dwyl/learn-tdd

Thursday

**10am -

tormod17 commented 8 years ago

My suggestion is that we can introduce testing with the Kata's we create tests for some simple katas. Choose a testing library Qunit / jasmine and write tests before we start the kata.

MyPitit commented 8 years ago

I can do a presentation about what is TDD, why, etc... and explaining how to set up Jasmine.

How is that sounds @sohilpandya @tormod17 @JackTierney?

JackTierney commented 8 years ago

@sohilpandya doing UDACITY and using the content for Thursday / Wednesday. @jacktierny Codecademy @tormod17 StopWatch and make it a Readme. also make coin calculator into a readme.

iteles commented 8 years ago

@MyPitit @JackTierney @sohilpandya @tormod17 Really worth someone trying to be at the stop go continue tomorrow and seeing what the feedback is from FAC8's TDD week to bring into QMUL TDD week!

sohilpandya commented 8 years ago

@iteles great shout! will make sure a couple of us are there tomorrow.😄

@JackTierney @MyPitit @tormod17 I've been looking at the Udacity course and it's all Object orientated JS. Which I am not a fan of, thinking of doing Romanizer with the class instead of the TDD session from Udacity, lets chat tomorrow morning 💯

MyPitit commented 8 years ago

@iteles Sohil wanted to do a survey tomorrow morning to get some feedback :)

MyPitit commented 8 years ago

@iteles Sorry! I misunderstood your last comment. I thought it was for QMUL not for FAC8.

MyPitit commented 8 years ago

Katas: https://repl.it/C1fG/1 https://repl.it/C1fF https://repl.it/C1fH/1 https://repl.it/C2KO https://repl.it/C2KO/3

sohilpandya commented 8 years ago

Tuesday

10am - 1pm JS talk and challenges 2pm - 3pm TDD Slide 3pm - 5pm @JackTierney Codecademy.

Wednesday

Need to convert from QUNIT to Jasmine. 10am Recap of TDD 10.30am - 11am Jasmine Slide 11am - 1pm Simple TDD with Jasmine Challenges function add(a,b) with TDD 2/3 more simple function with TDD 2pm - 5pm String calculator

Thursday

11-1pm Jacks Morning Challenge from Qunit to Jasmine 2pm - 5pm Friday end. Stopwatch TDD Style. step by step instruction for it.

sohilpandya commented 8 years ago

String Calculator

Before you start

The Bowling Game Kata

The essence of this kata, popularized by Uncle Bob Martin, is to create a function bowlingScore that works out the score for 10-pin Bowling. The scoring system for bowling takes some getting used to, if you want to tackle this problem I would recommend looking up the rules on Wikipedia. The weird scoring system means this is a cool problem to tackle. Uncle Bob breaks this kata down into the following five tests:

  1. Gutter game scores zero - When you roll all misses, you get a total score of zero.
  2. All ones scores 20 - When you knock down one pin with each ball, your total score is 20.
  3. A spare in the first frame, followed by three pins, followed by all misses scores 16.
  4. A strike in the first frame, followed by three and then four pins, followed by all misses, scores 24.
  5. A perfect game (12 strikes) scores 300. However if you are feeling adventurous, you don’t have to take Uncle Bob’s test suggestions, you can just come up with your own tests.