Git Product home page Git Product logo

worst-java-ever's Introduction

Worst Java - ever

Overview

We all know what good code looks like.
Here's your chance to use that knowledge for evil and write your worst Java ever.

Instructions

  1. Fork this repo, and create a branch for yourself.
  2. Pick a class, and complete the skeleton method so that the tests still pass, but try and make the implementation as horrific to understand at as possible.
  3. Create a PR for visibility so we can all see your submission

Some ideas to get you started

  • Use incorrectly named variables/methods/classes
  • Make the formatting as horrible as possible
  • Break all conventions
  • Use Threads, Futures
  • Make it overly complicated - add lots of extra classes and methods
  • Use lots of casts/conversions
  • Perform unnecessary calculations
  • Use arrays to be more opaque
  • Don't limit yourself to ASCII - use UTF-8, emojis, etc
  • Abuse generics
  • Add misleading comments
  • Use Exceptions to move data around/as part of the execution flow
  • Go all "enterprise" on it
  • Splash the lambdas and functional programming everywhere
  • Use reflection to bend the rules

Basically, make it look as horrible as possible.
Do everything you shouldn't.
Even better if anyone reading the code can't even work out what it does

No points/prizes - just the admiration/disgust of your fellow developers.

Notes

No additional libraries allowed - standard Java should provide more than enough scope
The tests should be correct, but let me know if they're not

worst-java-ever's People

Contributors

caluml avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.