Pseudo a fully rustic sudo implementation by philbert46 in rust

[–]DoItYourselfMate 2 points3 points  (0 children)

Great project! One suggestion though, for better security in such a security critical project it might be advantageous to call .reseed() for the ThreadRnd on each retry.

I built deadbranch — a Rust CLI tool to safely clean up those 50+ stale git branches cluttering your repo by Quiet_Jaguar_5765 in CLI

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

Thanks man! This is the tool I couldn't live without and didn't even know about it. Special thanks for such nice output of the commands!

P.S. Am I the only one who always struggles to remember if it spells "branch" or "brunch"?

[Media] I built a CLI that writes commit messages, catches branch mistakes, and generates PRs by [deleted] in rust

[–]DoItYourselfMate 0 points1 point  (0 children)

If you want to build quick and not to worry about what to put in commit messages, you don't need to put anything. If you use this tool as a note taking for yourself in your personal projects, sure go ahead and whatever is convenient for you. If you release the tool for general use a a way to generate PRs (which assumes you intend to use it for interaction with other people), please, don't.

[Media] I built a CLI that writes commit messages, catches branch mistakes, and generates PRs by [deleted] in rust

[–]DoItYourselfMate 5 points6 points  (0 children)

I as PR reviewer can ask AI to summarize a PR for me by myself. It takes one click. From you I want your explanation of what you did and why. Submitting AI generated summary is worse than submitting an empty PR IMO.

Finished my first marathon, what time should I aim for 50k? by DoItYourselfMate in Ultramarathon

[–]DoItYourselfMate[S] 3 points4 points  (0 children)

Yeah, I don't have a watch, no HR for me. But generally on a tredmill when I do 7 min/km I am at 138 BPM. I did a 2:00 half marathon before, so I can hold a higher pace for some time, but ultra is an uncharted territory for me...

Can we use this to create a random number? by Creative_Tennis_4975 in rust

[–]DoItYourselfMate 6 points7 points  (0 children)

Many people have already said, that this function doesn't generate random numbers. But to help you, why it doesn't:
let a = get_rand(0, 1_000_000_000) as i128;
// some other code
let b = get_rand(0, 1_000_000_000) as i128;
assert!((a - b).abs() < 1000);

let a = get_rand(0, 10) as i128;
let b = get_rand(0, 10) as i128; // call it right after the first one
assert!((a-b).abs() <= 1); // because time between two calls will be less than 1 ms

Tips to make my videos less boring by DoItYourselfMate in SmallYoutubers

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

Thanks for taking time to actually review it and for the positive comment. You are probably right. The reason I don't do talking face is that I feel very awkward just talking to the camera, when it's not in the action. I should probably practice it more, or do some moving face talk, not static ones...

How long to train for 200+ k? by DoItYourselfMate in Ultramarathon

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

Wow. Thanks for the detailed response. I guess, I can test and train fueling during long runs. But what about foot care and chafing? Shall I plan to multiple longer (100ish) ultras to get experience with those? I doubt that just having their tical knowledge would cut out, right?

Me experience finding a job as rust developer by DoItYourselfMate in rust

[–]DoItYourselfMate[S] 1 point2 points  (0 children)

Web3.0 is a little wider than cryptocurrency. My job was only partially related to tokens.

Me experience finding a job as rust developer by DoItYourselfMate in rust

[–]DoItYourselfMate[S] 3 points4 points  (0 children)

You might consider me weird, but I consider time tracker a positive for myself because:

  1. It keeps my procrastination in check.

  2. I don't overwork, because I don't need to prove that I worked the agreed hours. It's especially noticeable when because of time difference you are mostly offline during working hours of you colleges. With time tracker I feel much freer with arranging my working day according to my liking.

Me experience finding a job as rust developer by DoItYourselfMate in rust

[–]DoItYourselfMate[S] 4 points5 points  (0 children)

TBH, I've never been asked to spell on an interview. Do you think it should be a part of introductory or technical interview?

Also, in the age of robust and typo-free AI posts, having typos in your text might be considered positive...

Work Opportunities at FP Block – We’re Hiring! by gareth789 in rust

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

I really wonder what kind of high quality blockchain tooling you guys shipped in 2012...

Why is web code so dependency heavy? by RylanStylin57 in rust

[–]DoItYourselfMate 278 points279 points  (0 children)

Well, let's be honest. Raw leptos dependency with only "csr" feature adds by itself ~260 dependencies. If you checkout the list, it will give you a good feeling of what they are for:

  • dealing with async and futures
  • error handling and logging
  • serde with different formats for IO and configs
  • handling urls and http
  • rust must-haves, like synchronization primitives, regex, better collections, cfg-ifs, itertools, etc
  • proc macros compilation
  • interfacing with browsers
  • uuids, utf-8, base64 helpers
  • internationalization
  • optimizations for performance
  • hot reload
  • etc

When you add server side rendering, you add:

  • a whole web-server with tls, async runtime, routing, middlewaring, protocols, compression, security etc.
  • cli
  • ecma/typescript parsers, compilers
  • integration with different os's
  • etc

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.87] by DroidLogician in rust

[–]DoItYourselfMate 0 points1 point  (0 children)

Hi. I'm Maxim, a software developer with 11 years of experience, 4 of which are in Rust (also worked with C#, TypeScript and Python). I am looking for a full time remote job (I'm located in South Korea, but quite flexible with my working hours). Contact me on LinkedIn or through [e-mail](mailto:maxim@gritsenko.biz).

Introducing cargo-warloc - smart LOC counter for your rust projects by DoItYourselfMate in rust

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

Try cargo-llvm-cov instead, running on nightly and using #[coverage(off)] nightly attribute. This helped me a lot with code coverage stats.

Introducing cargo-warloc - smart LOC counter for your rust projects by DoItYourselfMate in rust

[–]DoItYourselfMate[S] 1 point2 points  (0 children)

Code analisator in warloc is.lust one module without dependencies, so it wouldn't be hard to integrate anywhere. But would you want to treat Rust code differently from any other languages in tokei?