Here’s another reason why to learn code first. AI Code assistants are learning snarky, “read the manual” comments from Substack. I’m sharing this with my students.
On Mar 18, 2025, at 5:42 AM, Toby Hodges via discuss <discuss@lists.carpentries.org> wrote:
Thanks everyone for your feedback so far. Note that the original pull request was merged quickly*, but has since been reverted and a duplicate PR opened to allow more time for discussion. Regarding Paul's question about why I recommended that learners do not use genAI while learning to code, Simon’s response closely echoes my own thoughts.
Please keep the comments coming, either here or on GitHub. I hope to get the changes merged next week.
Cheers,
Toby
* This was my fault: I put a lot of thought into the general communications I was going to send about these changes but forgot to also tell the lesson Maintainers what I had planned 🤦♂️ On 17. Mar 2025, at 11:22, Ken Lacey via discuss <discuss@lists.carpentries.org> wrote:
![like]() | Ken Lacey reacted to your message: |
|
|
I think the reasoning behind the “don’t use AI when you’re learning” comment is that there is a risk that people simply use code that they are given without thinking about it, and therefore don’t build a mental model of what is going on, don’t learn, and hence are unable to spot mistakes by the AI or build more advanced things. In a sense, I think it’s best to think of AI coding assistance as a more advanced version of “look it up on StackOverflow”. We have all come across plenty of people who have done all their coding by copy-pasting snippets from StackOverflow without fully understanding them – as well as people who have laid the groundwork by learning what they are doing first, and *then* looked things up to much better effect. I think this is especially important for a first language – when one is learning programming as well as a particular syntax. That’s my 2p; clearly “don’t use AI” is not enforceable and won’t be adhered to by many, but it’s important that we explain the reason that that advice is given (and maybe consider moderating it to “limit use of AI” or similar) so that hopefully most learners will bear it in mind. -- Assistant Professor of Energy Technologies, Heriot-Watt University Programme lead for MSc Renewable & Sustainable Energy Transition **************************************************************** Caution: This email originated from a sender outside Heriot-Watt University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content. **************************************************************** |
Thank you Toby and all for the discussion it is an important one, at many levels I have always detested coding, comparing it to unnecessary bricklaying vs me being interested in information architectures When AI generated code became available I felt relief, the finally humanity has found a way of avoiding coding by hand My question is: is the AI generated code as good as, better or worse than humanly written code? Having the code written up already means learners must learn how to implement it and run it correctly can it be used to learn/teach about coding more productively - ie engaging learners to Implement debug, test, maniupate, evaluate the ai generated output and how to correct it and improve it, rather than putting their effort into writing AI generated code could allow learners to move straight into the next level of coding, that is implementation Thorough understanding of how the syntax and logic of the program should still be required, but the human intelligence so rare and precious can be spared the tedious task of actually writing it I'm following this ongoing discussion with interest. Great to see this being added to Carpentries material. We recommend that you avoid getting help from generative AI while you learn to code
I was a bit surprised by this negative conclusion. My feeling would be that it isn't reasonable to expect people not to use these tools while learning, and therefore they need to know how to use them safely. And they do seem quite good at explaining code or suggesting different approaches. Here's a slide I used in a recent workshop, although I'm far from 100% happy with it.
Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes: - Heriot-Watt University, a Scottish charity registered under number SC000278
- Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system. This email originated from TU Dublin. If you received this email in error, please delete it from your system. Please note that if you are not the named addressee, disclosing, copying, distributing or taking any action based on the contents of this email or attachments is prohibited.
Is ó OT Baile Átha Cliath a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa ríomhphost nó sna hiatáin seo. Is carthanas cláraithe í OT Baile Átha Cliath TU Dublin is a registered charity RCN 20204754
--
Dr Toby Hodges (he/him) Director of Curriculum The Carpentries | https://carpentries.org
Schedule a meeting with me: https://calendly.com/tobyhodges
|