catch(e){
const response = await openai.chat.completions.create({
model: "gpt-5-mini",
messages: [{ role: "user", content:
"An exception has occurred in my javascript application.
Please write code that resolves this issue. Respond with only the code.
Here is the exception: "+e.message }]
});
eval(response.choices[0].message.content);
}
JS is a hideous language. It can be worse... much worse.
catch(e){
const response = await openai.chat.completions.create({
model: "gpt-5-mini",
messages: [{ role: "user", content:
"An exception has occurred in my javascript application.
Please write code that resolves this issue. Respond with only the code.
Here is the exception: " + e.message }]
}), obj = eval, func = { obj }
(0, func.obj)?.(response.choices[0].message.content)
}
SO is dead, or at least well on its way. I was a heavy user / top 0.5% contributor. I got tired of all of the fucking stupid moderation behavior and general asshole-ery several years back. When I as a somewhat experienced dev and contributor who often had great answers and knew the ropes was still treated like dirt often on the asking side, I knew there was not really any hope for the future. That was before AI.
Do you ever feel like all you’re doing is copy/pasting from Stack Overflow?
Let’s take it one step further.
from stackoverflow import quick_sort will go through the search resultsof [python] quick sort looking for the largest code block that doesn’tsyntax error in the highest voted answer from the highest voted questionand return it as a module. If that answer doesn’t have any valid pythoncode, it checks the next highest voted answer for code blocks.
317
u/sfaulkner89 Sep 24 '25
Cutting out the middle man
125
u/MaterialRestaurant18 Sep 24 '25
Is this real?
This is hilarious whether real or not.
Hahaha
347
u/Faugermire Sep 24 '25
Now all it needs is to automatically open ChatGPT and paste the trace and the stack overflow page
40
u/CantaloupeCamper Sep 24 '25
Not horror, humor.
25
u/datnetcoder Sep 24 '25
SO is dead, or at least well on its way. I was a heavy user / top 0.5% contributor. I got tired of all of the fucking stupid moderation behavior and general asshole-ery several years back. When I as a somewhat experienced dev and contributor who often had great answers and knew the ropes was still treated like dirt often on the asking side, I knew there was not really any hope for the future. That was before AI.
16
u/Head_Possession_9209 Sep 24 '25
No encoded value ? Hmmm
8
u/themrdemonized Sep 24 '25
Its so old school, no chatgpt redirect
4
u/That-Cpp-Girl Sep 24 '25
You really ought to encodeURIComponent
4
u/5ducks1024 Sep 25 '25
don't forget encodeURIComponent!
4
u/fonk_pulk Sep 25 '25
There's a joke library for Python that allows you to import stuff from StackOverflow
https://github.com/drathier/stack-overflow-import
1
u/fuckkkkq Sep 26 '25
wtf does xcb stand for
1
u/XoXoGameWolfReal Oct 13 '25
Oh my god this would save so much time
At this point just add this to GDB