Crafting A Learning Path

Last updated on 2026-11-25 | Edit this page

Overview

Questions

  • What am I confident that I know?
  • What do I want to know but don’t yet?
  • How can I ask for a strategy to master those things?
  • What am I missing? What are the gaps in my understanding?
  • How can I ask questions that reveal these gaps?
  • How can I build more complex skillsets?

Objectives

After following this episode, learners will be able to…

  • Reflect on what they have learned so far.
  • Identify what it would be valuable to learn next.
Challenge

What Have You Learned?

Take five minutes to think about what you have learned in this workshop, and make a list of 1-3 most important takeaways. This list is for you, and you do not need to share it with the Instructors or the other participants.

We have reached the end of this workshop but this is only the beginning of the programming skills you can learn. Hopefully, the knowledge and ability you have gained here will be immediately useful.

Scaling Things Up


The script we worked with in this lesson is short. We have been able to provide the entire program to the chatbot alongside our prompts and when we ask the chatbot to make changes, we get a complete new version back as part of the response. This approach, and the way we have been exploring the changes in detail every time, works well for relatively small modifications to relatively small programs. One helpful aspect, especially for novices learning for the first time about how code works, is that we can keep a mental model of the entire program in our heads while we work with it. This is a sensible way to keep working while you develop your familiarity with the central concepts of programming and your ability to understand what the code that you read does.

But this approach won’t scale well, to much larger programs and larger changes. One reason for this is the increasing complexity: larger programs tend to be split into multiple files and folders that refer to each other, and even small changes to the functionality of a large program can touch a lot of different places in its source code. This makes it difficult even for experts to maintain a complete picture of the architecture of a large piece of software and how every part of it works.

As well as challenging human comprehension, storing information about the structure and function of a larger program will also require more of a model’s context. Recall from a previous lesson how the responses generated by an LLM are influenced by the information represented in its context window, and that the size of this window is constrained. As the size of the project we are working on increases, the management of the model’s context for the task becomes increasingly important. As the amount of information relevant to the task approaches the capacity of the model’s context window, and especially after it exceeds that capacity, we are likely to observe a drop in the quality of its responses.

Another reason why the current approach won’t scale well relates to the inclusion of the whole script in each chatbot response. This requires more text to be generated in each response, which means more opportunities for errors to be introduced. The whole script should be reviewed for changes every time, rather than only the lines where we expect changes to appear. We consider the risk of errors in the parts of the script that are meant to remain unchanged to be acceptable given its short length. But better practice would be to track the changes being made to our script using version control, because it helps us see exactly what changes in each iteration. A version control system like Git keeps track of the specific changes being made each time a program is modified, and helps you to document those changes. This makes it easier for us to focus our attention, and some AI coding tools can use the history of changes to a program to enhance their context for a given task. Regardless of whether you continue to work with AI in your coding projects, we strongly recommend that you learn how to use version control for them.

People have been developing different strategies to address the challenges of scaling AI-assisted coding to large programs, but we remain far from a consensus about risk mitigation and best practices. For now, as you keep working with AI tools while coding, we recommend that you focus much of your attention on verification and validation of the programs being generated on your behalf.

What’s next?


What you learn next depends on how you expect to apply these skills in your future work.

For example, if you expect to need mostly scripts that you can apply to repeat the same analysis on multiple data sets, a good next step might be to learn more about good practices for cleaning and organising data, and how to describe the steps of your analysis as a workflow. You might also benefit from exploring how to create reproducible reports from your analyses, combining methodlogy, results, and discussion into a single document with a tool like Quarto.

Alternatively, you might find yourself needing to build programs that are larger and more complex than the scripts we have been working with here. In this case, you will probably benefit from learning more about some of the fundamentals of software engineering: building command line interfaces, defining object classes, and the automated testing frameworks mentioned in the previous episode are all good things to explore next.

Callout

Good Next Steps

