3 ms·
Agree with everyone else and you want to go easy on people but then you get code like this: public class C { int x; public C(int x) {
by doctor_eval 4y ago
Agree with everyone else and you want to go easy on people but then you get code like this:
public class C {
int x;
public C(int x) {
int x;
this.x = x;
}
}
and you waste an hour trying to work out why C(5) is not working as expected because god knows who would do that? (summarised from a real life example)
- arethuza 4y agoI something similar where a colleague (a long time ago) realised that someone had overload string assignment in the C++ code he was debugging to do something "special" depending on the value of the string.
- doctor_eval 4y agoAn old boss of mine used to say, "Sometimes I shake my head and wonder. And sometimes, I just shake my head."