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;
 }

Keybase proof

I hereby claim:

  • I am sethwklein on github.
  • I am sethwklein (https://keybase.io/sethwklein) on keybase.
  • I have a public key whose fingerprint is 32D9 7BE7 9387 7AC9 C910 B5FF 70DF 9C86 C0B3 A75B

To claim this, I am signing this object: