I feel like most programmers have trained themselves to expect the worst. Pessimism forces you to write robust code. I'm not saying it's the only way to produce robust code, but it definitely helps. I think that's why a lot of HackerNews posts are pessimistic (negative).