Useless/Funny Code Comments

:wink:

There is a message, albeit a rather boring one.

1 Like

12345678?

1 Like

Nope, it’s in English.

Yeah seriously 3/10 on hidden message. Massive missed opportunity.

3 Likes

Translation = like this

6 Likes

I once had a programmer who had a crush on the girl who did most of the notebook entries. He would leave Shakespearian sonnets commented into parts of the code that he knew she would probably read when working on the notebook

20 Likes

image

this is in a comment about the INVALID option in an enum of vex motor cartridges

3 Likes

“//This turn might have an inconsistent angle but don’t let it fool you. This turn is very consistent in draining your soul”

Found this in my programming notes from a week ago

9 Likes

Most of mine are basically
//y u no work
And one time, I put 100 digits of pi into comments.
Edit: To be fair, I was bored.

5 Likes

Oh I just remembered this: I found out that you can use a string with - and . can control how the controller vibrates. Anyway, when driver starts, the controller says so in Morse code. Very useful, I would recommend it. It really has had an extreme impact on our competition performance.

5 Likes

Year: 2033
Vex season: Sunken Treasure
Competition: VAIC++

Robots are allowed to evolve their own neural networks and optimize their own communication protocols.

When judges decided to look at the source code of the robot skill champions, this what they found:

24" robot:

void main()
{
   while(1)
   {
      VexLink.send("Stop! That's not safe!");
      vex::task::sleep(math.random());
   }
}

15" robot:

void main()
{
   while(1)
   {
      VexLink.receive(nothing);
      VexLink.send("Ok, boomer");
      drivetrain.setPower(100,pct);
      drivetrain.setHeading(math.random());
      // Golden Statues of Karthik, here we come
   }
}
22 Likes

Look at the bottom
the funny thing is that it worked when I didn’t upload through the controller :slight_smile:

3 Likes

by the way this is odometry

started as this…
image
and evolved into this
image

5 Likes

Oh yeah we had this a couple of years back, I completely forgot.