Found this gem in one of the config files for Fedora Sway:

“This horror has to exist because…there are actual implementations that take this seriously…”

Oh Fedora Sway, you so sassyyyyy

  • Troy@lemmy.ca
    link
    fedilink
    arrow-up
    54
    ·
    1 year ago

    An overly dramatic programmer writes a useful comment explaining their implementation? I like it!

    • Fedora@lemmy.haigner.me
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      Google Chrome has lots of oddball issues. I’ve got a personal gripe with Chrome animations. Chrome animates elements on page load occasionally. Animations can and do de-sync in that weird state for some ungodly reason. What I love about this particular bug is that the bug ceases to exist when you use the built-in animation debugger. So Chrome got an animation debugger, but that animation debugger changes the state of animations to an extent that it becomes useless to troubleshoot animations in some situations. Mind blowing.

      Edit: Lemmy doesn’t let me post the code snippet for some reason. But it boils down to a temporary class that nullifies animations. When Chrome fires the page load event, the code removes the temporary class.

  • atetulo@lemm.ee
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    The more I program, the more I realize hacks like these are the direct result of someone doing something wrong somewhere.