On 11/21/11 4:39 AM, Brixomatic wrote:
On 20 Nov., 17:23, Lew<lewbl...@gmail.com> wrote:
A 'NullPointerException', like other runtime exception, evidences a
programming error.
You just spoke up in favor of deliberately programming bugs into the
code.. Stupid, stupid
idea. Please do not work on any project I care about.
Reality is that I dislike to deliberately introduce a bug to my code,
but that sometimes people get forced to do so. That said: A bug is a
bug, whether it's an NPE or another kind of failure in the program.
NPEs are often easier to track down, that's why I favor them. Alas it
is not always my decision.
It is often easier to beg forgiveness than beg permission. "It wasn't my
decision to code this bug" is a cop-out. Yes, in the past I've had to
code things differently than I thought best. I was very junior. Once I
got over that and started doing things *my* way (disobeying direct
orders), I began to rise in the ranks.
Note, I did things my way, not because I didn't understand why they
wanted it the other way, but because I understood the consequences of
both approaches.
I will not recommend that strategy as a career move.
they think they know better will be kicked out immediately.