Energiser
Every CYF session begins with an energiser. Usually thereβs a rota showing who will lead the energiser. We have some CYF favourite games you can play if you are stuck.
- Traffic Jam: re-order the cars to unblock yourself
- Telephone: draw the words and write the pictures
- Popcorn show and tell: popcorn around the room and show one nearby object or something in your pocket or bag and explain what it means to you.
Progress check-in π
Link to the coursework
https://curriculum.codeyourfuture.io/js1/success/
Why are we doing this?
π The most important thing is that you are secure in your understanding.
At the end of the course, we will expect you to build novel applications using your understanding. If you cannot build things, we cannot put you forward for jobs. It is in your personal interest to make sure you have properly understood this module.
To progress to the next module you need to meet the success criteria for this module. How will you as a cohort meet the module success criteria? Discuss it in your class channel and make a plan together.
π§πΏβπ€ good strategies
- asking volunteers to review your code
- helping each other with coursework blockers
- arranging midweek study sessions
- using Saturday time to review code and cohort tracker
π πΏ bad strategies
- opening empty PRs
- copying and pasting
- breaking the Trainee Agreement
- mistaking the measure for the target
Maximum time in hours
.5
How to get help
Discuss with your cohort. Support each other.
How to submit
In week 4 of your module you will need a representative to report to the organisation. Hereβs your template, fill in your details and delete as appropriate:
π Cohort Progress Report from @cohort-name to @programme-team
- criterion
- criterion
- criterion
- criterion
β We are progressing to the next module. β We are taking a consolidation week to meet our targets.
- π― Topic Code Review
- π― Topic Communication
- π― Topic Delivery
- π― Topic Requirements
- π― Topic Teamwork
- π― Topic Testing
- π― Topic Time Management
- π Priority Mandatory
- π¦ Size Tiny
- π Week 1
- π Week 4
Morning Break
A quick break of fifteen minutes so we can all concentrate on the next piece of work.
β Time string π
formatSecondsAsString
Learning Objectives
When programming, you will often encounter large problems. Developers must learn to break down complex problems into smaller problems. In this workshop, weβll use tests to break down the implementation of formatAsSecondsAsString
.
Given a time in seconds,
When formatAsSecondsAsString
is called with the time
Then we it should return a well formatted time string.
For example, if we call formatAsSecondsAsString
with 390
then we should get β6 minutes and 30 secondsβ
If we call, formatAsSecondsAsString
with 6327894
then we should get ""
π§© Break down the problem
(10 mins)
To break down this problem, we will only start considering seconds inputs <= 60. Why do you think this is a good place to start?
formatAsSecondsAsString(1) // "1 second"
formatAsSecondsAsString(50) // "50 seconds"
Spend 10 minutes, think about some other test cases you can explore to check this functionality
π§ͺ Set up tests
(10 mins)
In this directory (time-string
), create a package.json
and install Jest as you did in the prep material.
Next, create a test file, time-string.test.js
. In there, write your first test.
π©Ί First steps
(10 mins)
Once youβve written your first test, youβll need to implement the logic to get it working for this test case. Donβt try rushing ahead in this kata - otherwise it could become very unwieldy!
πΌ New cases
Now weβll consider cases where the input is less than 3600? Why is this a good idea?
formatAsSecondsAsString(61) // "1 minute and 1 second"
Continue this pattern of writing tests and then implementing your functionality. Do this until youβre confident your function works in the case where the input is less than
Community Lunch
Every Saturday at CYF we cook and eat together. We share our food and our stories. We learn about each other and the world. We build community.
This is everyoneβs responsibility, so help with what is needed to make this happen, for example, organising the food, setting up the table, washing up, tidying up, etc. You can do something different every week. You donβt need to be constantly responsible for the same task.
Study Group
What are we doing now?
Youβre going to use this time to work through coursework. Your cohort will collectively self-organise to work through the coursework together in your own way. Sort yourselves into groups that work for you.
Use this time wisely
You will have study time in almost every class day. Donβt waste it. Use it to:
- work through the coursework
- ask questions and get unblocked
- give and receive code review
- work on your portfolio
- develop your own projects
ποΈ Code waiting for review π
Below are trainee coursework Pull Requests that need to be reviewed by volunteers.
NW-6 | Fikret Ellek | JS1| [TECH ED] Complete week 4 exercises | WEEK-4 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewNW-6 | Fikret Ellek | JS1| [TECH ED] Complete week 3 exercises | WEEK-3 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewLondon_10/Anu Thapaliya/Module-JS1/week2 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewNW6 | Pedram Amani | Module-JS1 | Week4 π
Learners, PR Template
Self checklist
- [ β ] I have committed my files one by one, on purpose, and for a reason
- [ β ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- [ β ] I have tested my changes
- [ β ] My changes follow the style guide
- [ β ] My changes meet the requirements of this task
Changelist
Briefly explain your PR.
JavaScript 1 - Week 4 exercises
Questions
Ask any questions you have for your reviewer.
Start a reviewNW6| FIDAA BASHIR | Module-JS1 | WEEK3 π
Learners, PR Template
Self checklist
- [ β ] I have committed my files one by one, on purpose, and for a reason
- [ β ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- [ β ] I have tested my changes
- [ β ] My changes follow the style guide
- [β ] My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewAfternoon Break
Please feel comfortable and welcome to pray at this time if this is part of your religion.
If you are breastfeeding and would like a private space, please let us know.
Study Group
What are we doing now?
Youβre going to use this time to work through coursework. Your cohort will collectively self-organise to work through the coursework together in your own way. Sort yourselves into groups that work for you.
Use this time wisely
You will have study time in almost every class day. Donβt waste it. Use it to:
- work through the coursework
- ask questions and get unblocked
- give and receive code review
- work on your portfolio
- develop your own projects
ποΈ Code waiting for review π
Below are trainee coursework Pull Requests that need to be reviewed by volunteers.
NW-6 | Fikret Ellek | JS1| [TECH ED] Complete week 4 exercises | WEEK-4 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewNW-6 | Fikret Ellek | JS1| [TECH ED] Complete week 3 exercises | WEEK-3 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewLondon_10/Anu Thapaliya/Module-JS1/week2 π
Learners, PR Template
Self checklist
- I have committed my files one by one, on purpose, and for a reason
- I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- I have tested my changes
- My changes follow the style guide
- My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a reviewNW6 | Pedram Amani | Module-JS1 | Week4 π
Learners, PR Template
Self checklist
- [ β ] I have committed my files one by one, on purpose, and for a reason
- [ β ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- [ β ] I have tested my changes
- [ β ] My changes follow the style guide
- [ β ] My changes meet the requirements of this task
Changelist
Briefly explain your PR.
JavaScript 1 - Week 4 exercises
Questions
Ask any questions you have for your reviewer.
Start a reviewNW6| FIDAA BASHIR | Module-JS1 | WEEK3 π
Learners, PR Template
Self checklist
- [ β ] I have committed my files one by one, on purpose, and for a reason
- [ β ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- [ β ] I have tested my changes
- [ β ] My changes follow the style guide
- [β ] My changes meet the requirements of this task
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.
Start a review