VOOZH about

URL: https://thenewstack.io/how-open-ai-ruined-my-homework-assignment/

⇱ How OpenAI Ruined My Homework Assignment but Helps Coders - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-12-08 09:22:53
How OpenAI Ruined My Homework Assignment but Helps Coders
Software Development

How OpenAI Ruined My Homework Assignment but Helps Coders

OpenAI released ChatGPT this week to much fanfare. We explore the fun developer-focused tools the AI company offers in its playground.
Dec 8th, 2022 9:22am by Loraine Lawson
👁 Featued image for: How OpenAI Ruined My Homework Assignment but Helps Coders

OpenAI has ruined my favorite assignment from when I was (briefly) a high school English teacher: Come up with a two-sentence horror story. All you really need to do the assignment is a topic and an idea of what’s frightening. It seems so… human and creative, and yet, OpenAI does it better than most of my high school students ever did.

What does OpenAI, which launched ChatGPT to much fanfare last week, offer developers? I fell down a rabbit hole exploring the private artificial intelligence company’s playground options. And while they may have ruined my 2018 teaching curriculum for Halloween — as well as any essay plans I may have had — they actually offer some interesting solutions that might help developers do their job; assuming you verify the results first, since currently, it has a propensity for generating errors.

Translating

There are several translation functions, including (of course) one for human languages. But for coders, one useful translation function is this playground, which takes a complicated piece of code and explains what it does in English. Just put the code in and it will create a nice summary for your comments. This is free and relies on Codex models currently in beta. On a related note, it will also translate from one programming language to another, so developers can use the comments to specify the source and target languages.

👁 Python to Javascript

Image via OpenAI playground screenshot

In that same vein, you can play with:

Fixing

One of the more intriguing uses of AI is its ability to fix problems. Granted, the newly released OpenAI chatbot ChatGPT made headlines mostly for its mistakes — including describing absolute monarchy supporter Thomas Hobbes as a federalist — but it’s learning. Or at least OpenAI wants developers to help it learn — they’re running a feedback contest through Dec. 31, 2022.

Other “fixing stuff” offerings are its Python bug fixer and the ability to parse unstructured data into tables from the long-form text, which it does by allowing the developer to specify a structure and supply some examples.

Creating

When it comes to creation, we’d like to think we can one-up artificial intelligence. And we can … for now. But several OpenAI projects are actually aimed at creating code out of natural language.

One feat that attracted quite a lot of media attention this week was the ChatGPT’s ability to mimic a linux virtual machine. There’s also a playground model that will create code to call the OpenAI API using natural language instructions. It’s in beta for now.

This playground will calculate the time complexity of a function. Another model creates simple SQL queries. It demos the creation of a SQL request to find all users who live in California and have over 1000 credits, but it functions like the other playground in that you can substitute your own SQL requests to build a function.

For those who need to implement the payment functionalities of Stripe, there’s a model that creates the code to call the Stripe API using natural language.

Finally, there’s a code generation model that will create a Python docstring for a given Python function. “We specify the Python version, paste in the code, and then ask within a comment for a docstring, and give a characteristic beginning of a docstring (“””),” the playground explains.

Learning

For my money, artificial intelligence is at its best when it helps humans. OpenAI currently has a few models designed to help programmers learn how to do better, including a JavaScript helper chatbot that can answer questions about using JavaScript. It uses a few examples to get the conversation started.

And in a meta offering, OpenAI also includes in its examples a machine language/AI language model tutor. Basically, it’s a chatbot that answers questions about language models.

Weird

If those use cases and examples aren’t intriguing enough to lure you in, then there’s a category of models I’m just calling “weird.” For instance, one model converts movie titles into emoji. You can see what that looks like in the accompany image — I added The Good, The Bad, The Ugly.

👁 model converts movie titles into emoji

Image via screenshot of OpenAI playground

And if all of this fails to amuse you, there’s always Marv the sarcastic chatbot. It probably wasn’t modeled on Marvin the Paranoid Android from The Hitchhiker’s Guide to the Galaxy, but it does a darn good impression.

👁 ChatbotMarv sample

Image via OpenAI playground screenshot

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: OpenAI.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.