Skip to content

Commit

Permalink
Merge branch 'main' into bug/857-cached-link
Browse files Browse the repository at this point in the history
  • Loading branch information
SallyMcGrath authored Oct 24, 2024
2 parents b9eed24 + ccf7681 commit bb97cd3
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 19 deletions.
56 changes: 56 additions & 0 deletions common-content/en/module/js1/assembly/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
+++
title = '🏗️ Assembling the parts'

time = 20
facilitation = false
emoji= '🧩'
[objectives]
1='Explain how different concepts are combined to solve a goal'
[build]
render = 'never'
list = 'local'
publishResources = false

+++

Earlier we defined a sub-goal to find a value for the hours from the `time` input. We've found that `Number(time.slice(0,2))` is an expression that evaluates to the hours from `time`. So we can write an `if` statement using this expression:

```js
if (Number(time.slice(0, 2)) > 12) {
}
```

If the time is `"23:00"` then the expression `Number(time.slice(0, 2)) > 12` will evaluate to `true` and the body of the `if` statement will be executed.

This `if` statement is implementing the following part of the diagram from earlier:

```mermaid
flowchart TD
A{Check: Are the hours greater than 12?}
```

Now we can format the string using our approach from earlier:
we’ll need to append `"pm"` to the string expression and subtract 12 from the hours. So we get the following:

```js
if (Number(time.slice(0, 2)) > 12) {
return `${time.slice(0, 2) - 12}:00 pm`;
}
```

The `return` statement above implements the following steps we set out earlier:

```mermaid
flowchart LR
D[Step 4: subtract 12 from the hours]
D --> E[Step 5: add 'pm' to the rest of the time]
E --> F[Step 6: return the new time]
```

Now we can **re-run** our assertions from earlier to check our function behaves as target.
10 changes: 6 additions & 4 deletions org-cyf-itd/content/blocks/step-1/acceptance/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title ="Step 1: How to check your work"
description= "Acceptance criteria for the Code Academy case study"
description= "Acceptance criteria"
emoji= ""
time= 10
[build]
Expand All @@ -14,7 +14,9 @@ A volunteer will review your submission and check it meets the acceptance criter
Here is the criteria you need to meet:

```objectives
- You have completed the Code Academy case study
- You have generated a customised resume and saved it in a doc
- You have shared a doc with your generated resume
- You have generated a cover letter for Jane using AI
- You have saved the contents in a document
- You have added your name to the document file name
- You have uploaded the document
- You have added a comment giving a piece of feedback on the AI’s work
```
12 changes: 9 additions & 3 deletions org-cyf-itd/content/blocks/step-1/extend/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title ="Step 1: Extend Your Skills"
description= "Use AI software to make a customised CV for a particular job. Include important words related to the job so that employers can find this CV more easily."
description= "Explore using AI to generate a cover letter for yourself or a CV"
emoji= "💪🏾"
time= 60
[build]
Expand All @@ -11,8 +11,14 @@ time= 60

#### Use your new skill in real life:

This optional step is just for you. You don't need to submit it. Next, revise your own CV to target a job you are looking for in real life.
You do not have to complete this part of the task, but you might find it interesting or useful. Please don’t submit the result - it will lead to your submission being rejected.

You can ask ChatGPT to generate a CV for Jane using her summary. There isn’t quite enough information there for the AI to do a perfect job, so it might guess.

