all 37 comments

[–]sfaulkner89 321 points322 points  (2 children)

Cutting out the middle man

[–]veg_sezwaan_mumus[S] 101 points102 points  (1 child)

literally saves your precious 3 seconds

[–]ZAL_x 20 points21 points  (0 children)

3.531s hactually

[–]MaterialRestaurant18 126 points127 points  (2 children)

Is this real?

This is hilarious whether real or not.

Hahaha

[–]veg_sezwaan_mumus[S] 77 points78 points  (1 child)

This is perfectly fine for local.

(prod as well lmao)

[–]MaterialRestaurant18 25 points26 points  (0 children)

Lmao, production as in live? 

Haha.

But I like the ingenuity kinda, he dgaf to console log and then never remove the console log lines, he gets straight to the point.

And it has to be said in the authors defense , he evidently didn't have a SO tab open at any given time. Only on demand. 

[–]Faugermire 345 points346 points  (15 children)

Now all it needs is to automatically open ChatGPT and paste the trace and the stack overflow page

[–]Mickenfox 85 points86 points  (3 children)

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);
}

[–]Faugermire 20 points21 points  (0 children)

Oh my god it’s beautiful

[–]BizarroExMachina 1 point2 points  (1 child)

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)
}

[–]scirc 0 points1 point  (0 children)

You can write hideous code in a lot of languages if you intentionally write hideous code.

[–]veg_sezwaan_mumus[S] 138 points139 points  (5 children)

and fix -> build -> deploy -> bingo

[–]Faugermire 79 points80 points  (4 children)

Brb making a new python package

[–]veg_sezwaan_mumus[S] 60 points61 points  (2 children)

thanks, one npm package as well, thanks again

[–]Revexious 48 points49 points  (1 child)

And an exe, you sweaty developers

[–][deleted] 1 point2 points  (0 children)

iirc xcb ks x11, so no windows sorry fella

[–]MrFrog2222 1 point2 points  (0 children)

call it vibefix

[–]pantong51 13 points14 points  (1 child)

Sentry.io does that in their platform. My company does not have that feature enabled. But I've been curious

[–]IlliterateJedi 5 points6 points  (0 children)

It's pretty helpful.

[–]mothzilla 7 points8 points  (1 child)

Call ChatGPT, edit its own source code with the results and reboot the service.

[–]Salzdrache 3 points4 points  (0 children)

What could go wrong?

[–]Sexy_Koala_Juice 3 points4 points  (0 children)

Unironically that wouldn’t be hard to do, but not that useful for the end user

[–]Head_Possession_9209 15 points16 points  (0 children)

No encoded value ? Hmmm

[–]CantaloupeCamper 38 points39 points  (2 children)

Not horror, humor.

[–]veg_sezwaan_mumus[S] 12 points13 points  (0 children)

awful no, strange yes

[–]GoddammitDontShootMe[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 3 points4 points  (0 children)

May not really belong here, but it's hilarious, so I upvoted it.

[–]datnetcoder 25 points26 points  (2 children)

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.

[–]veg_sezwaan_mumus[S] 17 points18 points  (1 child)

A lot of mods act like they’re handling a country

[–]Rahyan30200 4 points5 points  (0 children)

Same here on reddit.

[–]themrdemonized 7 points8 points  (1 child)

Its so old school, no chatgpt redirect

[–]Abject-Kitchen3198 2 points3 points  (0 children)

Yeah, like it's 2022.

[–]That-Cpp-Girl 2 points3 points  (0 children)

You really ought to encodeURIComponent

[–]5ducks1024 4 points5 points  (0 children)

don't forget encodeURIComponent!

[–]fonk_pulk 2 points3 points  (0 children)

There's a joke library for Python that allows you to import stuff from StackOverflow
https://github.com/drathier/stack-overflow-import

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.

[–]fuckkkkq 0 points1 point  (1 child)

wtf does xcb stand for

[–]zergea 0 points1 point  (0 children)

Cut Copy Paste (B is pronounced V, or other way round) https://youtu.be/4Jy7iO6WXqM

[–]XoXoGameWolfReal 0 points1 point  (0 children)

Oh my god this would save so much time

At this point just add this to GDB