@blakeyrat said:
Sure, *you* know how to use it properly, but what happens when *you* leave the company?
No longer my problem, it's the company's fault for hiring such retarded developers and now they can deal with the problems they created by hiring that guy who has "15 years of experience in C#". Writing sane code isn't such a hard concept to grasp. If you can't read it back 5 seconds after you wrote it and know exactly what it does, it's not sane.
// This is sane.
std::cout << "Good morning " << ((gender == Male) ? "Sir" : "Ma'am") << std::endl;
// This is not sane.
nresetDN =
(divSel==3'b000)?((div2N[9:0]==10'h000)?1'b0:1'b1):(divSel==3'b001)?((div2N[10:0]==11'h000)?1'b0:1'b1):(divSel==3'b010)?((div2N[11:0]==12'h000)?1'b0:1'b1):(divSel==3'b011)?((div2N[13:0]==14'h0000)?1'b0:1'b1):(divSel==3'b100)?((div2N[14:0]==15'h0000)?1'b0:1'b1):(divSel==3'b101
)?((div2N[15:0]==16'h0000)?1'b0:1'b1):(divSel==3'b110
)?((div2N[19:0]==20'h00000)?1'b0:1'b1):1'b0;
The stupidity of other people is not an excuse to avoid using your own intelligence.