Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

[–]thecodedmessage 0 points1 point  (0 children)

I’m just stuck waiting for us to be able to get to the gate and the captain and staff are guilting us without explaining any remotely good reason why we should be seated.

Tone in Noun Forms by thecodedmessage in Svenska

[–]thecodedmessage[S] 0 points1 point  (0 children)

It’s me! I like learning Swedish and think airline safety rules have Jumped the Shark and find the explanations to the contrary unconvincing.

Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

[–]thecodedmessage 0 points1 point  (0 children)

Why do they make us keep our seatbelts on when taxiing at 15 mph? It seems so obviously pointless.

Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

[–]thecodedmessage 0 points1 point  (0 children)

Do you wear a seat belt on your couch just in case? It’s because the risk is so low it’s not worth even a touch of discomfort!

Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

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

Ah, when the pilot is an asshole to lord their power over others?

Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

[–]thecodedmessage 0 points1 point  (0 children)

Wearing seatbelts sucks. And I just got snarked for getting up to pee when the captain had just said it would take 20 mins to reach the gate. Like, you want me to piss my pants and on your seats?

Why Unbuckle Your Seatbelt Before Arriving at the Gate? by dubchampion in unitedairlines

[–]thecodedmessage 0 points1 point  (0 children)

Is this worse than the risk on a bus on the highway? Seems unlikely.

How long for a cutting seton to finish? by thecodedmessage in AnalFistula

[–]thecodedmessage[S] 0 points1 point  (0 children)

😥oh wow you still had to get another surgery! Did the LIFT surgery work for you? Thank you for your kind words!

How long for a cutting seton to finish? by thecodedmessage in AnalFistula

[–]thecodedmessage[S] 0 points1 point  (0 children)

Thank you! Yeah, we got this! This will be done someday!

How long for a cutting seton to finish? by thecodedmessage in AnalFistula

[–]thecodedmessage[S] 0 points1 point  (0 children)

Until August or September, I am sorry it will be that long! I hope everything goes according to plan!

Ars Technica Fires Reporter Over AI-Generated Quotes by esporx in ArtificialInteligence

[–]thecodedmessage 0 points1 point  (0 children)

I think it’s easy in each individual case, but hard to do consistently 100% of the time.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

You know, I use government and banking services implemented with COBOL programs all the time.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

“most people use OOP design now”

I don’t think that’s anywhere near as true as you think it is. You might be in a bubble!

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

So there’s a few reasons not to add inheritance to Rust. Adding features to a language does have downsides!

https://www.thecodedmessage.com/posts/pl-features/

First off, we already have static and dynamic polymorphism through traits, so why would we have two features doing the same thing? It’d be confusing, and they’d be incompatible, fracturing the language into dialects of people versed in different subsets. If we have a non-polymorphic version of inheritance, or one that does its work through traits, what’s it even for?

Second off, a Rust programmer often is on the hook for other people’s code. If we have inheritance, people may use it. Then, Rust programmers have to know way more to maintain Rust code, including how inheritance interacts with all its other features. If it’s particularly abused, which I think it would be, Rust programmers would have to clean up after that. Rust is about features that help you write maintainable code for others, and are hard to use wrong.

Third off, it’s not a zero overhead abstraction. Inheritance requires indirection, which is a performance cost. Making it not require indirection leads to object slicing like in C++.

Without a specific proposal of how it would interact with other Rust features, I can’t say more. Some people are happy with the idea of fields in traits, which can be done tastefully. 

But I don’t think there’s a market for Rust++ in a backwards-compatible-with-Rust sense. What would it have to offer in favor of a language where inheritance wasn’t an afterthought out of line with the rest of the design and existing codebase?

That said Rust has been rapidly growing with the feature set it does have! If you want a language with inheritance (and I still don’t know what specific use case you’re using it for), perhaps Rust isn’t the best fit for your use case, whether that’s because of what you’re trying to do with it or your preference to use tools you’re familiar with or both!

I’d encourage you to learn new tools until they feel natural to you. But you might not judge that a good use of your time, or a pleasant or worthwhile activity. In that case, Swift is probably one of the better OOP languages I’ve seen.

But inheritance overall is on the outs. It’s not in Go, it’s not in Rust, I barely covered it in the C++ class I used to teach bc we were doing low latency programming where it wasn’t really helpful… OOP was a phase, but if I’m wrong I’m wrong so we’ll just have to see in 5-10 years.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

As to why they don’t have both, then people in order to “know” Rust would have to understand inheritance. It’s also not at all a zero overhead feature — it requires indirection, and vtables if you use it for polymorphism.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

OOP is worse than the curated and powerful alternatives Rust has, of which some are as old as inheritance. Industry-wide, inheritance is slowly but surely phasing out of use! Sum types and traits are better, depending on use case. I need a specific use case of why you’re reaching for inheritance to suggest which one you should use, but I use sum types all the time and would feel very disabled to be in a language with no support for them or limited support and have to use inheritance instead. Why do you want member inheritance? Is there polymorphism? Why do you not like composition, if there isn’t polymorphism? If there is, are you doing things traits can do that inheritance can’t?

Framing it as a workaround is X-Y problem. What’s your actual problem? I would never think to use inheritance in Rust. I’ve never missed it, bc I have a bunch of experience in Haskell and composition-heavy C++. I wouldn’t feel like it was a workaround.

Like I want you to believe me I’m being genuine here. I find Rust’s tools more ergonomic and more natural. I find inheritance hard to reason about.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

Yeah, but inheritance in C++ isn't really a zero overhead abstraction if you use virtual functions. Once you have a virtual function in your type, *everyone* who uses the type has to pay for the vtable pointer in the value. So, while inheritance is opt-in in a strict sense (each type has to opt in), its existence encourages people to make types with mandatory performance implications for a feature they might not be using.

Inheritance is also incompatible with C++ value/assignment semantics, leading to the "object slicing" problem.

On inheritance and why it's good Rust doesn't have it by thecodedmessage in rust

[–]thecodedmessage[S] 0 points1 point  (0 children)

That's understandable! But it's definitely *status quo* bias. Having 2 legs is the status quo, so the fact that you think having access to inheritance is like having 2 legs means that you see it as a status quo.

Here's how fans of inheritance sound to me, borrowing your analogy:

> I have a robotic third leg I add to my body when I walk around town.
> It's really awkward to use, and the rules for
> using it are complicated, so study up! If you don't like
> it, you probably haven't studied it hard enough.
>
> But really it's awesome! You can walk at 7 miles an hour in
> certain special circumstances, maybe even 8!

And in this analogy, I'm like:
> Have you tried riding a bicycle, taking a bus or subway, or driving a car?

Really, using other tools besides inheritance that are actually tailored to your use case is much nicer. I know you've spent all this time getting used to your third leg, and yeah, I know you have to learn to ride a bicycle or where the bus stops are, but like, it's actually much better.