I’ve been learning Rust by going through The Book… there’s some wack-ass syntax in that language. I’ve mostly used C# and Python so most of it just looks weird… I can more or less understand what while let Some((_, top)) = iter.next() { ... }
is doing, but .for_each(|((_, _, t), (_, _, b))| { ... }
just looks like an abomination. And I mean the syntax in general, not this code in particular.
I take my shitposts very seriously.
- 34 Posts
- 2.33K Comments
rtxn@lemmy.worldto Dull Men's Club@lemmy.world•This new album from fischer wasn't very good29·17 hours agoMixed with a bit of industrial metal.
Fuck university. Pick up a trade and get industry certifications. You’ll end up with real marketable skills without going into crippling lifelong debt. Some training agencies also offer help to find jobs. If you get lucky, your employer might even sponsor your education.
Tradie life is not glamorous, but it’s better than working as a cashier while having a bachelor’s.
You could double the vertical resolution by using half-height blocks (
U+2584
) and using the background color for the upper half.
I’ll just copy my comment from the other day.
Some people think it handles too many low-level systems. It’s a valid concern because if systemd itself were to become compromised (like Xz Utils was) or a serious bug was introduced, all of the userland processes would be affected. People who are stuck in the 90s and think that the Unix philosophy is still relevant will also point out that it’s a needlessly complex software suite and we should all go back to writing initscripts in bash. The truth is, it’s complex because it needs to solve a complex problem.
Red Hat, the owner of systemd, has also had its fair share of controversies. It’s a company that many distrust.
Ultimately, those whose opinion mattered the most decided that systemd’s benefits outweigh the risks and drawbacks. Debian held a vote to determine the project’s future regarding init systems. Arch Linux replaced initscripts because systemd was simply better, and replicating and maintaining its features (like starting services once their dependencies are running) with initscripts would’ve been unjustifiably complicated.
AI would be chronically incapable of implementing actually surprising plot twists that are both unexpected and consistent with the rest of the plot (and not somehow someone back into existence). If it hadn’t been written before, an AI would never make Darth Vader be Luke’s father unless specifically prompted, at which point, why even.
(I’ve just finished a hexalogy marathon, my head is full of jedi.)
rtxn@lemmy.worldMto linuxmemes@lemmy.world•What's your favourite OS that does not use systemd?361·2 days agoSome people think it handles too many low-level systems. It’s a valid concern because if systemd itself were to become compromised (like Xz Utils was) or a serious bug was introduced, all of the userland processes would be affected. People who are stuck in the 90s and think that the Unix philosophy is still relevant will also point out that it’s a needlessly complex software suite and we should all go back to writing initscripts in bash.
Red Hat, the owner of systemd, has also had its fair share of controversies. It’s a company that many distrust.
Ultimately, those whose opinion mattered the most decided that systemd’s benefits outweigh the risks and drawbacks. Debian held a vote to determine the project’s future regarding init systems. Arch Linux replaced initscripts because systemd was simply better, and replicating and maintaining its features (like starting services once their dependencies are running) with initscripts would’ve been unjustifiably complicated.
They were not space tourists.
They were cargo. Marketing material for Jeff’s rocket-powered overcompensation that just happened to need oxygen to stay fresh.
Surely this won’t upset people.
“Meet me in the middle” says the unjust man.
You take a step towards him, he takes a step back.
“Meet me in the middle” says the unjust man.You can’t engage such people in good faith, and it’s impossible to convince them to adopt a different viewpoint. People much smarter than you have tried and failed.
I meant games that had tutorial videos built into them. Stuff like Syphon Filter; a rushed, poorly voiced video that lists your controls and tosses you into the mission. The player is told what does what and isn’t given a chance to learn how to interact with the world.
Soul Reaver 1’s first 20 minutes is what every game should be aiming for. You learn how to navigate the world, how health and the spectral/material realms work, how to solve the combat puzzles, and more importantly, how those systems interact; then you’re on your own. If a game needs the help of extrenal resources to convey such basic information, it’s a failure of game design. Not necessarily out of incompetence but because game design principles hadn’t evolved to that point.
I’m not against external (including physical) resources, iff they’re used in a clever way. Shenzhen IO has a thirty-page manual themed as actual technical documentation about the electronics used in the game. Through this, the manual becomes part of the game. Same for Keep talking and nobody explodes. Volo’s Guide to Baldur’s Gate is a fantastic example of presenting supplemental information that is good to know but isn’t a roadblock in its absence. If a manual improves the game experience, it’s good material. If it’s necessary to make a game playable, it’s bad design.
In those days, developers largely didn’t know the concept of player training through gameplay and had to resort to text dump tutorials (or worse, tutorial videos (where applicable)).
I’ve been watching a lot of Miniminuteman lately. Weigelt sounds exactly like the crackpot conspiracy theorists whose “facts” are being “silenced” by “the Establishment” of “mainstream science” because “they don’t want you to know this”.
rtxn@lemmy.worldto Selfhosted@lemmy.world•What's the real difference between a shell script and Ansible (and which should I use)?English101·6 days agoAnsible is an abstraction layer over system utilities, shell, and other programs. You can specify what you want to happen, and it will figure out how to do it. For example, you can use the ansible.builtin.package module to specify which packages you want to be present, and Ansible will decide which specific package manager module should handle it and how.
Ansible tasks are also idempotent – they are concerned with the end state instead of the action. Many of the modules (like the
package
module above) take astate
parameter with the possible values ofpresent
orabsent
(instead of the more common “install” and “remove” actions). If the system’s state satisfies the task’s expected end state (e.g. the package is already present), the task will be skipped – unlike a shell script, which would simply re-run the entire script every time.Ansible also implements strict error checking. If a task fails, it won’t run any subsequent tasks on the host since the end states would be unpredictable.
Of course reality is more complex than my comment. It’s even more complex than what you wrote if we consider all factors, like the propaganda targeting muslim, hispanic, and black communities, the gerrymandering, protest votes, Gaza, Russia, everything that happened behind the curtain that we have no knowledge about…
Non-voters conributed to the result. So did independent votes. Blaming it on any one factor is nonsense, but a deep and exhaustive analysis was not the point of my comment.
rtxn@lemmy.worldto Dullsters@dullsters.net•I need to meal prep for the work week but have no idea what to make, did pasta salad last week for 5 days straight. Ugh2·7 days agoI’m on that authentic STALKER diet. Bread, salami, sometimes canned meat, and pills to silence the voices.
I could elaborate, but I have no wish to place myself under the ban hammer, and tilting at windmills is a habit I’m trying to kick.
Be the first, then. Throw the first brick. Fire the first shot. Prove your philosophy.
Is
| (...) | { ... }
a lambda expression then?