Skip to main content

Mishaps

Some random things you can force your driver to do.

d43What happens
1You start to appreciate for loops, use one as soon as possible
2English is not a real language, spend the next 5 minutes writing in any language but english
3Roll a d20, use the resulting magic number somewhere in your code
4Did someone say cache? Quick! Cache something!
5AI is the future, let ChatGPT implement the next piece of code for you, you cant change the code and must use it.
6VNIO: Variable naming is overrated, change a variable name to its acronym.
7Methods are overrated, inline a function wherever it is used and then delete it.
8Choose your next variable name using the Variables table
9aLl ThE cOoL kIdS wRiTe LiKe ThIs: ReNaMe SoMeThInG aLtErNaTiNg CaSeS
10Pick a random non-string variable, its new type must be string.
11Long file == Long D&D. One of your files must reach 1000 lines in the next minute.
12snake_case or camelCase? Why not both? rename a variable using a combination of both casing.
13Dead code is the only safe code, write at least 30 lines of code inside a block that will never be called
14Why use variables? When you'll need to add a new parameter to a function don't do it, just duplicate the function
15The next if/else should be converted to a if/elseif, also add a useless else with a TODO
16They told you not to negate if conditions, but.. replace if(!x) conditions with if(x) { nothing } else { code }
17Dear diary: add at least five lines of rants in comments
18For? While true! change a for statement to be a while true with a break inside a if to check the previous for condition
19Your code is boring, add at least 10 emojies in comments, variable names and function names
20Add an if in a random position of the code with an awful condition and add a comment inside it "if you find how to reach this point of code, please report it to this email: " and add a random email, then throw an exception
21Insult someone in the code, replace a variable/function/class name with an insult (e.g. YourMommaSoFatClass)
22Replace booleans with integers, if you have multiple booleans you SHOULD join them into a bitmask
23Use two names that look like each other until you change font and/or re-read it a couple of times
24If you are happy and you know it just throw an exception or two!
25Take a random class and change all the method and variable names using the minimum number of characters, you are the minifier
26Randomly replace similar characters in names: IOInterceptor -> l01nterceptor
27Rules? Fuck the rules! Create a constructor that accept half the class parameter the other half need a setter
28Keep your code nice and tidy: all lines with variable declaration must be together, sorted alphabetically, and with the same length
29Don't trust the IDE: add a prefix or suffix to 5 variables with its type
30Use a deprecated method, or deprecate one
31There is no such thing as "too many easter eggs": add a nyancat somewhere
32Hou do iu write in inglish? Make at least 5 spelling mistakes in the next 5 minutes.
33We pay for variables! Choose a random variable and reuse it at least 1d4 times
34Global is better! Get a random variable and make it globally scoped.
35Versioning systems can't be trusted, create a backup copy of a few files in the same directory
36Close each if/for/while/... block with a comment restating its first line
37Let your cat/dog walk onto the keyboard
38IDE? What is that? Use notepad for the next 5 minutes.
39Become Shakespeare, write a brief novel as a comment
40A-B Testing! Write two different versions of a critical function and use a random number generator to decide which version to call at runtime.
41Insert a comment in your code that claims it was written by a future version of yourself from 10 years ahead. Add a cryptic message or prediction about the future of the project.
42Create a variable "Answer_to_the_Ultimate_Question_of_Life_the_Universe_and_Everything", use it somewhere in your code.
43Replace an interface/type in your project with a generic Map or any equivalent