01-07-2020 05:37 PM
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.
01-07-2020 06:11 PM
Not very ridiculous, but inaccurate anyways. I may be able to find another for you later in the week.
01-08-2020 08:29 AM
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.