this post was submitted on 22 Jan 2025
364 points (97.9% liked)

Microblog Memes

6320 readers
3434 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 

Original post: fedi.aria.dog (~~fat Yoshi~~ Akkoma?)

top 32 comments
sorted by: hot top controversial new old
[–] virku@lemmy.world 48 points 1 week ago* (last edited 1 week ago) (5 children)

As a backend developer this could equally be real front end stuff or satire to take the piss out of it. To me the entire DOM stuff is as understandable as magical lore anyway.

[–] DarkenLM@kbin.earth 20 points 1 week ago (1 children)

Shadow DOM trees are very real, and I feel like a Wizard trying to decrypt ancient runes every time I have to deal with them, so you're not far off.

[–] boonhet@lemm.ee 5 points 1 week ago (3 children)
[–] Ephera@lemmy.ml 12 points 1 week ago

The browser has an internal model for representing the HTML document, called the Document Object Model (DOM). This DOM happens to be tree-shaped, because HTML is tree-shaped. And certain logic in a browser gets applied to subtrees, like e.g. most CSS rules.

Sometimes, however, you want a subtree to not get affected by what's going on in the main tree, for example when including an SVG into that tree, or if you're offering JavaScript library with a pre-built component.
And yeah, that is what the Shadow DOM does. It also shields the rest of the DOM from what you're doing inside the Shadow DOM. And there's certain mechanisms to selectively allow interaction across the shadow boundary, e.g. when providing a pre-built component, you might still want the user to be able to style parts of it.

[–] virku@lemmy.world 1 points 1 week ago* (last edited 1 week ago) (1 children)

I think the other comment was an excellent explanation of what the DOM is for somebody with a little bit of computer science experience at least.

But front end vs back end development explained like youre five:

  • a front end developer makes what you can see when you use some software (the term is mostly used when talking about web development, but almost all business software is websites today). So they know how to place buttons in the right place, how to make it look good or move around or what ever you want your website to do. I.E display a form to fill out when you want to check out your shopping basket in a web shop.

  • a back end developer makes the logic that happens behind the scenes and makes it available for the front end. I.E. Pass on the data from the form the user just entered to the orders database.

  • a full stack developer knows how to do both.

Edit: just realised I misunderstood your question. Keeping the comment though since somebody Else might not know the difference between backend and frontend

[–] boonhet@lemm.ee 2 points 1 week ago

Ah yeah, I'm a backend developer already, I was wondering what the heck a Shadow DOM is (as opposed to a regular DOM which I do understand). Luckily some of the other comments put together give me a decent summary.

[–] ayyy@sh.itjust.works 1 points 1 week ago

If you’ve ever built a backend MVC style (Model, View, Controller) it’s very similar but for web documents instead of remote procedure calls.

[–] Strawberry@lemmy.blahaj.zone 9 points 1 week ago (1 children)

Thank you for not shitting on frontend. Have a wonderful day

[–] virku@lemmy.world 4 points 1 week ago* (last edited 1 week ago) (1 children)

It wasn't meant as shitting on front end. I love a good gui. I just don't understand half of the things you guys work with.

I work mostly with business logic. Integtations, APIs and process automation etc. GUI stuff is quite far from my day to day so I don't have any incentives to learn at work either.

[–] Strawberry@lemmy.blahaj.zone 2 points 1 week ago

I know, I wasn't being sarcastic or anything. Many times when frontend comes up in online spaces, the comments are flooded with people shitting on frontend out of ignorance. You didn't do that, and it was refreshing.

[–] echodot 1 points 1 week ago (1 children)

The Shadow Dom just means pseudo elements. Obviously they have to exist somewhere so they exist in the shadow Dom but it's pretty easy to access you basically just do it just like you would any other Dom node.

[–] virku@lemmy.world 1 points 1 week ago

I haven't touched any front end code since I was a junior about 15 years ago. My CS degree didn't involve any more gui than simple stuff, so I was very overwhelmed by it. I ended up focusing on database work and business processes instead.

