Live data from Hacker News

When something that was working, suddenly doesn't work when demoing to others

en.wiktionary.org

31–40 of 54 posts

Re: When something that was working, suddenly doesn't work when demoing to others

#31
post #10

Earlier quoted context omitted.

Self-fulfilling prophecy?

I mean attempting to demonstrate something broken, only for it to work properly.

Wouldn't this term still apply? If the goal of your demonstration is to show failure, and then that succeeds, that makes your demonstration a failure.

Re: When something that was working, suddenly doesn't work when demoing to others

#33

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

That could probably be called a Heisenbug[0]: A bug that disappears or alters its behavior when one attempts to probe or isolate it.

Though it depends on the cause - as others in this comment chain said, if it's just that the file isn't actually being updated between tests, but adding a new line forces an update/recompile/etc., I'm not sure what you'd call it.

[0] http://www.catb.org/~esr/jargon/html/H/heisenbug.html

Re: When something that was working, suddenly doesn't work when demoing to others

#34

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

Choose an editor with autosave to fix this one.

Now you have two problems.

Re: When something that was working, suddenly doesn't work when demoing to others

#35

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

DevOps

Re: When something that was working, suddenly doesn't work when demoing to others

#36
A related thing that happens a lot is when the demo is way slower than it was when you were testing it. But at least this one can be explained by screen sharing applications adding latency to your refresh rate. It really is slower when you share your screen!

Re: When something that was working, suddenly doesn't work when demoing to others

#37

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

There's the alternative:

* The program works flawlessly

* Somebody finds a bug on the code that is executed in a test

* The relevant test now fails consistently

Both are probably because you changed something on the environment when you looked at the code.

Re: When something that was working, suddenly doesn't work when demoing to others

#38

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

Once I added a comment and my bug went away. That was when I went home for the day.

Re: When something that was working, suddenly doesn't work when demoing to others

#39
I wrote this prayer to appease the Demo Gods [1]. Though one might pray, the demo can fail.

O Lambda the Ultimate, bless we who are in this demo...

    That our core be functional,
      and our functions be pure.
    That our data be immutable,
      so we may know the value of values.
    That our systems be composable,
      so they may scale with grace.
    That their States only mutate
      in pleasantly surprising ways.
    That the networks and servers stay up.
      Well, at least through this demo.

    For otherwise, nothing lives, nothing evolves.

    In the name of the \alpha and the \beta and the \eta...
      \(\lambda x.x x\) \(\lambda x.x x\) ; eternally
[1] Slide no. 5 here: https://github.com/adityaathalye/slideware/blob/master/n-way...

(edit: formatting)

Re: When something that was working, suddenly doesn't work when demoing to others

#40

What's the word for this: * My code doesn't work and I can't find the bug even after over an hour * I add a few lines of . Now it works! * Now, just for comparison, I remove all the code I just added (or, at least I think I reverted back to previous state). But now it still works. ???

There's the alternative: * The program works flawlessly * Somebody finds a bug on the code that is executed in a test * The relevant test now fails consistently Both are probably because you changed something on the environment when you looked at the code.

Another common cause is that the code you were looking at wasn't actually the code you were running. Between "I added this line and then I removed this same line, and now it works", the executable might have been recompiled.
Post reply on HN