• 3 Posts
  • 169 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle







  • dan@lemm.eetoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    49
    arrow-down
    1
    ·
    9 months ago

    On mobile: multiple top and bottom tool/nav bars that automatically show/hide themselves when you scroll. They’re invariably more irritating than if they were just pinned at the top of the page (or perhaps viewport, but ideally page - I can scroll to the top of I want it back)

    On desktop: animations tied to scrolling.

    Anywhere: any kind of popup, modal, etc that I didn’t click on something to get. Please fuck alllllllll the way off.


  • dan@lemm.eetoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    9 months ago

    The browser implements the text selection behaviour, but how infuriating it is depends on how convoluted your page construction is.

    On a simple page with no floats, overlaid elements, negative margins, absolute positioning, hidden stuff, and other css layout tomfoolery, it’s perfectly predictable. It’s only when designers do designer things does it start to break down.












  • The way it works is that there’s a symbol table entry for “foo” which has a slot for a hash, scalar, array, glob, etc.

    That leads to some super weird behaviour like, for example, if I declare a scalar, hash and array as “x”:

    $x = "sy";
    %x = (foo => "mb");
    @x = ("ol", "s!");
    

    You can access them all independently as you’re aware:

    say "x: ", $x, $x{foo}, @x; # Outputs:  x: symbols!
    

    But what’s really going to bake your noodle is I can assign the “x” symbol to something else like this:

    *z = *x;
    

    …and then the same thing works with z:

    say "z: ", $z, $z{foo}, @z; # Outputs:  z: symbols!
    

    Oneliner if you want to try it:

    perl -E '$x = "sy"; %x = (foo => "mb"); @x = ("ol", "s!"); say "x: ", $x, $x{foo}, @x; *z = *x; say "z: ", $z, $z{foo}, @z;'
    

    Congratulations! You now know more about one of Perl’s really weird internals than I’d wager most Perl programmers (I have literally never used any of the above for anything actually productive!)