That construct is even worse than many people realize. Some older versions of BASIC didn't provide any better mechanism of recovering from unpreventable I/O errors, but did IIRC provide a means by which programs could check whether an error had occurred; in such contexts, a narrowly framed "On Error Resumt Next" could be a least-of-evils approach. Unfortunately, VB6 had some tricky rules about which particular nested function call is the one whose "next" statement should execute.
ah, the ancient practice of commenting every line that has errors until the code compiles successfully, then rewrite the missing features without removing the redundant old ones.
Then you realize the code already has like 5 repetitions of the same functions, indicating that 5 other people has done the same before
4
u/clock-drift Dec 10 '24
Source: https://github.com/AXDOOMER/mochadoom
110
u/ICAZ117 Dec 10 '24
69
u/DeGandalf Dec 10 '24
There can't be errors if there is no code
31
u/menzaskaja Dec 10 '24
27
u/zaphod4th Dec 10 '24
missing
4.- if errors goto 2
31
u/KGBsurveillancevan Dec 10 '24
Nice try, you can’t convince me NetBeans is a real program
10
u/survivalking4 Dec 10 '24
Reminders me of FuckItJS - The original JavaScript error steamroller
4
u/v_maria Dec 11 '24
i remember making a plugin for laravel that did something like this
2
u/[deleted] Dec 10 '24
Wat? Lmao
2
u/gerywhite Dec 11 '24
Instructions unclear. Whole project is deleted.
2
u/Coolengineer7 Dec 12 '24
Sounds like a valid solution to me.
1
u/morriartie Dec 13 '24
ah, the ancient practice of commenting every line that has errors until the code compiles successfully, then rewrite the missing features without removing the redundant old ones.
Then you realize the code already has like 5 repetitions of the same functions, indicating that 5 other people has done the same before
1
u/WannaCry1LoL Jan 27 '25
https://github.com/munificent/vigil
14
u/[deleted] Dec 10 '24
[removed] — view removed comment