And that's where the bugs end of being.
People suck at writing code so it needs to be reviewed by peers and thoroughly tested. If you said that in an interview for code you'd written then I'd point to the door.
And that's where the bugs end of being.
People suck at writing code so it needs to be reviewed by peers and thoroughly tested. If you said that in an interview for code you'd written then I'd point to the door.
class Foo{
public Foo(initialValue) {
this.value = initialValue
}
public setValue(value) {
this.value = value
}
public getValue() {
return this.value;
}
}
What's the point, what are you testing? That the language's most basic operations still work?``` public setValue(value) { this.value = value + 5 } ```
then your tests will start to fail.
Treat tests as a contract.
Of course it's also a balancing act - should you immediately write test for this? I try to.
> If you said that in an interview for code you'd written then I'd point to the door.
That's an extremely arrogant thing to say. Any experienced dev will understand my point, so...
> If you said that in an interview for code you'd written then I'd point to the door.
And they would be better off not having to work at a place with an intolerable environment of the kind.