Solved Software Engineering Forever
guys i have solved software engineering 2 3⌄ async function TryFnHeal4Ever(fn, args) { 4 try { 5 return fn(...args); 6 } catch (e) { 7 let newFn = await GPT4Heal({ 8 source: fn.toString(), 9 errStack: e.stack.toString(), 10 }); 11 fn = new Function(...newFn.args, newFn.body); 12 return TryFnHeal4Ever(fn, args); 13 } 14 } 15
A dark code editor shows a recursive JavaScript function called TryFnHeal4Ever. If the function throws an error, it sends the source code and error stack to GPT4Heal, replaces the function with a supposedly repaired version, and tries again forever. The joke is that software engineering has been “solved” by endlessly asking AI to fix broken code. EN: A dark code editor shows a recursive JavaScript function called TryFnHeal4Ever. If the function throws an error, it sends the source code and error stack to GPT4Heal, replaces the function with a supposedly repaired version, and tries again forever. The joke is that software engineering has been “solved” by endlessly asking AI to fix broken code.
code editor / редактор кодаJavaScript code / код JavaScriptcomputer screen / экран компьютераfunction / функцияerror handler / обработчик ошибокsource code / исходный кодerror stack / стек ошибкиrecursive call / рекурсивный вызовdark background / тёмный фонsyntax highlighting / подсветка синтаксисаAI repair tool / инструмент ИИ для исправленияline numbers / номера строк
- @gentoomemes / 3758 2023-04-09
- Type
- image
- Size
- 800×577 · 49.4 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added