Skip to content

Instantly share code, notes, and snippets.

@alexandercerutti
Last active December 29, 2021 14:42
Show Gist options
  • Select an option

  • Save alexandercerutti/d25ee6626fe64fa2cc5a613052ca308d to your computer and use it in GitHub Desktop.

Select an option

Save alexandercerutti/d25ee6626fe64fa2cc5a613052ca308d to your computer and use it in GitHub Desktop.

Revisions

  1. alexandercerutti revised this gist Dec 29, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wrong-identifiers.ts
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    * In grid reading, it is important to have all the bits aligned.
    * Unaligned bits can lead to misreading and therefore to bugs.
    *
    * Thrust me, I've shipped in production a product that had a
    * Trust me, I've shipped in production a product that had a
    * broken feature due to a wrong bit.
    */

  2. alexandercerutti revised this gist Dec 28, 2021. No changes.
  3. alexandercerutti revised this gist Dec 28, 2021. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions wrong-identifiers.ts
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    /**
    * In grid reading, it is important to have all the bits aligned.
    * Unaligned bits can lead to misreading bugs.
    *
    * Thrust me, I've shipped in production a product that had a
    * broken feature due to a wrong bit.
    */
    * In grid reading, it is important to have all the bits aligned.
    * Unaligned bits can lead to misreading and therefore to bugs.
    *
    * Thrust me, I've shipped in production a product that had a
    * broken feature due to a wrong bit.
    */

    enum States {
    LOADING /***/ = 0b000000, /* Set to 0 because it is the initial state */
  4. alexandercerutti revised this gist Dec 28, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions wrong-identifiers.ts
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,11 @@
    /**
    * In grid reading, it is important to have all the bits aligned.
    * Unaligned bits can lead to misreading bugs.
    *
    * Thrust me, I've shipped in production a product that had a
    * broken feature due to a wrong bit.
    */

    enum States {
    LOADING /***/ = 0b000000, /* Set to 0 because it is the initial state */
    FAILED /****/ = 0b000001,
  5. alexandercerutti revised this gist Dec 28, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions wrong-identifiers.ts
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    enum States {
    LOADING /***/ = 0b000000, /* Set to 0 because it is the initial state */
    FAILED /****/ = 0b000001,
    LOADED /****/ = 0b000010,
    PLAYING /***/ = 0b000100,
    STOPPED /***/ = 0b001000
    FAILED /****/ = 0b000001,
    LOADED /****/ = 0b000010,
    PLAYING /***/ = 0b000100,
    STOPPED /***/ = 0b001000
    }
  6. alexandercerutti created this gist Dec 28, 2021.
    7 changes: 7 additions & 0 deletions wrong-identifiers.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    enum States {
    LOADING /***/ = 0b000000, /* Set to 0 because it is the initial state */
    FAILED /****/ = 0b000001,
    LOADED /****/ = 0b000010,
    PLAYING /***/ = 0b000100,
    STOPPED /***/ = 0b001000
    }