Skip to content

Instantly share code, notes, and snippets.

@gionn
Last active February 2, 2018 15:01
Show Gist options
  • Save gionn/f14ee7beaaa5da73b35d to your computer and use it in GitHub Desktop.
Save gionn/f14ee7beaaa5da73b35d to your computer and use it in GitHub Desktop.
Nice java code comments
{} // this is intentionally left blank
// Coming soon : backup plan
// However this is not a definitive solution
// This is an atrocity
// Questions overflow! Die Gosling!
return null; // How nice - we always return null!
// I do this ugly workaround in the most elegant way
// Welcome to the texas reflection massacre!
// Say hi to the fucking goddamned type erasure
// idiotic syntax
return true; // or false?
@SuppressWarnings ( "unchecked" ) // @SuppressBestemmieToo
// Hibernate paranoia
return new Date( 0 ); // Back to the begin of time!
// Do not uncomment and do not delete, in memory of posterity
options.set(HEARTBEAT_INTERVAL, 30); // THESE ARE SECONDS!
options.set(CONNECTION_TIMEOUT_MILLIS, 30 * 1000); // 30 seconds to mars
catch ( Throwable ex ) // God is a pig
// Welcome to the magic world of a NoSQL database!
log.error( "WTF?", exception );
// This is a base class for the State Design Pattern
// Go learn yourself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment