ɬÀï·¬

Essay

Debugging my code and teaching with ChatGPT

William T. Mills
By William T. Mills
Oct. 16, 2025

As both a scientist and teacher, artificial intelligence, or AI, has reshaped how I work. Large language models, or LLMs, such as ChatGPT have streamlined time-consuming tasks and, more importantly, made me a more effective researcher and educator. By spending less time debugging code or drafting practice problems by hand, I have more bandwidth to pursue new research questions and design active learning exercises for my students.

As a computational biologist, I use ChatGPT to write and debug bioinformatics pipelines and translate scripts between programming languages and operating systems.

Tasks that once consumed hours, like tracking down an error caused by a stray character, can now be solved in seconds with a prompt: “What is causing the following error in this script?” 

Once, after nearly an hour of fruitless searching, ChatGPT spotted the culprit immediately: an invisible character. Even better, it explained the fix, all within seconds.

Mount St. Mary's University
Assistant professor William Mills works with undergraduate students, Oluwaseyi Femi–Falodun, Madison Garcia and Nancy Moluh, in his research group at Mount St. Mary's University this past spring to analyze publicly available sequencing data that may provide insights about how microRNAs regulate cell biology and disease.

As an instructor, I use ChatGPT to plan course schedules around holidays, generate problem sets and create practice exams. Just as important, I teach students how to use it for self-directed learning.

For example, I show them how to ask: “Can you give me 10 practice problems about transcription and translation?” or “Why is answer choice A incorrect in this question?”

In a bioinformatics course I taught, more than half of the students said ChatGPT had been one of the most helpful tools for their learning.

Still, I remind my students — and myself — that it is a tool, not a replacement, for learning.

Instead of asking ChatGPT to write code, I encourage them to use it to . Instead of demanding an answer, they can ask it to explain the reasoning behind correct and incorrect choices.

When I was in graduate school, tools like ChatGPT didn’t exist. I taught myself to code through long hours of trial and error. I spent many late nights alone in my thesis lab, staring at endless lines of an incomprehensible code and wondering if I would ever graduate. That struggle, though slow and frustrating, gave me the foundation I still rely on today.

Because I learned coding from the ground up, I can now spot errors in AI-generated code and write precise prompts to improve it.

But the rapid rise of AI, and its near-universal adoption, has also created risks. Studies link LLMs to in memory, attention, academic performance and even .

As educators and learners, we must use these tools wisely: not as shortcuts, but as scaffolds that support true understanding. Without that guidance, I fear students will be tempted by shortcuts that rob them of the personal growth that only comes from the hard process of learning.

I call on all educators to guide students into this new era of learning by showing both the remarkable capabilities and the clear limitations of this technology.

Enjoy reading ASBMB Today?

Become a member to receive the print edition four times a year and the digital edition monthly.

Learn more
William T. Mills
William T. Mills

William T Mills IV is an assistant professor of biology in the School of Science, Mathematics & Technology at Mount St. Mary’s University in Emmitsburg, Maryland.

Related articles

How undergrad research catalyzes scientific careers
Antonio Rivera, Julissa Cruz Bautista & Teresita Padilla–Benavides
Meet the 2025 SOC grant awardees
Emmett Smith & Sudheesh Allikka Parambil

Get the latest from ASBMB Today

Enter your email address, and we’ll send you a weekly email with recent articles, interviews and more.

Latest in Opinions

Opinions highlights or most popular articles

AI in the lab: The power of smarter questions
Essay

AI in the lab: The power of smarter questions

Oct. 14, 2025

An assistant professor discusses AI's evolution from a buzzword to a trusted research partner. It helps streamline reviews, troubleshoot code, save time and spark ideas, but its success relies on combining AI with expertise and critical thinking.

How AlphaFold transformed my classroom into a research lab
Essay

How AlphaFold transformed my classroom into a research lab

Oct. 10, 2025

A high school science teacher reflects on how AI-integrated technologies help her students ponder realistic research questions with hands-on learning.

Writing with AI turns chaos into clarity
Essay

Writing with AI turns chaos into clarity

Oct. 2, 2025

Associate professor shares how generative AI, used as a creative whiteboard, helps scientists refine ideas, structure complexity and sharpen clarity — transforming the messy process of discovery into compelling science writing.

Teaching AI to listen
Essay

Teaching AI to listen

Sept. 18, 2025

A computational medicine graduate student reflects on building natural language processing tools that extract meaning from messy clinical notes — transforming how we identify genetic risk while redefining what it means to listen in science.

What’s in a diagnosis?
Essay

What’s in a diagnosis?

Sept. 4, 2025

When Jessica Foglio’s son Ben was first diagnosed with cerebral palsy, the label didn’t feel right. Whole exome sequencing revealed a rare disorder called Salla disease. Now Jessica is building community and driving research for answers.

How undergrad research catalyzes scientific careers
Essay

How undergrad research catalyzes scientific careers

Aug. 27, 2025

Undergraduate research doesn’t just teach lab skills, it transforms scientists. For Antonio Rivera and Julissa Cruz–Bautista, joining a lab became a turning point, fostering critical thinking, persistence and research identity.