{"schemaVersion":1,"contentVersion":"3.4.0","id":"boundary.3","languages":{"javascript":{"id":"boundary.3","title":"Checkpoint: words and strings in real files","moduleName":"Words and quotations","tips":"","concept":"<p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p>","teaches":["textobject:iw","textobject:aw","textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"Get the package ready for release. Rename it to <code>northwind-pwa</code>, remove <code>new</code> from the description, and lint <code>app</code> instead of <code>src</code>, where the code lives now. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"jsx","start":"{\n  \"name\": \"shop-web\",\n  \"description\": \"The new storefront for Northwind Trading\",\n  \"version\": \"2.1.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"vite\",\n    \"build\": \"vite build\",\n    \"lint\": \"eslint src tests\"\n  }\n}","startCursor":{"line":2,"ch":12},"paths":[{"keys":["k","c","i","\"","northwind-pwa","<Esc>","j","d","a","w","6","j","c","i","w","app","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"{\n  \"name\": \"northwind-pwa\",\n  \"description\": \"The storefront for Northwind Trading\",\n  \"version\": \"2.1.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"vite\",\n    \"build\": \"vite build\",\n    \"lint\": \"eslint app tests\"\n  }\n}","language":"javascript","evidence":"checkpoint","canonicalKey":"boundary.3#0","canonicalFingerprint":"189f9ar"},{"task":"Checkout is one step now. Change <code>basket</code> to <code>order</code> in the heading, make the button say <code>Place your order now</code>, and remove <code>free</code> from the note, because returns cost 4.95 now. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"jsx","start":"import { Button } from \"../ui/Button.jsx\";\n\nexport function CheckoutSummary({ total, onPay }) {\n  return (\n    <aside className=\"summary\">\n      <h2 className=\"summary-title\">Your basket</h2>\n      <p className=\"summary-total\">{total}</p>\n      <Button variant=\"primary\" label=\"Continue to payment\" onClick={onPay} />\n      <p className=\"summary-note\">Prices include VAT and free returns.</p>\n    </aside>\n  );\n}","startCursor":{"line":6,"ch":44},"paths":[{"keys":["k","c","i","w","order","<Esc>","2","j","c","i","\"","Place your order now","<Esc>","j","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"import { Button } from \"../ui/Button.jsx\";\n\nexport function CheckoutSummary({ total, onPay }) {\n  return (\n    <aside className=\"summary\">\n      <h2 className=\"summary-title\">Your order</h2>\n      <p className=\"summary-total\">{total}</p>\n      <Button variant=\"primary\" label=\"Place your order now\" onClick={onPay} />\n      <p className=\"summary-note\">Prices include VAT and returns.</p>\n    </aside>\n  );\n}","language":"javascript","evidence":"checkpoint","canonicalKey":"boundary.3#1","canonicalFingerprint":"1jbwihz"},{"task":"Make the subject <code>Good news, it has shipped</code>, say <code>order</code> instead of <code>parcel</code>, and remove <code>today</code>, because the email can go out a day late. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"jsx","start":"import { sendEmail } from \"./mailer.js\";\n\nexport async function sendShippedEmail(order) {\n  await sendEmail({\n    to: order.email,\n    subject: \"Your order is on its way\",\n    text: `Hi ${order.name}, your parcel left our warehouse today.`,\n    tag: \"shipping\",\n  });\n}","startCursor":{"line":4,"ch":16},"paths":[{"keys":["j","c","i","\"","Good news, it has shipped","<Esc>","j","c","i","w","order","<Esc>","4","w","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"import { sendEmail } from \"./mailer.js\";\n\nexport async function sendShippedEmail(order) {\n  await sendEmail({\n    to: order.email,\n    subject: \"Good news, it has shipped\",\n    text: `Hi ${order.name}, your order left our warehouse.`,\n    tag: \"shipping\",\n  });\n}","language":"javascript","evidence":"checkpoint","canonicalKey":"boundary.3#2","canonicalFingerprint":"1grd4ok"}]},"python":{"id":"boundary.3","title":"Checkpoint: words and strings in real files","moduleName":"Words and quotations","tips":"","concept":"<p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p>","teaches":["textobject:iw","textobject:aw","textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"Get the package ready for release. Rename it to <code>orders-service</code>, remove <code>new</code> from the description, and type-check <code>app</code> instead of <code>src</code>, where the code lives now. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"python","start":"[project]\nname = \"shop-api\"\ndescription = \"The new orders API for Northwind Trading\"\nversion = \"2.1.0\"\nrequires-python = \">=3.11\"\n\n[tool.taskipy.tasks]\nserve = \"uvicorn app.main:app --reload\"\ntypecheck = \"mypy src tests\"","startCursor":{"line":2,"ch":10},"paths":[{"keys":["k","c","i","\"","orders-service","<Esc>","j","d","a","w","6","j","c","i","w","app","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"[project]\nname = \"orders-service\"\ndescription = \"The orders API for Northwind Trading\"\nversion = \"2.1.0\"\nrequires-python = \">=3.11\"\n\n[tool.taskipy.tasks]\nserve = \"uvicorn app.main:app --reload\"\ntypecheck = \"mypy app tests\"","language":"python","evidence":"checkpoint","canonicalKey":"boundary.3#0","canonicalFingerprint":"189f9ar"},{"task":"Receipts go by email now. Make the email label <code>Send receipts here</code>, make the phone required, and remove <code>only</code> from its help text, because we text about deliveries too. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"python","start":"from django import forms\n\n\nclass CheckoutForm(forms.Form):\n    email = forms.EmailField(label=\"Email address\")\n    name = forms.CharField(label=\"Full name\", max_length=120)\n    phone = forms.CharField(label=\"Phone\", required=False, help_text=\"For the courier only.\")\n    notes = forms.CharField(label=\"Notes\", required=False, widget=forms.Textarea)","startCursor":{"line":7,"ch":38},"paths":[{"keys":["3","k","c","i","\"","Send receipts here","<Esc>","2","j","c","i","w","True","<Esc>","4","W","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"from django import forms\n\n\nclass CheckoutForm(forms.Form):\n    email = forms.EmailField(label=\"Send receipts here\")\n    name = forms.CharField(label=\"Full name\", max_length=120)\n    phone = forms.CharField(label=\"Phone\", required=True, help_text=\"For the courier.\")\n    notes = forms.CharField(label=\"Notes\", required=False, widget=forms.Textarea)","language":"python","evidence":"checkpoint","canonicalKey":"boundary.3#1","canonicalFingerprint":"1jbwihz"},{"task":"Make the subject <code>Good news, it has shipped</code>, say <code>order</code> instead of <code>parcel</code>, and remove <code>today</code>, because the email can go out a day late. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"python","start":"from app.mailer import send_email\n\n\ndef send_shipped_email(order):\n    send_email(\n        to=order.email,\n        subject=\"Your order is on its way\",\n        text=f\"Hi {order.name}, your parcel left our warehouse today.\",\n        tag=\"shipping\",\n    )","startCursor":{"line":5,"ch":19},"paths":[{"keys":["j","c","i","\"","Good news, it has shipped","<Esc>","j","c","i","w","order","<Esc>","4","w","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"from app.mailer import send_email\n\n\ndef send_shipped_email(order):\n    send_email(\n        to=order.email,\n        subject=\"Good news, it has shipped\",\n        text=f\"Hi {order.name}, your order left our warehouse.\",\n        tag=\"shipping\",\n    )","language":"python","evidence":"checkpoint","canonicalKey":"boundary.3#2","canonicalFingerprint":"1grd4ok"}]},"text":{"id":"boundary.3","title":"Checkpoint: words and strings in real files","moduleName":"Words and quotations","tips":"","concept":"<p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p>","teaches":["textobject:iw","textobject:aw","textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"Update the setup steps. Ines has the keys now, the command is <code>docker compose up</code>, and any browser works, so remove <code>only</code>. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"text/plain","start":"## Running it locally\n\n1. Install Node 22 and pnpm.\n2. Copy .env.example to .env and ask Dana for the keys.\n3. Run \"npm run dev\" in the project folder.\n4. Open it in Chrome only, at localhost:3000.\n5. Sign in with the demo account from the wiki.","startCursor":{"line":6,"ch":39},"paths":[{"keys":["3","k","c","i","w","Ines","<Esc>","j","0","c","i","\"","docker compose up","<Esc>","j","d","a","w"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"## Running it locally\n\n1. Install Node 22 and pnpm.\n2. Copy .env.example to .env and ask Ines for the keys.\n3. Run \"docker compose up\" in the project folder.\n4. Open it in Chrome, at localhost:3000.\n5. Sign in with the demo account from the wiki.","language":"text","evidence":"checkpoint","canonicalKey":"boundary.3#0","canonicalFingerprint":"189f9ar"},{"task":"Dana asked for a different delivery note, <code>ring twice and wait</code>. The parcel also left two days later, so remove <code>today</code> and make <code>two</code> say <code>four</code>. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"text/plain","start":"Subject: Your order is on its way\n\nHi Dana,\n\nYour parcel left our warehouse today\nand it should arrive within two days.\n\nWe told the courier to \"leave it at the door\".\n\nNorthwind, shipping team","startCursor":{"line":2,"ch":3},"paths":[{"keys":["2","j","$","d","a","w","j","c","i","w","four","<Esc>","2","j","c","i","\"","ring twice and wait","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"Subject: Your order is on its way\n\nHi Dana,\n\nYour parcel left our warehouse\nand it should arrive within four days.\n\nWe told the courier to \"ring twice and wait\".\n\nNorthwind, shipping team","language":"text","evidence":"checkpoint","canonicalKey":"boundary.3#1","canonicalFingerprint":"1jbwihz"},{"task":"Release 2.4.0 today. Give it the date <code>2026-11-12</code>, rename “Save for later” to <code>Wishlist</code>, and remove <code>rarely</code>, because it happened every time. You can use any commands.","hint":"Change a word, a quoted string and a word with its space. Pick the text object for each one.","mode":"text/plain","start":"# Changelog\n\n## 2.4.0 (unreleased)\n\n- Added gift wrapping at checkout, for 3.50 an order.\n- Added \"Save for later\" to the basket.\n- Fixed emails rarely sent twice after a payment retry.\n\n## 2.3.1 (2026-10-28)","startCursor":{"line":4,"ch":15},"paths":[{"keys":["j","c","i","\"","Wishlist","<Esc>","j","d","a","w","4","k","c","i","w","2026-11-12","<Esc>"],"tier":"idiomatic","technique":"textobject:iw","core":["textobject:iw","textobject:i\"","textobject:aw"],"note":"This is a clean route with what you've learned so far. Any other way that gets the same result is fine too."}],"target":"# Changelog\n\n## 2.4.0 (2026-11-12)\n\n- Added gift wrapping at checkout, for 3.50 an order.\n- Added \"Wishlist\" to the basket.\n- Fixed emails sent twice after a payment retry.\n\n## 2.3.1 (2026-10-28)","language":"text","evidence":"checkpoint","canonicalKey":"boundary.3#2","canonicalFingerprint":"1grd4ok"}]}},"concepts":{"javascript":{"lead":"","reminder":"","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p></div></details>"},"python":{"lead":"","reminder":"","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p></div></details>"},"text":{"lead":"","reminder":"","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Make three changes in each of three real files.</p><p>Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.</p><p>Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.</p><p>For more practice, try another file or do this checkpoint again in a different language.</p></div></details>"}}}