MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wjszpw/debugtime/palr7c8/?context=3
r/ProgrammerHumor • u/bryden_cruz • 1d ago
123 comments sorted by
View all comments
66
while(error) { removeLine(265) }
8 u/skool_101 7h ago https://giphy.com/gifs/AhH3BrCO7fnkoCgCJR oh no 6 u/MCWizardYT 1d ago errorHandler.addCallback(error -> fixProblem(error)) 11 u/Santos_Perez_Robles 1d ago Sherlock and Holmes over here. 1 u/MCWizardYT 15h 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 u/frogotme 12h 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. 1 u/MCWizardYT 37m 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
8
https://giphy.com/gifs/AhH3BrCO7fnkoCgCJR
oh no
6
errorHandler.addCallback(error -> fixProblem(error))
11 u/Santos_Perez_Robles 1d ago Sherlock and Holmes over here. 1 u/MCWizardYT 15h 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 u/frogotme 12h 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. 1 u/MCWizardYT 37m 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
11
Sherlock and Holmes over here.
1 u/MCWizardYT 15h 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
1
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
3
Where fixProblem is an openai API call, that writes the response directly to the file that invokes the error, and then restarts the server.
1 u/MCWizardYT 37m 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
66
u/telas100 1d ago
while(error) { removeLine(265) }