Unit Testing Group

cancel
Showing results for 
Search instead for 
Did you mean: 

The most ridiculously misleading comment you have seen

So I need you alls help.

 

I am putting together this unit testing class (https://automatedenver.com/unit-testing-seminar/) and I have a slide where I talk about how comments lie but code doesn't, but I don't have a good example.

 

I am looking for a real world example of the most ridiculously misleading comment you have seen. Where the code does one thing but where the comment says it does something completely different.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 1 of 3
(3,339 Views)

Not very ridiculous, but inaccurate anyways.  I may be able to find another for you later in the week.BadComment.png

0 Kudos
Message 2 of 3
(3,320 Views)

I'm really just looking for something that just smacks people in the face that comments can lie.

 

I want to show them some vi with a comment in it that explains what it is "supposed" to do and then show them a simple test and be like "This should pass right" and then run it and have it fail. 

 

I've got a few ideas, I just haven't come up with one that smacks people in the face.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 3 of 3
(3,275 Views)