Country
You are in the Nigeria edition. Type your country to switch.
Nigeria
Loading every country…
No country matches. Check the spelling, or choose "Any country" for the Global edition.
Your learning profile
AI for work: productivity, workflows and judgement · Lesson 6 of 10
Coding help for non-developers and developers
AI coding assistants can write small scripts and macros, explain unfamiliar code and suggest tests. This lesson shows how to ask well, why you read before you run, why secrets never go into a prompt, and the review steps every piece of AI-written code goes through.
This lesson is complete in writing. A video for it is on its way.
What you will learn
- By the end you can ask an AI coding assistant for a small script or macro with a precise description.
- You can use an assistant to explain unfamiliar code before you change or run it.
- You can describe tests first and check that code passes them on a copy of the data.
- You can explain why secrets and credentials never go into a prompt.
- You can follow the review steps every piece of AI-written code goes through.
Key terms in this lesson
- AI coding assistant
- An AI tool that suggests, explains or writes computer code, from single lines to whole scripts, based on a description or existing code.
- API
- Application programming interface: a standard, secure connection through which one computer system shares specific data or functions with another.
- Version control
- Keeping each saved version of a file or model, with a note of what changed and why, so that any published version can be found and compared.
- Code review
- A structured read of code by a person before it is used, to find errors, security risks and unclear parts, and to confirm it does what was intended.
- Step 1: Small scripts and macros for everyday work, not started
- Step 2: Read and explain before you run, not started
- Step 3: Tests first, on a copy, not started
- Step 4: No secrets in prompts, and keep versions, not started
- Step 5: The review steps for AI-written code, not started
About 9 min of reading
Step 1 of 5
Small scripts and macros for everyday work
Opening this step…
Step 2 of 5
Read and explain before you run
This step opens when you finish the one above.
Step 3 of 5
Tests first, on a copy
This step opens when you finish the one above.
Step 4 of 5
No secrets in prompts, and keep versions
This step opens when you finish the one above.
Step 5 of 5
The review steps for AI-written code
This step opens when you finish the one above.
Key takeaways
The key takeaways open when you finish every step.
Lesson quiz
5 questions. You need 85% to pass.
The quiz opens when you finish every step.
Read first
Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.
Popular this week: Basics: BeginnerNGX & Africa: Beginner