nebeker

joined 10 months ago
[–] nebeker@programming.dev 2 points 4 weeks ago

Interestingly enough, you also have amazon.co.uk, which combines the nature (commercial) and location served (UK), but in the opposite order.

[–] nebeker@programming.dev 3 points 4 weeks ago (1 children)

But it could limit the usage of its TLD.

[–] nebeker@programming.dev 2 points 1 month ago (1 children)

There’s a lot to talk about from this point alone, but I’ll be brief: having gone through university courses on processor design and cutting my teeth on fighting people for a single bit in memory, I’m probably a lot more comfortable with that minutia than most; having written my first few lines of C in 10 years to demo a basic memory safety bug just an hour ago, you’re way way ahead of me.

There are different ways to learn and gain experience and each path will train us in different skills. Then we build teams around that diversity.

[–] nebeker@programming.dev 1 points 1 month ago

There’s nothing like having your network go poof and knowing with 100% certainty that it’s your fault and you’re the only one who can fix it.

[–] nebeker@programming.dev 2 points 1 month ago

I threw together a quick image to ASCII conversion project to actually use a couple of concepts.

Sometime this week I’d like to make it not panic over every little thing. I feel like I should be shifting error handling left, but it’s not very natural for me, just yet.

I will say, the ergonomics for testing with cargo are excellent.

[–] nebeker@programming.dev 3 points 1 month ago

I said it’ll reduce friction, you said it might be easier. Looks like we’re in complete agreement, right?

[–] nebeker@programming.dev 43 points 1 month ago (8 children)

This is super interesting. I’ll admit I wasn’t even aware of this effort. Even real-time usage of Windows relies on a parallel kernel.

This sounds like it’ll create a lot of cool opportunities and reduce friction.

[–] nebeker@programming.dev 1 points 4 months ago

I used that and Rustlings and really liked both, but somebody mentioned this and I decided to take a look. It’s cool that it introduces other concepts.

[–] nebeker@programming.dev 4 points 4 months ago (2 children)

I’m working through rust-exercises.com and taking notes on my thoughts. I may or may not want to use it for a short workshop at work - mostly for fun, since I work with a very different stack.

So far, I don’t know if I like the exercises, because the target audience doesn’t feel like it’s clearly defined: you both solve is_even with an if/else and overflow an i8 to -1. I don’t think I’ve met the person who is that inexperienced and that knowledgeable…

How are folks liking these exercises?

[–] nebeker@programming.dev 1 points 6 months ago (1 children)

One of my main concerns with this is the potential for making a lot of separate calls to the DB for a complex data structure. Then again there are trade offs to any architecture.

[–] nebeker@programming.dev 1 points 6 months ago* (last edited 6 months ago) (3 children)

The insert on their Getting Started guide.

let new_post = NewPost { title, body };

diesel::insert_into(posts::table)
    .values(&new_post)
    .returning(Post::as_returning())
    .get_result(conn)
    .expect("Error saving new post")

Of course the other possibility is this guide is very low on abstractions.

[–] nebeker@programming.dev 7 points 6 months ago (5 children)

Just learning. I threw together a little CRUD API in Rocket the other day.

Now I’m playing around with Diesel. I don’t love the intermediate New types, coming from EF Core. Is that because Rust ~~~~doesn’t really have constructors?

view more: next ›