06-25-2013 09:32 AM
Placeholder for future code that doesn't break existing code? Old code that got removed but not completely?
No harm done by this, the compiler should remove it
06-25-2013 09:38 AM
I think it's more likely to be something that was left behind.
There is no harm done by this. That's a rube, though.
Regards
06-28-2013 09:15 AM
Sadly, I participated in a code review and the person gave this subvi. I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
"I won't be wronged. I won't be insulted. I won't be laid a-hand on. I don't do these things to other people, and I require the same from them." John Bernard Books
06-28-2013 09:42 AM
@bsvare wrote:
Sadly, I participated in a code review and the person gave this subvi. I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
Wow. Stunning. This particular developer would probably need 4 weeks to complete a CLD test.
06-28-2013 09:44 AM
aka: Block Diagram Encryption
06-28-2013 10:03 AM
@bsvare wrote:
Sadly, I participated in a code review and the person gave this subvi. I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
Code review ettiquite: That is "Richly Obfuscated Code" if the developer has input to your performance evaluations.
06-28-2013 10:33 AM
@JÞB wrote:
@bsvare wrote:
Sadly, I participated in a code review and the person gave this subvi. I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
Code review ettiquite: That is "Richly Obfuscated Code" if the developer has input to your performance evaluations.
I'm lucky enough to have a boss that wants to improve. I tell him a short way to do something and he likes it.
06-28-2013 11:06 AM
@bsvare wrote:
I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
Well, to be fair, your code is not equivalent, because it omits the error handling. 😮
06-28-2013 12:15 PM
@altenbach wrote:
@bsvare wrote:
I tried convincing him to replace with withat's below the structure, but he said "It works, I'm not changing it"
Well, to be fair, your code is not equivalent, because it omits the error handling. 😮
Nor does it remove all whitespace characters missed that the first time myself
06-28-2013 12:23 PM
@JÞB wrote:
@altenbach wrote:
Well, to be fair, your code is not equivalent, because it omits the error handling. 😮
Nor does it remove all whitespace characters
missed that the first time myself
That will probably become a big bug for someone to discover in the future. "Why can't I insert a 32, it keeps chaning to 0!" (unless that is intended...)