From fd922e92d66ba9cceb250a024485e6ec22d8a5b9 Mon Sep 17 00:00:00 2001 From: Sally McGrath Date: Wed, 23 Oct 2024 20:26:22 +0100 Subject: [PATCH 1/2] return assembly (#1117) other people are using it -- let's not silently remove content when we've no need to --- .../en/module/js1/assembly/index.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 common-content/en/module/js1/assembly/index.md diff --git a/common-content/en/module/js1/assembly/index.md b/common-content/en/module/js1/assembly/index.md new file mode 100644 index 000000000..54ee124ff --- /dev/null +++ b/common-content/en/module/js1/assembly/index.md @@ -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. From ccf7681be763fc729dd0dcecffacc54b2f43f5df Mon Sep 17 00:00:00 2001 From: Anna Aitchison Date: Thu, 24 Oct 2024 08:25:04 +0100 Subject: [PATCH 2/2] Change the content of step one to new genai step (#1098) * Change the content of step one to new genai step * Update org-cyf-itd/content/blocks/step-1/instructions/index.md Co-authored-by: Daniel Wagner-Hall * Update org-cyf-itd/content/blocks/step-1/instructions/index.md Co-authored-by: Daniel Wagner-Hall --------- Co-authored-by: Daniel Wagner-Hall --- .../content/blocks/step-1/acceptance/index.md | 10 ++-- .../content/blocks/step-1/extend/index.md | 12 +++- .../blocks/step-1/instructions/index.md | 55 ++++++++++++++++--- .../content/blocks/step-1/submission/index.md | 5 +- org-cyf-itd/content/steps/one/index.md | 2 +- 5 files changed, 65 insertions(+), 19 deletions(-) diff --git a/org-cyf-itd/content/blocks/step-1/acceptance/index.md b/org-cyf-itd/content/blocks/step-1/acceptance/index.md index 310fe8601..058124812 100644 --- a/org-cyf-itd/content/blocks/step-1/acceptance/index.md +++ b/org-cyf-itd/content/blocks/step-1/acceptance/index.md @@ -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] @@ -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 ``` diff --git a/org-cyf-itd/content/blocks/step-1/extend/index.md b/org-cyf-itd/content/blocks/step-1/extend/index.md index 19389c9bd..896089d70 100644 --- a/org-cyf-itd/content/blocks/step-1/extend/index.md +++ b/org-cyf-itd/content/blocks/step-1/extend/index.md @@ -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] @@ -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. {{}} 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. -{{}} + +Do not give ChatGPT personal information (e.g. your phone number, email address, full name). +{{}} \ No newline at end of file diff --git a/org-cyf-itd/content/blocks/step-1/instructions/index.md b/org-cyf-itd/content/blocks/step-1/instructions/index.md index 1e933e307..116301a3a 100644 --- a/org-cyf-itd/content/blocks/step-1/instructions/index.md +++ b/org-cyf-itd/content/blocks/step-1/instructions/index.md @@ -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] @@ -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 {{}} + src="https://chatgpt.com" + name="Sign up for a free ChatGPT account" + caption="ChatGPT">}} diff --git a/org-cyf-itd/content/blocks/step-1/submission/index.md b/org-cyf-itd/content/blocks/step-1/submission/index.md index 48d999fb5..c60cb132e 100644 --- a/org-cyf-itd/content/blocks/step-1/submission/index.md +++ b/org-cyf-itd/content/blocks/step-1/submission/index.md @@ -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 {{}} -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. {{}} diff --git a/org-cyf-itd/content/steps/one/index.md b/org-cyf-itd/content/steps/one/index.md index b3e48cf0a..c4c43927b 100644 --- a/org-cyf-itd/content/steps/one/index.md +++ b/org-cyf-itd/content/steps/one/index.md @@ -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']