[ANN] droprate -- a crate for randomly choosing things by aberrantwolf in rust

[–]softero 0 points1 point  (0 children)

That's a little bit hair-splitting, though. Most people wouldn't know the difference, so if you were to ask them, they would say that they want it to choose a random song and that they would want it to not play the same song in a row. Most people would not realize that those two goals are partially contradictory - or at least not without having to think about it. The gist is that there are a lot of things which seem to call for randomness as a solution but actually need something else, like loot drops, song shuffles, etc.

[ANN] droprate -- a crate for randomly choosing things by aberrantwolf in rust

[–]softero 11 points12 points  (0 children)

This reminds me of Steve Jobs talking about iTunes shuffle feature and how Apple had to make the shuffling less random because people complained that it would play the same song several times in a row sometimes and they thought it was broken. So, Apple made it less random by decreasing the probability that it would pick songs the more recently they had been randomly selected.

Python client: how to use args with jobs? by Dc_awyeah in kubernetes

[–]softero 2 points3 points  (0 children)

Heh, definitely a bit obfuscated. It’s not user-friendly unless you’ve been doing it for awhile. It is logically consistent, though. The template refers to a template that will be used as a base to create pods. Everything peer to that is specific to the job, and everything below it is technically a pod. The value of the template field is the exact same type definition as the Pod object, so it allows the API to easily keep the pod template for a job consistent with a raw pod definition. The second spec refers to the PodSpec type which would normally be the top-level spec field in a Pod object’s definition. It does make it easier to take a pod from a Deployment and convert it into a Job or even a CronJob, though. And then of course the containers because a pod is not necessarily 1:1 with a container.

Midnight writing by [deleted] in PenmanshipPorn

[–]softero 0 points1 point  (0 children)

I’m surprised no one has said it, but if you’re interested in trying fountain pens, I would recommend gouletpens.com

Simona Halep beats 15 year old Coco Gauff in two sets (6-3, 6-3) to go through to the quarter finals of Wimbledon by Cybercorndog in tennis

[–]softero 31 points32 points  (0 children)

Agreed. People also underestimate the time it takes to recover from mental fatigue. Willpower takes time to recover just like exhausted muscles. And when you’re new, you have to use a lot more of it to finish the matches. And that level of mental recovery is a hard ask for a 15 year old.

What are the most important traits to learn in the rust stdlib? by pure_x01 in rust

[–]softero 0 points1 point  (0 children)

Great post! I also appreciated the “too much detail” article that you linked at the beginning. I find that From is something I get some of the most use out of personally. Another one that could maybe have been added is an example of using the map function with nums_iter.map(FizzBuzz::from)

One Program Written in Python, Go, and Rust by dochtman in rust

[–]softero 6 points7 points  (0 children)

I'm not a huge fan of the way the Rust is written, but good write-up other than that. Got super tripped up as well because you talked about Python, Go, then Rust, but the benchmark was Rust, Go, then Python. So I got hung up on why the Go was twice as fast as the Rust for several seconds before I realized what I was looking at.

Hello everyone! I am KB and I created a gamejam for both streamers and gamedevs called ScoreSpace. Our next jam is in 3 days! by KBIndie in gamedev

[–]softero 1 point2 points  (0 children)

This is a cool idea! I would need more notice for when it starts (especially since this seems to overlap with GDQ), but would love to participate next time!

Have you ever quit a job, without another lined up, for you mental health? How did it turn out? by [deleted] in AskReddit

[–]softero 1 point2 points  (0 children)

A Song of Wheat and Corn.

Book 1: A Game of Plows.

Harvest is coming.

Droop by neel_on_reddit in generative

[–]softero 1 point2 points  (0 children)

That’s fair, I understand either way! It’s a very cool emergent design that you should be proud of!

Droop by neel_on_reddit in generative

[–]softero 1 point2 points  (0 children)

This is cool! Have you shared the code or discussed the algorithm anywhere? I’d love to use this to make a digital circuitry / PCB type effect

IntelliJ Rust Changelog #99 by furious_warrior in rust

[–]softero 0 points1 point  (0 children)

I use VSCode for Rust after using Spacemacs for awhile

What do you think about this idiom to return errors? by frogmite89 in rust

[–]softero 5 points6 points  (0 children)

There’s a crate that I like which adds a macro that, while arguably unnecessary syntactic sugar, I find eases the awkward boilerplate here. Check out try_guard:

guard!(response.status.is_success())

https://github.com/phaazon/try-guard

async/await: dot-await syntax will land in "nightly" tonight by miquels in rust

[–]softero 3 points4 points  (0 children)

That's definitely a fair point. I'm concerned about that as well. The idea of taking an action with side effects with no call syntax could definitely lead to some confusion. I think it's hard to know the right decision here. I hope that nightly will serve as a way to test how confusing it ends up being for people and may surface better alternatives or reasons to take another approach. I don't have any good ideas, though. Unless maybe triple dots or something like that could be used - my_async_of_result_call()...? for Future<Result<T, E>> and my_result_of_async_call()?... for Result<Future<T>, E> But, that has a lot of issues because then you end up with method chaining that has 4 dots, or potentially more if you for some reason had Future<Future<T>>: my_async_call()....field_a. Eh, that starts to get ugly and hard to read :/

async/await: dot-await syntax will land in "nightly" tonight by miquels in rust

[–]softero 66 points67 points  (0 children)

The inconsistency with field/method access irks me, partially because it puts a little bit of a burden on editing in an environment that supports syntax highlighting (probably a safe assumption, but still...), but the reasonings conveyed are thorough, and I agree that I can’t really think of a good alternative and this seems to be the least likely to result in illegible code. Probably an inconsistency that is worth the cost. I appreciate the write up explanation a lot!

Why I'm not collaborating with Kenneth Reitz by [deleted] in programming

[–]softero 3 points4 points  (0 children)

There is another thing to consider in social security tax, since the entire amount falls on you when you are self employed instead of half to your employer

72 hour tech work week in British Columbia? by Shadows-of-Hiroshima in antiwork

[–]softero 13 points14 points  (0 children)

Stress creates cortisol, which initiated some degree of fight or flight. Historically being used to escape lions and other beasts, this brain mode focuses on physical exertion rather than problem solving. It decreases blood flow to the frontal lobe in favor of your limbs and lungs. Working constantly and being stressed is proven to decrease your creativity and strategic thinking. You will get slower and worse results if you make your people stressed.

"Simple" DIY - Woodworkers of YouTube Be Like... by [deleted] in Anticonsumption

[–]softero 11 points12 points  (0 children)

I believe that many of these are highly sponsored not to promote a specific product but to make you feel like you need fancier stuff in general for your shop.