home.social

#scoping — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #scoping, aggregated by home.social.

fetched live
  1. Odd/specific SCSS/SASS question

    Working on a client website, I often use similar scaffolding for my projects, especially with SASS.

    I had a variable defined as $red with a hex value.

    When I passed this to a component file, it was iterating up the parent directories and then down into a specific directory where the same variable name was in use.

    Not sure I understand the scoping here.

    I have since updated all my variable names in the local repo to be a bit more BEM-ish.

    Anyone know how/why this happens?

    My client repo is several subfolders deep from the one being called in the file, but its not a direct child/grand child.

    I hope this makes sense, assuming it is to do with name spacing.

    First image shows the iteration up the tree to the incorrect folder, second one shows the updated filename which is referencing the local variable correctly.

    #FrontEnd #FrontEndDevelopment #SCSS #CSS #SASS #Scoping #Variables

  2. A Scoping Review of Orexin Antagonists in Post-Traumatic Stress Disorder: Modulating Sleep, Stress, and Fear Circuits

    1ban.news/orexin-antagonists-p
    #1ban #orexin #antagonists #ptsd #scoping #sleep

  3. Change the scope a little, and you might miss the attack that matters most! Just five minutes of screen sharing made me find an unauthenticated XSS in #Weblication's admin panel.

    Many pentesters would have missed this vulnerability. And it's not for lack of skill, but because of how projects are scoped. 🧵

    #Hacking #BugBounty #Scoping #InfoSec #CyberSecurity #Pentesting #AppSec #CVE_2025_52161

  4. We wrote a long section about CSS Scoping in our article about Safari 17.4. We wanted to make sure you all have an easy way to understand both of the major ways to use it + the massive change it makes to how ties in specificity resolve.

    Don't miss it.

    webkit.org/blog/15063/webkit-f

    Oh, and check out the simple demos that are linked in the text. You can edit the CSS to see what happens.

    codepen.io/jensimmons/pen/jORN
    codepen.io/jensimmons/pen/mdoQ

    #css #webdevelopment #scoping

  5. looking forward to this change to "for loop" var scoping in upcoming Golang versions:

    go.dev/blog/loopvar-preview

    Golang is my tool of choice for writing code that should prioritize correctness, predictability, programmer clarity and long-term maintainability. and that change further fits within that same "grain of the wood"

    #golang
    #programming
    #scoping
    #semantics
    #quality

  6. Style versus : which is fastest ?

    « My new benchmark largely confirmed my previous research, and shadow DOM comes out as the most consistently performant option. Class-based style scoping slightly beats shadow DOM in some scenarios, but in others it’s much less performant. , thanks to its multi-threaded style engine, is much faster than Chrome or Safari. » by @nolan

    nolanlawson.com/2022/06/22/sty