[-] Ephera@lemmy.ml 1 points 3 hours ago

Die ch=k Aussprache hat sich halt irgendwie auch einfach generell so im englischsprachigen Raum etabliert. Das ist ein Laut, den sie in der eigenen Sprache nicht haben. In der Regel können sie auch ein Fauchen nachmachen, aber keine Ahnung, ob das dann mitten in einem Wort zu schwer ist, oder warum sie das konsequent anders aussprechen...

[-] Ephera@lemmy.ml 1 points 3 hours ago

I've kind of standardized on writing it as "Failed to bar when beebbooping, while fadoodling."

Maybe a more concrete example:

Failed to write file when persisting audio, while recording. Caused by: Permission denied.

The while-part is optional, in case you've got a larger context.
Well, so is the rest of it, really. I may just write "Error when beebbooping", if I believe the error from .bar() to describe itself rather well. Error handling is hard. 🫠

But yeah, you kind of have to describe that an error occurred, rather than purely describing what you want to do, because anyhow doesn't prefix it or such.

[-] Ephera@lemmy.ml 2 points 7 hours ago

Ah yeah, I was thinking of the "Caused by" shenanigans, which it prints in addition to the stacktrace.

[-] Ephera@lemmy.ml 16 points 7 hours ago

I mean, you chose to pronounce "ch" as a "k", not us...

[-] Ephera@lemmy.ml -3 points 9 hours ago

Pretty sure that's every political system, unfortunately...

[-] Ephera@lemmy.ml 3 points 18 hours ago

Other useful Debug implementations:

  • PathBuf and Path will give you the path with quotes and I believe, it escapes any non-UTF8 characters.
  • std::time::Duration will give you reasonably formatted output, like Duration::from_millis(54321) will format as 54.321s, whereas Duration::from_millis(321) will format as 321ms. Not appropriate for every situation, but works pretty well for logging.
15
submitted 18 hours ago by Ephera@lemmy.ml to c/rust@lemmy.ml

Always had the problem that if I wanted to just log an error, rather than bubble it all the way up to main(), that you wouldn't get a stacktrace. You could iterate the source chain and plug the stacktrace together yourself, but it's rather complex code.

Now I realized, you can do this to get a stacktrace:

let error = todo!("Get an error somehow...");
let error = anyhow::anyhow!(error); //converts to an `anyhow::Error`
eprintln!("Error with stacktrace: {error:?}");

For converting to an anyhow::Error, it often also makes sense to use anyhow::Context like so:

use anyhow::Context;
let error = error.context("Deleting file failed.");
[-] Ephera@lemmy.ml 2 points 19 hours ago

*Weiß̈̈rrussich

🙃

[-] Ephera@lemmy.ml 2 points 1 day ago

Dungeon Lawl Stone Soup 🙃

[-] Ephera@lemmy.ml 9 points 1 day ago* (last edited 1 day ago)

I think, the problem is that Nvidia has two customer groups. Those that buy their products and those that buy their stock options. Nvidia can produce garbage that completely misses the point of real-world usage, so long as they can convince investors that other investors will join the pyramid scheme. And for that, it just has to look like impressive tech, not actually good or artistically meaningful.

4

In various point-and-click adventure games, you could enter natural language instructions, way before LLMs were a thing.

And for FMV-style titles, real actors got photographed and filmed to create much more photorealistic games than you could ever hope for with motion capturing, raytracing or by using two GPUs to implant creepy photograph snippets onto rendered gameplay.

So, clearly, we weren't ready yet for point-and-click games. 💩

[-] Ephera@lemmy.ml 10 points 1 day ago

In my experience, the biggest problem is that maintainable code necessarily requires extending/adapting existing structures rather than just slapping a feature onto the side.

And if we're not just talking boilerplate, then this necessarily requires understanding the existing logic, which problems it solves, and how you can mold it to continue to solve those problems, while also solving the new problem.

For that, you can't just review the code afterwards. You have to do the understanding yourself.
And once you have a clear understanding, it's likely that the actual code change is rather trivial. At least more trivial than trying to convey your precise understanding to an LLM/intern/etc..

1
0.34.1 Bugfix Release (crawl.develz.org)
submitted 6 days ago by Ephera@lemmy.ml to c/dcss@lemmy.ml
10
Haplodiploidy (en.wikipedia.org)
submitted 1 week ago by Ephera@lemmy.ml to c/wikipedia@lemmy.world
106
submitted 3 weeks ago by Ephera@lemmy.ml to c/kde@lemmy.kde.social
105
Hold On Tight (thelemmy.club)
submitted 3 weeks ago by Ephera@lemmy.ml to c/comics@lemmy.ml
3
0.34 Tournament Results (crawl.develz.org)
submitted 3 weeks ago by Ephera@lemmy.ml to c/dcss@lemmy.ml
20
submitted 3 weeks ago by Ephera@lemmy.ml to c/zocken@feddit.org
13
Klickibunti (de.wikipedia.org)
submitted 1 month ago by Ephera@lemmy.ml to c/famoseworte@feddit.org

Find's spannend, wie jung das Wort ist. Da hat nicht jemand vor Hunderten von Jahren mal "Ubuntus Clickus" gesagt und dann ist es durch Dialekte und Eindeutschung usw. irgendwie bei "Klickibunti" angekommen, sondern irgendjemand hat zu einem Zeitpunkt mal das Wort zum ersten Mal verwendet, und es wurde verstanden und weiterverwendet.

2
submitted 1 month ago by Ephera@lemmy.ml to c/dcss@lemmy.ml
23
Inheritance in 🦀 (thelemmy.club)
submitted 1 month ago by Ephera@lemmy.ml to c/rust@lemmy.ml
7
submitted 1 month ago by Ephera@lemmy.ml to c/dcss@lemmy.ml

I guess, I should've known better than to feel safe walking into this shop. 🫠

view more: next ›

Ephera

0 post score
0 comment score
joined 5 years ago
MODERATOR OF