Skip to content

Instantly share code, notes, and snippets.

@sethwklein
sethwklein / TWO_TYPES_OF_PARAMETERS.md
Last active May 18, 2021 18:06
Two types of parameters

Let's say you need to find the maximum number in a bunch of places, so you write a max method:

public static float Max(float a, float b) {
    if (a < b) {
        float t = a;
        a = b;
        b = t;
 }