$30 off During Our Annual Pro Sale. View Details »

Go home, Prettifier, you’re drunk!!

Go home, Prettifier, you’re drunk!!

A rant about automatic code formatting resulting in hardly human-readable code.

Gunnar Bittersmann

March 03, 2023
Tweet

More Decks by Gunnar Bittersmann

Other Decks in Programming

Transcript

  1. Go home, Prettifier,


    you’re drunk!!

    View Slide

  2. this.isMainMenuScrollButtonForwardHidden = Math.abs(this.$refs.mainsections.scrollWidth -
    this.$refs.mainsections.scrollLeft - this.$refs.mainsections.offsetWidth) <= 1;

    View Slide

  3. this.isMainMenuScrollButtonForwardHidden = Math.abs(this.$refs.mainsections.scrollWidth


    - this.$refs.mainsections.scrollLeft - this.$refs.mainsections.offsetWidth) <= 1;

    View Slide

  4. this.isMainMenuScrollButtonForwardHidden = Math.abs(


    this.$refs.mainsections.scrollWidth - this.$refs.mainsections.scrollLeft - this.
    $refs.mainsections.offsetWidth


    ) <= 1;

    View Slide

  5. this.isMainMenuScrollButtonForwardHidden = Math.abs(


    this.$refs.mainsections.scrollWidth - this.$refs.mainsections.scrollLeft


    - this.$refs.mainsections.offsetWidth


    ) <= 1;

    View Slide

  6. this.isMainMenuScrollButtonForwardHidden = Math.abs(


    this.$refs.mainsections.scrollWidth


    - this.$refs.mainsections.scrollLeft


    - this.$refs.mainsections.offsetWidth


    ) <= 1;

    View Slide

  7. this.isMainMenuScrollButtonForwardHidden = Math.abs(


    this.$refs.mainsections.scrollWidth -


    this.$refs.mainsections.scrollLeft -


    this.$refs.mainsections.offsetWidth


    ) <= 1;

    View Slide

  8. this.isMainMenuScrollButtonForwardHidden =


    Math.abs(


    this.$refs.mainsections.scrollWidth -


    this.$refs.mainsections.scrollLeft -


    this.$refs.mainsections.offsetWidth


    ) <= 1;

    View Slide

  9. this.isMainMenuScrollButtonForwardHidden =


    Math.abs(


    this.$refs.mainsections.scrollWidth -


    this.$refs.mainsections.scrollLeft -


    this.$refs.mainsections.offsetWidth,


    ) <= 1;
    💩

    View Slide

  10. Go home, Prettifier,


    you’re drunk!!

    View Slide