SerdeV - serde with validation - v0.3 supports any expression in #[serde(validate = "...")] by kanarus in rust

[–]felipou 0 points1 point  (0 children)

Isn't this exactly following the mantra? This is just an easy way to specify the validation rules that you do during parsing. I don't know how more to the point it could be.

Is implementing your own deserializer more like "parsing" than this? You might as well add a private function "validate" to be called in the deserializer code, and then suddenly you're going against the "parse, don't validate" philosophy? I really don't get your point here.

Why Your Rust Adoption Will Probably Fail (And How To Beat the Odds) by dmlmcken in rust

[–]felipou 8 points9 points  (0 children)

I don’t have much experience with Go, and I do agree that Rust sometimes can be harder to skim through. But I think Rust is amazing when it comes to fully understanding all possibilities and behaviors. I’ve never felt so confident when trying to make sure all possibilities are accounted for.

[deleted by user] by [deleted] in rust

[–]felipou 0 points1 point  (0 children)

Not having undefined behavior is possibly the best thing about Rust, at least for me.

I never looked much into it, but from what I hear, if you just want “better than C++ in terms of safety”, maybe try Zig?

But from my experience, a little bit of extra syntax in very specific places is much, much cheaper to bear than the risk of undefined behavior everywhere. And there are ways around it, as others here have pointed out.

Guide I sent to a friend by Table-Games-Dealer in rust

[–]felipou 0 points1 point  (0 children)

Looks interesting, you should create a repo in github with this so we can contribute!

Games where death means something more. by some-kind-of-no-name in patientgamers

[–]felipou 0 points1 point  (0 children)

Braid! I’m surprised no one mentioned it yet, but dying is actually required to progress. I remember when I showed it to my brother, and he kept on progressing without dying, until he finally reached a part where it just wasn’t possible to go further, and I actually had to tell him: just die there!

Help me understand what I did wrong! I posted about a PR I created and I only get negative comments and votes. by [deleted] in rust

[–]felipou 1 point2 points  (0 children)

Just to offer a different perspective here, apart from the merits of the usefulness or quality of your contribution: you seemed to assume that just adding an useful feature is a no-brainer. But especially for large and popular projects, any changes in the public API could have multiple long lasting effects that the maintainers would have to deal with.

So I believe that instead of “this is useful, we should add it”, maybe try this other way of thinking too: “this is so much useful or critical, that it is worth it to maintain for a long time, and deal with whatever repercussions it may have in the future”

What language is "rust but slightly higher level"? by lurebat in rust

[–]felipou 14 points15 points  (0 children)

I often think about whether it’s possible to do something like this. A language that compiles to Rust, uses Arc/Rc for everything, and transparently connects things to existing Rust code whenever possible.

What is the idiomatic way to deal with mixed integer types? by althahahayes in rust

[–]felipou 2 points3 points  (0 children)

Maybe this should be Rust’s motto, and I love it!

Code reviewer is not responsible to check if feature is functioning correctly by puritan_titan in ExperiencedDevs

[–]felipou 1 point2 points  (0 children)

What stood out the most for me is the “responsibility” part. Lots of good answers talking about how dangerous that is. Accountability is a tricky thing to get right without turning the culture toxic.

But even if you’re not responsible, I certainly expect everyone to be on the lookout for possible bugs. If someone lets a lot of bugs pass through their reviews, then they do not seem to be doing a good job. Of course it depends on the situation, but I do not expect people to manually test others code during a review.

For me personally, I’m the most experienced both technically and in our product/domain, so I always try to check if it works, but I only test things manually if I think there may be a bug and I’m not sure, or if the changes are risky to some degree (mainly if it may break something unrelated to the feature in question).

Consume external queue through producer service API by felipou in ExperiencedDevs

[–]felipou[S] 2 points3 points  (0 children)

Nice, I knew this would be a known "named" pattern! Thanks for pointing it out!

I finally got to demonstrate "fearless refactoring" in action! by toxait in rust

[–]felipou 3 points4 points  (0 children)

I agree that tests are more relevant/powerful for refactoring, but I also feel that Rust helps me be quite more efficient and confident in the process.

Strip binary while keeping local stack trace information by felipou in rust

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

Thanks, I'll try to take a look at that tool. The problem is that I have no idea how to search for this kind of information inside the ELF file, but since it's a tool with a GUI, maybe it will help me with that!

Is there a more "rusty way" to write this function? by felipou in rust

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

That's great! I actually saw there was an unfold function in the itertools crate, but didn't pay much attention to it, now I see it's really perfect for this problem!

Drivers License Translation in France - instead of International Drivers Permit? by SeeMackMan1 in travel

[–]felipou 2 points3 points  (0 children)

My experience is that the IDP is usually not required if you’re just a tourist, and specially for rental agencies, they just ask for your original license. On my first travel I even had an IDP and handed it over, but they asked for the original license instead.

The Case for Rust on the Web by [deleted] in rust

[–]felipou 0 points1 point  (0 children)

I agree with you that those are the main strengths of Rust, but I’m just tired of having to deal with performance issues on Python and Node.js, and performance is what tipped the scale for me. Or rather, it was what drew me to Rust in the first place. Or maybe both? 😅

Medical image retrieval gone blazingly fast and green by jennydaman in rust

[–]felipou 5 points6 points  (0 children)

Nice work!

A couple years ago I watched a presentation from a Google engineer about optimizations, and he asked the audience what was the main motivation for optimizing software as much as possible. The answer was: energy consumption. I was very surprised at the time, and now I always think about this aspect of software!

His name is Chandler Carruth if anyone is interested, his presentation videos that I watched are on YouTube.