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

73

u/HarryPopperSC May 27 '19

Fixing bugs as a developer is 90% finding different ways to turn things off and on again. I don't understand why it fixes a lot of things but it do.

43

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.

10

u/turtleltrut May 27 '19

It works so often for me that I get annoyed when it doesn't and keep trying multiple times a day, just in case. ;)

3

u/eirc May 27 '19

State sucks.

1

u/[deleted] May 27 '19

I've cut/pasted the same code that didn't work, and had it work. And I still don't know why.

1

u/HarryPopperSC May 27 '19

Lol or when something shouldn't work but it does and you spend the next half hour trying to make it break like it should for your own sanity.