Most learners who have found this workshop valuable will benefit from learning more about:

  • Working in the shell: scripts can be run easily in a command line interface, and learning more about how to navigate your filesystem and run programs in that environment will empower you to quickly repeat and automate processes and analyses. We recommend learning to work with the Bash shell first. Key concepts include relative and absolute file paths, file and folder access and permissions, and pipes and redirection. Software Carpentry’s The UNIX Shell is a good place to start.
  • More features of an Integrated Development Environment (IDE): these powerful editor tools are designed to facilitate software development, e.g. through debugging tools, combined views of the editor, program output, environment information, and warning/error logs. Many include features that integrate AI coding assistance. Positron and RStudio are popular choices for R; Visual Studio Code (or the open source equivalent, VSCodium) is a popular general choice.
  • Version control: refer to the discussion above. The key concepts to learn include: commits, commit messages and commit history, diffs, and branches. Software Carpentry’s Version Control with Git is a good place to start.
  • Additional key concepts in programming: environment management; Markdown and documentation; logical operators (>=, ==, !=, &&, ||, etc) and control flow (if, else, while, etc); fundamental data structures in your chosen programming language.
  • Testing code: as mentioned in the previous episode, frameworks for automated testing exist for almost every programming language.
    Validation of results and intermediate calculations is essential and formal tests make this much easier. Software Carpentry’s Building Better Research Software lesson provides a good introduction.
Callout

Advanced AI Coding Tools

More “AI-forward” IDEs exist, but we strongly recommend that you spend a bit more time developing your own understanding of programming and AI coding assistants before making extensive use of coding agents. Agents have access to your filesystem and the ability to run programs on your computer, which presents a serious security risk without skilled supervision.

Regardless of where you decide to take things next, it will be essential to reinforce the knowledge and skills that you already have by applying them regularly. If you do not have a project waiting that will allow you to do this already, look for opportunities like the Advent of Code puzzles or ask your chatbot to generate exercises for you.

Keep Learning


We hope that this workshop has inspired you to continue developing your own coding ability. If you want to keep working with a chatbot as you practice and expand your programming skills, follow this advice to make sure that you build your own expertise and retain your agency and ownership of your work.

Follow the steps we took throughout this lesson:

  • Think about what you want to do.
  • Articulate that with a precise and detailed prompt, making sure to include all relevant context.
  • Think about what you expect to happen when you submit the prompt.
  • Critically Review the output you receive, and take the time to check and validate parts that are crucial or that you suspect to be incorrect.
  • Explore further, when there are parts of the output that you do not understand/could not explain.

Remember that, as well as asking a chatbot to do things for us, we can ask it to take on the role of a tutor or examiner:

  • When you encounter something that you do not understand, direct the chatbot to ask questions and provide guiding hints to help you get unstuck, rather than jumping straight to the explanation/solution. To reinforce your understanding and build your ability to think critically about your solutions, you can also prompt the chatbot to ask Socratic questions (“Why do you think that is the case?”, “Is there another way to do this?”, “How would this function behave if one of the input values was negative?”) as follow-ups to your answers. You should bear in mind that AI output can contain errors when taking this approach; it is worth double-checking anything you are uncertain about with an authoritative source.
  • Shortly after you have learned about a new concept, take some time to request and then work through exercises that will test, expand, and reinforce your understanding and ability.
  • Ask for suggestions about what it would be sensible to learn next.

It may be helpful to save a set of instructions to share with the chatbot if you find yourself interacting with it in this way often. This will save you some typing each time you want to prompt the tool a certain way, and allows you to refine your instructions over time. You can take the same approach for any other types of task that you find yourself routinely asking the chatbot to perform.

Human Connections are Essential

One risk of extensive chatbot use is that it isolates us from the other people around us. To guard against this, remember to also ask questions of your colleagues and others whose expertise and judgement you trust. Their advice and insights will be informed by their own individual experience, and they may be aware of less well-known or niche resources specific to your domain that could be particularly helpful.

Key Points

  • The skills you have learned in this workshop are only the beginning.
  • Taking the time to develop our own expertise helps us use AI tools more effectively and responsibly, and helps us to avoid becoming reliant on them.