Gold in code

Initial commit

$ git commit -m "Initial commit. Shree Ganeshaye Namah! 🕉"

Optimist

catch(Exception e) {
  // My code doesn't throw exception
}

Honesty

// drunk, fix later!

Honesty

// I am not sure if we need this
// But, too scared to delete it

Honesty

// When I wrote this, only God and I understood what I was doing
// Now, God only knows

Honesty

// I dedicate all this code, all my work, to my mom and dad,
// who will have to support me and my girlfriend
// once it gets released into the public.

Apologize

// Dear future me. Please forgive me.
// I can't even begin to express how sorry I am.

Mockery

// dev1 [1/1/2017]: Added a temporary fix
// dev2 [6/8/2017]: Temporary my ass!

Don't mess with my code

 

// This is an auto-generated code.
// Please do not modify after this point.
// It will be automatically reverted.

Puns and word play

if (/*you*/ $_GET['action']) { // celebrate

Puns and word play

// sometimes I believe compiler ignores all my comments

Puns and word play

// If this comment is removed the program will blow up

Puns and word play

// Replaces with spaces the braces in cases where braces in place cause stasis
$str = str_replace(array("{", "}"), " ", $str);

Trust no one

// Always returns true.

public boolean isAvailable() {
   return false;
}

Job Security

$ npm install a-deprecated-library

Frustrated commits

$ git commit -m "Typescript is still a bitch!"

Frustrated commits

$ git commit -m "Last commit of the day. Wife waiting."

Said no one ever

$ git commit -m "This is the last commit of the project."
$ git commit -m "All bugs resolved!"

deck

By sanketgeekyants

deck

  • 325