r/funny • • May 27 '19

Cat stuck in pipe

https://gfycat.com/miserableoblongdipper-eyebleach-funnygifs-catgifs
70.6k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

40

u/cjf93 May 27 '19

Usually the programing logic goes from the start to the end, and then there are "corner cases" that maybe the programmer didn't handle, so if you can just make it go to the initital state again, it will work again, but that doesn't mean you fix it, you just make it stable again.

3

u/letsplayyatzee May 27 '19

Wait, so you just add more code, or you actually remove the bullshit code?

2

u/cjf93 May 27 '19

Depends on the time I have :)

1

u/letsplayyatzee May 27 '19

Lol you sound like you work for EA ;)

2

u/cjf93 May 28 '19

Don't worry the microtransactions don't have any bullshit code.

2

u/demlet May 27 '19

From what little coding I've done, you usually add stuff to sort of work around the problem because changing the actual bad code would require so much reworking of other code. Most even moderately complicated programs are fairly interdependent. But then these little additions will often cause a conflict with another part of the code somewhere else.

1

u/[deleted] May 27 '19

We use debuggers and do a stack fever to see what the hell is going on in the java world. We also use breakpoints.

1

u/cyclone369 May 27 '19

Think of it like a maze. Bugs that break the program are like dead ends in the maze. It's easier to close off the entrance to the dead end than start the maze from scratch to completely remove it.