learningduck

joined 2 years ago
[–] learningduck@programming.dev 3 points 2 years ago (1 children)

This sound like me, but I'm not as smart as you.

I learned to sketch, and paint miniatures. It gave me some kind of silence. I have to study painting techniques also. So, if I want to keep my mind occupied, but not too heavy, then I could watch some painting tutorials.

[–] learningduck@programming.dev 2 points 2 years ago (1 children)

So they managed to reinvent EUV and other necessary components all in China?

[–] learningduck@programming.dev 1 points 2 years ago

Thanks for the correction

[–] learningduck@programming.dev 3 points 2 years ago

Not in a good way. Perturabo from 40k. While reading a book about him, I realized that I have the same kind of thought process just like him and that's bad. I'm glad that I got a call out by the book and tried to correct that kind of thought ever since.

He's the kind of guy who would agree and really push through to get shit done with no complaints, but wish that people will start prizing him on their own after a long while and will get salty if he didn't get that kind of admiration.

[–] learningduck@programming.dev 3 points 2 years ago* (last edited 2 years ago) (2 children)

This. While I have a burn out from working, I will pour a cup of chocolate milk. It gave me the power to begin the day.

[–] learningduck@programming.dev 10 points 2 years ago* (last edited 2 years ago) (3 children)

It's such a shame. Day 4 part 2 took me much longer to codify my idea in Rust correctly than I would like to admit.

I'm so tempted to switch to a simpler language, but I wouldn't learn Rust then.

[–] learningduck@programming.dev 4 points 2 years ago

I don't want to read the number string from both left to right and Ruth to left. So, I

  1. iterate through each row and read the number string from left to right
  2. Store each number along with its cell range. ie: 467 is 0-2.
  3. Then from each symbol, find out if the position of the symbol +/-1 falls into any range. If so then sum that number.
[–] learningduck@programming.dev 5 points 2 years ago

They start a paywall if an author wants to monetize their work, which is fine. It's not Medium's fault as authors are the ones who decide to monetize their articles or not.

[–] learningduck@programming.dev 1 points 2 years ago* (last edited 2 years ago)

In case that this might help.

h.chars() returns an iterator of characters. Then he concatenate chars and see if it's a digit or a number string.

You can swap match u.is_numeric() with if u.is_numeric and covert _ => branch to else.

[–] learningduck@programming.dev 2 points 2 years ago

Oh, doing this is Rust is really simple.

I tried doing the same thing in Rust, but ended up doing it in Python instead.

[–] learningduck@programming.dev 2 points 2 years ago

Gotta farm a more exotic race then

[–] learningduck@programming.dev 4 points 2 years ago (1 children)

FAX machines is still a thing in 2023!

view more: ‹ prev next ›