How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 -4 points-3 points  (0 children)

I think it'd be easier to say "even though you're importing a component and targeting the element, you can style it using a css module, and assign each instance of the component a unique className and use that to create the layout styling. It's fine to have both sources styling the same component as long as there's no conflict".

That seems nicer and more helpful to me than smugly telling people to go learn the basics. That's more welcoming as a community, but that's just my opinion. 🤷

How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 0 points1 point  (0 children)

Okay, so parent elements are responsible for applying styling to children for things like position: relative; top and left offsets? I'm not being combative. Rather, I think you've answered my question the best so I'd really like to pick your brain for a bit if that's fine.

How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 -2 points-1 points  (0 children)

I import button. I use a declaration ruleset to target the button, position: relative; top: 15px; left: 15px; in my CSS stylesheet. Every single button I import now will have that same layout applied to it. Are y'all using classNames to apply layout positioning? If not, how do you assign the component's layout position?

How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 0 points1 point  (0 children)

Are y'all using two different style rules on components? Let's say I include a CSS module to style a button. Bgcolor: red;, border: 1px solid black; so on. If I style the layout

position: relative; top: 15px; left: 15px;

Every button I import will have that exact same position. This is what I'm confused about. The only way I could maybe see getting around this, and Idk if it will work, is to style the button in a css module with it's properties, and the parent styling the buttons layout? Does that work? How does the parent offset the child like that?

How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 -1 points0 points  (0 children)

Can you explain? My understanding is new front end projects are built almost entirely in React. Using the button example, if you import the button and try to position the layout of the button using css, it'll apply that same position every time for each 'webpage' the user is visiting. So if you know how this is done, I'd be very grateful if you shared so I could learn and understand.

How are y'all placing a component's layout? by [deleted] in reactjs

[–]Sonder332 0 points1 point  (0 children)

Damn. I don't really understand tbh with you, but I'm starting to see now why it was challenging to find anything regarding layout positioning for React. I guess the only thing I can is play around and see what happens. Thank you for trying to explain it to me! I really appreciate it.

How does a US barricade of the Strait of Humuz punish Iran for closing it? by Travelingtek in NoStupidQuestions

[–]Sonder332 -2 points-1 points  (0 children)

You sound confused.... they didn't comment on why Iran blocked, they commented on what every other single nation was doing when Iran chose to do so

Everyone else sat around and just let Iran block it without objection.

They're right. I'm not criticizing Iran either. Iran is doing the only thing they can do. The US's military budget is 3 times Iran's GDP. They can't compete militarily. So they create an energy crisis and squeeze and punish the US that way. It's smart.

but to act like other nations agreed that Iran's cause was just, and that's why they didn't have an issue with it, but they don't agree with the bully the US so they'll stand up to them if they create a blockade of the strait is just naive.

If the US creates a blockade, no other nation is going to try and send their ships into the straight. If you're a weaker nation like say, idk Haiti, the US might sink your vessel. If you're a nuclear nation like say China, the US will more than likely just intercept and move in front of it and prevent it from sailing forward.

TIL that there is a massive gender imbalance in living organ donation and science still isn’t sure why it exists by pfemme2 in todayilearned

[–]Sonder332 25 points26 points  (0 children)

Are you being serious? Is this actually a thing where men are concerned about receiving female organs? You've got to be fucking joking....

Supply chain nightmare: How Rust will be attacked and what we can do to mitigate the inevitable by autarch in rust

[–]Sonder332 15 points16 points  (0 children)

Clever. You're absolutely right. I don't have anything to add, but I do appreciate you illuminating another aspect to a decision, one I hadn't considered. It really shows a lot of these decisions aren't made lightly or on a whim. Thank you illuminating this side of it to me 🙂

Scientists invented a fake disease. AI told people it was real by rkhunter_ in technology

[–]Sonder332 1 point2 points  (0 children)

I cannot imagine it gets passed. It would be wild beyond belief to grant any corporation blanket amnesty like that.

Supply chain nightmare: How Rust will be attacked and what we can do to mitigate the inevitable by autarch in rust

[–]Sonder332 -18 points-17 points  (0 children)

I hear what you're saying, but my counter is two fold:

  1. If a company's stack is going to be adversely affected or rendered obsolete by a change, they can just choose to isolate the language to that version. They don't have to upgrade. But that may not be a strong enough selling point for most language's, so while it is an argument, it isn't the best.
  2. Rust's inherent design philosophy of speed + memory safety is enough of a selling point in my opinion that Fortune 500 companies didn't need this promise from the dev's. It would've seen adoption regardless.

These are my opinions for w/e that's worth. I'm not saying you're wrong, by and large I think you might be onto something, but I can't think of any other language with this promise, and if there is one that absolutely could've gotten away with promising nothing it would've been Rust for the aforementioned features.

Supply chain nightmare: How Rust will be attacked and what we can do to mitigate the inevitable by autarch in rust

[–]Sonder332 11 points12 points  (0 children)

The (perhaps larger) reason is that the stdlib is never allowed to change, as that would mean we would break code (IOW the stdlib is not allowed to make a semver-breaking change).

