[-] livingcoder@programming.dev 3 points 2 years ago

Thanks for the explanation and README. I'll check it out.

[-] livingcoder@programming.dev 3 points 2 years ago

I'm surprised this doesn't already exist.

[-] livingcoder@programming.dev 3 points 2 years ago

At first I was disappointed to see this, but after looking into it it looks like they weren't using hyper as a means to migrate the project to Rust. If they're not going to move away from C, it seems like a fair decision.

[-] livingcoder@programming.dev 3 points 2 years ago

I remember Click (2006) being very sad, but I haven't watched it in a long time.

[-] livingcoder@programming.dev 3 points 2 years ago* (last edited 2 years ago)

I prefer to encapsulate a mutable reference to the instance in a scope.

let post_form = {
    let mut post_form = PostInsertForm::new(
        // your constructor arguments
    );
    post_form.some_mutating_method(
        // mutation arguments
    );
    post_form
};

This way you're left with an immutable instance and you encapsulate all of the logic needed to setup the instance in one place.

[-] livingcoder@programming.dev 3 points 2 years ago

I've literally sat down in city centers surrounded by buildings. It's an amazing feeling.

[-] livingcoder@programming.dev 3 points 2 years ago

The runoff voting downside is incorrect, the "drag the voters up to yellow and watch how it makes red win" example. This is not "see how making yellow more popular makes yellow lose". It's actually "see how making red more popular than yellow makes red win". The movement of the voters is not for yellow, but for red and yellow in a way that gives more voters to red.

There is no way for yellow to be the only candidate to get a boost of voters in the demo. If there were, it would only demonstrate further that yellow would still continue to win.

Runoff voting is the way.

[-] livingcoder@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Why would a Rust compiler written in C be more trustworthy than one written in Rust?

If the idea is that, in an ideal world, we would compile each layer of compilers from assembly-up-to-Rust for each build, that seems even more risky as then you have to trust each compiler instead of just one.

[-] livingcoder@programming.dev 3 points 2 years ago

There are some people who both start and end every gun debate with the "good guy with a gun" argument. Nothing gets through the impenetrable logic of "it makes sense to me".

[-] livingcoder@programming.dev 3 points 2 years ago

Oh, yeah, vim motions are wonderful. I started using them when I installed Linux on my Chromebook due to the lack of a good keyboard setup (I still don't know where the Delete key is on that thing).

[-] livingcoder@programming.dev 3 points 2 years ago

I just had to restart Skyrim (again), but I am determined to beat the main storyline this time. I have hundreds of hours in this game and I've played just about every side quest. On those rare moments I stumble into a new dungeon, I just absorb each step, soaking it all in.

[-] livingcoder@programming.dev 3 points 3 years ago

hook to Insomnia plays

view more: ‹ prev next ›

livingcoder

0 post score
0 comment score
joined 3 years ago