The way the DOM and shadow DOM is described now seems logical, so I guess I shouldn't have too much issue wrapping my brain around the concepts should I end up needing it in the furure. But I am very fond of where I am working purely with business logic and leaving the graphics to other people.

[–] droans@midwest.social 1 points 1 week ago

Everyone knows you just keep guessing until you get it right.

Don't worry about how janky or slow it makes the UI. That's basically a requirement for the modern browser.

[–] Newbuild@lemmy.nz 25 points 1 week ago (1 children)
[–] Arcka@midwest.social 4 points 1 week ago

That made me think it'd look good as a card:

[–] Lazycog@sopuli.xyz 23 points 1 week ago

Be aware, there are ways to use the dark arcane magic of the shadow trees and you can even attach shadow to a ~~vessel~~ host A screenshot of MDN docs about shadow DOM

[–] FooBarrington@lemmy.world 10 points 1 week ago (2 children)

Imma need to get an Elden Ring theory off my chest.

You remember that one fight against the two omens on the bridge to the divine tower, where suddenly everything goes black?

THAT FIGHT IS INSIDE THE VEIL.

[–] Iapar@feddit.org 3 points 1 week ago (2 children)

Which veil? Shadow land veil?

But yeah this fight is so... Out of place? I mean those are just two Standarte omens as a boss fight? And no other boss does something like the port to black.

Always thought there must be more to it.

Also is there an active elden ring lore community on Lemmy?

[–] FooBarrington@lemmy.world 5 points 1 week ago* (last edited 1 week ago) (2 children)

Yep, I'm 99% sure that they are somehow pulling us into the veil that separates TLB from TSL. Maybe they are stuck there?

It would be one thing if it were just some random enemies, but it's specifically Omen, and I'm pretty sure the location lines up well with where the veil should be. Miquella needed Mohg's Omen blood to cross into TSL (and to allow his followers to cross). That can't be a coincidence!

Sadly doesn't seem like such a community exists yet. I'd love one, but I'm bad at promoting that stuff (see my Invincible community). If you'd like to participate, I'll gladly open one up!

[–] Iapar@feddit.org 2 points 1 week ago (1 children)

Interesting. I try to participate but I can't promise anything.

But maybe thats a good reason to talk about a few things that are on my mind about the game.

[–] FooBarrington@lemmy.world 2 points 1 week ago

No pressure, come around when you feel like it!

[–] choss@sh.itjust.works 1 points 1 week ago (2 children)

I know I would love to join that community! I'm still unfamiliar with most of the story, but I'd be psyched to join!

[–] FooBarrington@lemmy.world 2 points 1 week ago

Awesome, I'll set it up later and send you a message!

And don't worry about the story - I've been trying to decipher it since release, and probably have a good grasp on 5%. Really hoping Nightreign will fill in some holes :D

[–] FooBarrington@lemmy.world 2 points 1 week ago (1 children)
[–] choss@sh.itjust.works 1 points 4 days ago

Siiiiick! I'm still putting off doing the thing in my first playthrough, but I hope to be able to participate soon!

[–] FooBarrington@lemmy.world 1 points 1 week ago

I opened the community up if you're interested: !eldenringlore@lemmy.world

[–] Kolanaki@yiffit.net 2 points 1 week ago* (last edited 1 week ago)

That fight is an illusion made by Morgott; it takes place entirely in your own mind. Similar to the illusion of fighting Renalla in her second phase (it's not actually Renalla but Rani disguised as her). Or the illusory version of Morgott just outside the capital walls.

[–] Caboose12000@lemmy.world 8 points 1 week ago (1 children)

ive only played a few hours of eldin ring what the hell is a shadow tree or Dom node?

[–] lustyargonian@lemm.ee 2 points 1 week ago

Web components suck

[–] moseschrute@lemmy.world 0 points 1 week ago

Can I hide from the trump administration in the shadow dom?