83

Guy: *hands me sheet of paper* What does this code do?
Me: *looks through code written on the paper* Well, most likely segfault.

*awkward silence*

Comments
  • 7
    Did he know what segfault means?
  • 19
    @homo-lorens Yeah he did :)

    I think he was more irritated by my response than by the flaws in the code. They hired me directly off university and I later learned they had pretty low expectations on my software development skills. So they prepared only a basic example for me, which - not to sound too arrogant - was a joke.
  • 0
    @r20408e122449d Index could be inputed by the user, so it would most likely segfault but not always.
  • 1
    @r20408e122449d About randomness, I didn't understand your first comment like this but it does make sense.

    About redundancy, it was on purpose to emphasize the fact that segfault wasn't definitely going to happen. Kinda like "I saw it with my own eyes". But you seem to love splitting hair.
Add Comment