Recent comments in /f/explainlikeimfive

oneeyedziggy t1_ixilahp wrote

Awesome context... As I'm not a c# dev (well, my professional use of c# was extremely short lived and 10+ years ago...)... I was thinking in terms of what little java I know (also not a java dev) but how basically all options 9n a variable are enumerated in long-form when declaring ( public static String blah blah...) and just imagining (naively, based on the previous comment) that it might have been as simple as adding a byref or byval to the string of qualifiers when using a class to get struct behavior (and defaulting to some sane default where omitted)... Is this even relevant to the situation either in c# having such qualifiers or in classes and structs being sufficiently similar for that to be feasible (if only everything had been different)?

1

Triabolical_ t1_ixigt2n wrote

I was the test lead for the C# compiler and spent a lot of time in design meetings...

"class" and "struct" come from C++ though there they only have a difference in visibility, not in behavior.

"class" is the obvious choice for the main construct as that's what's used in many other languages.

Then we needed a name for something that's kindof like a class but not the same thing. It turns out that coming up with names for things in languages is really hard, as many of the non-reserved words are already used by programmers in a lot of cases. C# was a new language at that time but there were already developers writing the base class libraries in C# and their feedback was "don't take away names from us".

They were virtually all C++ developers, and nobody who writes C++ code was going to call something "struct" because it was a reserved word, so it was available, and we wanted something very distinct from "class" because the intended usage was so different.

That was a pretty early decision during language design.

Later the team came up with the concept of "conceptual keywords" - keywords that were reserved but only in specific situations. The words "get" and "set" for properties are a good example of that. If we'd done that earlier, we might have done something different with struct though I think we probably would have stuck with it as a name.

Not that the conceptual difference between classes and structs isn't quite confusing and very different than how C++ views the world, but that was inherently going to happen moving from an unmanaged to a managed world.

Thanks for letting me take a trip back on memory lane.

2

CaptMcPlatypus t1_ixiapeh wrote

There are mucus producing cells in the lining of your sinuses (and the rest of your airway). Those use the water and other ingredients that your body has on hand (from being well fed and well hydrated) to make mucus, which then clogs up your sinuses because they're making a lot of it,. It's also thicker than usual because it is trapping all the infection, and because probably the lining of your sinuses is swollen from the infection, which makes the drain holes smaller, so the mucus doesn't drain as easily.

9

KozuBlue t1_ixi8ayz wrote

Clinical Psychologist here. This is taking on board the fact you said you don't want to act on these thoughts. I can't really speak for you specifically as we haven't had an assessment together, but these thoughts really are normal. We can't control things like this. The problem is not the thoughts. The problem is worrying about the thoughts, and trying to control them.

26

Birdie121 t1_ixi757w wrote

There isn't really a conclusive scientific explanation, because the brain is weird and complicated and we know very little still about the actual mechanisms behind mental illness. Basically everyone normally experiences some symptoms of neurodivergence/psychosis once in a while, and the problem is when someone has those traits scaled way up and it's affecting their day-to-day experience of life and relationships with other people.

Intrusive thoughts are a particularly interesting example though, because (and I'm speculating here but I think some folks would agree) they could be a way to imagine potential future scenarios, elicit a fear response, and plan accordingly to avoid harm. So you might be thinking "what if I did that" and you get temporarily fixated on that idea, but your brain may actually be trying to get you to take care to avoid a dangerous/deadly outcome.

5

maveric_gamer t1_ixi49ll wrote

Not having been directly stabbed this is a bit removed, but every time I've been in a high-adrenaline situation and blood has been drawn, I didn't notice right away. Usually I was going about my business afterwards and someone screamed because I was bleeding a lot and didn't notice.

Also from a filmmaking perspective - it's not always about what's correct so much as what makes for a good movie. In a high-octane action scene someone might scream as they get their head sliced of despite that being physically impossible, but it makes for good cinema in some peoples' eyes.

1

urzu_seven t1_ixhym9f wrote

Intrusive thoughts such as this are common, everyone has them. The reason is because our brains are constantly having thoughts and we just don’t pay attention to most of them. In any situation your brain is analyzing all kinds of possibilities, and automatically ignoring the irrelevant ones for the most part. Occasionally you notice them and if they are scary or unpleasant it might seem upsetting for a moment but most of them time you can easily dismiss them. Unfortunately sometimes some people, usually due to mental illness, being in a temporary bad mental state, or for other reasons pay more attention to these kind of thoughts than they need to which can lead to anxiety, depression, and in unfortunate cases dangerous action. If you find yourself experiencing these kind of thoughts on a frequent enough basis (or they feel particularly strong) it’s a good idea to talk to a mental health professional. There is help available and you absolutely can do something about it.

3

Porkus_Aurelius t1_ixhsjsa wrote

I can't find it now, but I read an article about this that supposed our reason for having these feelings is that we are analyzing the situation and we ultimately decide it's a bad idea. The urge to do the thing isn't so much your brain pushing you to do it, but rather considering what would happen if you did.

That said, there is nothing wrong with talking to a therapist if you really feel like acting on these things.

378

[deleted] t1_ixhrss0 wrote

So, the explanation i was taught is that everyone experiences these feelings or thoughts at one point or another in their lives, or atleast most people. It is perfectly normal and ok for it to happen.

It becomes a problem when it morphs into suicidal ideation; where you can’t just brush these thoughts away, and instead fantisize or imagine actually dying for more than a second or minute. And often.

I want to assure you that the two are distinct, and If you experience the latter, talking to a professional is advised.

As for exactly why the first one happens, there is no real conclusive evidence that i’ve come across, i learned about it through education about five years ago, so new science may have come out.

The call of the void is one of my favorite emotions, i feel truly alive when i realize that i am just a single action away from certain death, but i never act on this or long for it to happen, nor do i imagine my death in situations outside these short lived experiences.

38

The_A4_Paper t1_ixhrq92 wrote

If you feel a very strong urge to drive off the road or jump off a cliff, I would suggest a meeting with a therapist.

On the topic at hand, the Human brain evolves to have these kinds of thoughts. It allows you to simulate and prepare for unexpected situations. Basically, if you are driving then there is a chance that you might lose control and go off the road, so your brain urges you to think about the situation. So in the unlikely case that you actually go off the road, you're already prepared for it.

1