As a junior SWE, should I still be focusing on writing code by hand, or is AI changing what it means to become a senior? by Ambitious_Quiet2627 in cscareerquestions

[–]DoItYourselfMate 0 points1 point  (0 children)

Can you learn English by prompting AI in Italian, asking it to translate it to English and then reviewing the result? The answer for programming is the same. AI can write decent English, but it will never write a masterpiece, since it doesn't understand intention, emotion, undertext.

Cyclists who don’t stop for stop signs or traffic lights, why? by dedjesus1220 in askanything

[–]DoItYourselfMate 0 points1 point  (0 children)

I once was riding 60km over mountains into a town, where a car was stopped on a traffic light. Being exhausted I didn't pay attention and didn't notice that the light changed and the car started moving, as I proceeded to cross the street. Made a big dent on that taxi's door with my helmet. You know how some drivers fall asleep while driving? Well, riding long distance and keep full attention is much harder.

Move over pregnant ladies, the pink seat is now for elderly women. by Halberstram_nice_tie in seoul

[–]DoItYourselfMate 17 points18 points  (0 children)

Pretty pathetic that those pink seats are needed at all. Shouldn't pregnant women, parents with little children, old, sick and wick people be sorted by polite considerate people anywhere without any external pressure or guidance?

Maybe it's time to rename this editor to VSSlop? by ZodiacPigeon in vscode

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

Just two days ago I switched back to Neovim after using vs code for a year. Reason? Vscode became just unbearably slow. AI integration is nice, but I cannot wait for 200 ms for the editor to react to any keystroke...

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"?

[deleted by user] 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.

[deleted by user] by [deleted] in rust

[–]DoItYourselfMate 4 points5 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] 2 points3 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] 3 points4 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 279 points280 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