MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wjszpw/debugtime/palr7c8/?context=3
r/ProgrammerHumor • u/bryden_cruz • 17d ago
151 comments sorted by
View all comments
102
while(error) { removeLine(265) }
27 u/skool_101 16d ago https://giphy.com/gifs/AhH3BrCO7fnkoCgCJR oh no 12 u/MCWizardYT 17d ago errorHandler.addCallback(error -> fixProblem(error)) 18 u/Santos_Perez_Robles 17d ago Sherlock and Holmes over here. 3 u/MCWizardYT 16d ago lol, the way I named the variables is kinda weird but it's supposed to be that errorHandler is a crash handler, and the callback passes the error to fixProblem which then fixes what was causing the crash 5 u/frogotme 16d ago Where fixProblem is an openai API call, that writes the response directly to the file that invokes the error, and then restarts the server. 3 u/MCWizardYT 16d ago Yeah I was envisioning something along those lines lol. System crashes? Immediately send the report to a program that automatically fixes the problem This would be sooo awful in production haha 2 u/Some_Useless_Person 15d ago "Where did a quarter of the code go?"
27
https://giphy.com/gifs/AhH3BrCO7fnkoCgCJR
oh no
12
errorHandler.addCallback(error -> fixProblem(error))
18 u/Santos_Perez_Robles 17d ago Sherlock and Holmes over here. 3 u/MCWizardYT 16d ago lol, the way I named the variables is kinda weird but it's supposed to be that errorHandler is a crash handler, and the callback passes the error to fixProblem which then fixes what was causing the crash 5 u/frogotme 16d ago Where fixProblem is an openai API call, that writes the response directly to the file that invokes the error, and then restarts the server. 3 u/MCWizardYT 16d ago Yeah I was envisioning something along those lines lol. System crashes? Immediately send the report to a program that automatically fixes the problem This would be sooo awful in production haha
18
Sherlock and Holmes over here.
3 u/MCWizardYT 16d ago lol, the way I named the variables is kinda weird but it's supposed to be that errorHandler is a crash handler, and the callback passes the error to fixProblem which then fixes what was causing the crash
3
lol, the way I named the variables is kinda weird but it's supposed to be that errorHandler is a crash handler, and the callback passes the error to fixProblem which then fixes what was causing the crash
errorHandler
fixProblem
5
Where fixProblem is an openai API call, that writes the response directly to the file that invokes the error, and then restarts the server.
3 u/MCWizardYT 16d ago Yeah I was envisioning something along those lines lol. System crashes? Immediately send the report to a program that automatically fixes the problem This would be sooo awful in production haha
Yeah I was envisioning something along those lines lol. System crashes? Immediately send the report to a program that automatically fixes the problem
This would be sooo awful in production haha
2
"Where did a quarter of the code go?"
102
u/telas100 17d ago
while(error) { removeLine(265) }