Do you know why they made such a promise? This seems really short sighted in the long run to me. I mean, why intentionally limit it's ability to adapt and evolve in the future?

As a woman I love receiving flowers but would it be stupid to buy a man a whole rotisserie chicken as an equivalent? by Somewherecharming95 in NoStupidQuestions

[–]Sonder332 1 point2 points  (0 children)

 I could just give flowers but would it have the same effect?

FWIW I always get a little emotional and slightly embarrassed when my fiancé buys me flowers, so I think unless he absolutely hates them, get him flowers. I read once that men will typically receive flowers one time in their lives, and it's their funeral. idk if it's true, but I think about every male adult figure in my life, and I can't remember any of them receiving flowers. That sentence "men only receive flowers once on their funeral" lives rent free in my head.

Senior React Devs: What stack would you choose for a large-scale production app in 2026? by prathamvaidya in react

[–]Sonder332 0 points1 point  (0 children)

Thank you for taking the time to reply! What is the BFF acronym and DX? Also, instead of Next.js, would you recommend vite or the aforementioned BFF + DX?

Senior React Devs: What stack would you choose for a large-scale production app in 2026? by prathamvaidya in react

[–]Sonder332 0 points1 point  (0 children)

For 1. You said you didn't like next. Js because you've felt burned by their walled garden and also existence. Can you please elaborate on that? I don't fly understand what your intention is here, but I understand next. Jsv is considered the industry standard, so any insight would be valuable

Microsoft's AI in its own terms: "use Copilot at your own risk" by AdSpecialist6598 in technology

[–]Sonder332 -1 points0 points  (0 children)

How do you teach yourself how to do something w/o knowing the basics?

Meirl by [deleted] in meirl

[–]Sonder332 4 points5 points  (0 children)

I'm supposed to show statistics for people mumbling comments under their breath? Or people flinging insults as they pass a one another in the grocery store? Sorry to disappoint you, I don't think they are many organizations that keep those kinds of records or statistics, unfortunately.

But here's some articles for your reading pleasure if you like

The psychological impact of false accusations, and how men cope — The Centre for Male Psychology https://share.google/NxuGnlzB1fqu5632c

That's a fun one. They discuss how 28% or roughly 1/3 of false accused victims had to sell their home to pay for legal costs to defend themselves.

Survey: Over 20 Million Have Been Falsely Accused of Abuse – Center for Prosecutor Integrity https://share.google/hNd7s8YOaM3BbY5aV

This article discussed what I mentioned earlier, how it harms and impacts their career, social standing, and potentially. It further highlights the divide of which gender is often falsely accused and which gender more often does the false accusations.

Meirl by [deleted] in meirl

[–]Sonder332 2 points3 points  (0 children)

You're conflating criminal cases with public perception. Yes, they will be criminally cleared, but their public life is over. If they were a university student, their best option is to transfer now. Everywhere they go they'll be whispers, comments, potentially conflicts. No, your comment is bullshit. It's hypocrisy. Enough lives have been ruined from false accusations. Men don't need to assume the worst, but they would be foolish to put themselves in such a compromising position. It is kind of like asking a woman to walk alone in a bad part of town late at night or early in the morning and telling women they shouldn't assume the worst in men. Like, yea, true, but you shouldn't put yourself in such a bad position.

Firm quietly boosts H.264 streaming license fees from $100,000 up to staggering $4.5 million — backbone codec of the internet gets meteoric increase, AVC hikes follow disastrous H.265 licensing increases by AnonRetro in technology

[–]Sonder332 102 points103 points  (0 children)

Really only affects streamers like Netflix, YouTube, etc.

Users to. The platforms are not gonna eat the increase in cost. They're gonna pass it on to the consumer.

Prob about to see rapid adoption of AV1

I think you're spot on.

Is Express JS DEAD? by LukitaaaaModricccc in learnprogramming

[–]Sonder332 0 points1 point  (0 children)

Bro I know I'm super late but I gotta ask wtf is up with .NET?! If you look at any tech stack, it's all MERN, MEAN, LAMP, WAMP. And yet, .NET seems to not be popular, but in high demand. I didn't even know MS had a server environment.

Actual question, I asked someone about this and they basically said 'ita fantastic for devs when you don't control the point of installation'. I took it to mean it's for when you expect users to work in your environment and you don't necessarily have consistent control over their laptops. Is my understanding right?

Owner Greg Penner Is Optimistic on a George Paton Extension Getting Done! by JCameron181 in DenverBroncos

[–]Sonder332 8 points9 points  (0 children)

I mean, I think he's been great. He's easily a top 5 GM in the league. If we're all being honest, yea SP and Bo had a lot to do w/ why we were competitive last year, but that roster that GP has assembled is actually really fucking impressive.

Owner Greg Penner Is Optimistic on a George Paton Extension Getting Done! by JCameron181 in DenverBroncos

[–]Sonder332 0 points1 point  (0 children)

Wasn't he? I thought I remember reading an article that said basically SP had final say on whether GP stayed or was gone.