You could also ask it to generate a CV for you. [This course by CodeAcademy](https://www.codecademy.com/enrolled/courses/streamline-resume-creation-with-generative-ai-case-study) might be helpful in getting AI to make a CV. But, please do note that the sample prompts in the course do not always work.

{{<note type="tip" title="Be careful with Generative AI">}}
Remember, your _real_ CV must only say _true_ things. (Lying on your CV is a crime in the UK!) Make sure you only use the AI to help you write your CV, not to write it for you.
{{</note>}}

Do not give ChatGPT personal information (e.g. your phone number, email address, full name).
{{</note>}}
55 changes: 46 additions & 9 deletions org-cyf-itd/content/blocks/step-1/instructions/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title ="Step 1: What to do"
description= "Use AI software to make a customised CV for a particular job. Include important words related to the job so that employers can find this CV more easily."
description= "Use ChatGPT to make a cover letter for a fictional person"
emoji= "🤖"
time= 60
[build]
Expand All @@ -9,14 +9,51 @@ time= 60
publishResources = false
+++

#### Take the Code Academy Case Study
#### Generate a Cover Letter with ChatGPT
##### Overview
Cover letters are short documents sent alongside your CV. They introduce you and tell the person reviewing your application why you’re perfect for the job. Not all job applications need a cover letter. But, when needed, an excellent cover letter is critical.

1. Create an [account on Code Academy](https://www.codecademy.com/login).
1. Once you are logged in, go to the case study [Streamline Resume Creation with Generative AI](https://www.codecademy.com/courses/streamline-resume-creation-with-generative-ai-case-study)
1. Follow the instructions to create a customised CV
1. Create a doc with the CV you generated
Generative AI tools like ChatGPT can help with drafting these documents as long as you’re careful. Copying text from ChatGPT without reviewing it is a bad idea, as it tells lies. It's especially important to be mindful of how you use it in an educational context. ChatGPT can make you think you’re progressing when you’re not. Copying straight from it won't help you learn.

This step is all about getting ChatGPT, a generative AI software, to help you make a cover letter for Jane Doe. Jane is a fictional person who has completed a software development programme. Jane is applying for a Junior Software Developer role with Software for Lawyers Ltd.

You don’t need to understand the technical terms in these two pieces of text to complete the task.

###### Jane’s summary:
Jane has recently completed the part time Super Coders Software Development programme. During this time, she was also working full-time and caring for her two children. The course teaches full stack web development and general programming concepts. It teaches HTML, CSS, JavaScript, Node.js, Express, React and PostgreSQL. Jane is very passionate about programming. She taught herself the Python programming language before starting the course.

Her portfolio includes many full stack applications.This includes projects she has built with other students, as well as some solo projects. She’s especially proud of a project called Pin the Mood. This project stores book recommendations until the user has time to read the books. The project used React, Express, Node.js and PostgresSQL. The project team was an agile team made up of two trainees, a scrum master and a tech lead.

After leaving school seven years ago, she joined Lawyers 4U as a call handler. She has developed excellent interpersonal skills and has gained experience working under pressure.

###### The Job Description:
Software for Lawyers Ltd makes case management software. Their software helps lawyers manage caseloads and track time spent. The development team is small and close knit. They are looking to add a Junior Software Developer to their team.

**Requirements**
- A university degree in a relevant subject or software development course
- Experience with Node.js, Express and React
- A strong portfolio with solo and group projects
- Excellent interpersonal skills
- Experience developing software in an agile team
- Passionate about programming

**Nice to Haves**
- Experience in the legal sector
- Some knowledge of Python
- Experience working in an office-based environment

##### Steps
1. Go to https://chatgpt.com
2. Signup for an account
3. Ask the AI to help you write a cover letter. Give it the description of Jane and the job description provided. It may take some experimentation to get the right prompt. That’s OK - getting AI to do what you want is all about trial and error.
4. Think about [the goals of a cover letter](https://hbr.org/2014/02/how-to-write-a-cover-letter). Read and reflect on the cover letter. Has the AI provided good links between Jane's experience and the job's requirements (e.g. does it note that she has experience in the legal sector)? How has the AI demonstrated that Jane has the right skills for the job? Has the AI added anything that wasn’t in the description of Jane? Could you do better?
5. Think about your own future job hunt. What have you learned that will help you apply for jobs in the future? Will you use ChatGPT to help you generate a cover letter? If so, how will you make sure it's a good cover letter? If not, why not?
6. Create a document with the text of the cover letter you generated
7. Save the document. Please ensure that your name is in the file name. It can just be your given name or your family name if you prefer.
8. Upload the cover letter to this site
9. Add a comment with at least three comments (positive or negative) on the AI’s work

{{<blocklink
src="https://www.codecademy.com/courses/streamline-resume-creation-with-generative-ai-case-study"
name="Streamline Resume Creation with Generative AI"
caption="Code Academy">}}
src="https://chatgpt.com"
name="Sign up for a free ChatGPT account"
caption="ChatGPT">}}
5 changes: 3 additions & 2 deletions org-cyf-itd/content/blocks/step-1/submission/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ time= 5

You must do this in CYF Course platform

1. Share a link to the CV you generated with AI
1. Upload the document containg cover letter to this site
2. Add a comment with at least one comment (positive or negative) on the AI’s work

{{<note type="tip" title="Personalise your URLs">}}
Before you share your link with your mentors, edit your file name to include your name. It can just be your given name or your family name if you prefer.
Before you upload the document, edit your file name to include your name. It can just be your given name or your family name if you prefer.
{{</note>}}
2 changes: 1 addition & 1 deletion org-cyf-itd/content/steps/one/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = 'One'
description = 'Revise a CV with Generative AI'
description = 'Make a Cover Letter with Generative AI'
layout = 'prep'
emoji= '🤖'
menu_level = ['module']
Expand Down

0 comments on commit bb97cd3

Please sign in to comment.