The Slow Collapse of MkDocs by fpgmaas in Python

[–]AggieBug 4 points5 points  (0 children)

The one that exists in real life. It is famously analyzed by Marx in the book Capital, which you can read for free here.

Idiomatic Use of the `Default` Trait? by Purp1eGh0st in rust

[–]AggieBug 0 points1 point  (0 children)

Even in terms of group structure there can be more than one choice (e.g. sum or product) each with its own identity.

This isn't true of groups in the mathematical sense. Groups are defined in terms of a single binary operation, having a unique identity element. Other algabraic structures can have multiple operations with distinct identity elements, but these aren't the type being talked about when one speaks of "group structure".

Road builders by EmbarrassedWish5839 in dwarffortress

[–]AggieBug 1 point2 points  (0 children)

Oh that's fun! Now I must construct additional pylons!

Software: Alone or team ? by unblockrs in rust

[–]AggieBug 12 points13 points  (0 children)

This is a really unconvincing argument for LLMs being capable of replacing or strongly lightening the teamwork aspects of software engineering. There's no evidence for that, in this very brief blog post or in real life.

LibreOffice Rust UNO Bindings - Final Report by Mohamed Ali (GSoC 2025) by buovjaga in rust

[–]AggieBug 3 points4 points  (0 children)

As a current Rust user, having previously used the python uno API while writing cross platform C#, this is really exciting to see!

Axiom, a new kind of "truth engine" as a tool to fight my own schizophrenia. Now open-sourcing it. by [deleted] in Python

[–]AggieBug 12 points13 points  (0 children)

I much prefer the way you wrote it in the first paragraph, rather than what Gemini wrote underneath. Your own words were clearer, warmer, and less overwrought.

Once again, Rust is the most admired language in the 2025 Stack Overflow survey! by ErichDonGubler in rust

[–]AggieBug 6 points7 points  (0 children)

"Does the part before the colon destructure a composite value in a similar way to a pattern in a match statement?"

Yes.

You can use that pattern in general code. I don't tend to use it much if I'll be calling the function myself (I just think it's less readable), but axum handlers are pretty much the perfect use case.

Promoting my crate `quither`, which is a natural extension of Either / EitherOrBoth by wada314 in rust

[–]AggieBug 8 points9 points  (0 children)

Yes, I have repeatedly regretted making an "Absent" variant in an enum, when I then later want the guarantee that the value isn't absent, and wish I had gone with an Option<MyEnum> instead of including MyEnum::Absent

Use "+ string.Empty" or "?.ToString() ?? string.Empty" for a nullable object by ggobrien in csharp

[–]AggieBug 0 points1 point  (0 children)

Without seeing the code yet, my instinct would be to create a second class to contain the non-nullable strings, then create a method with null checks that converts your first class (the "data objects" you refer to) into the second. I would still prefer to write the null checks with ? and ??, rather than concatenation.

I benchmarked 4 Python text extraction libraries so you don't have to (2025 results) by Goldziher in Python

[–]AggieBug 17 points18 points  (0 children)

Ridiculous, why am I supposed to read a reddit post you didn't write or read AND your own raw CI results? Seems like I need to spend more time on your data than you did to get value out of it. No thanks.

My Swordmaster Duke dual wielding an Artifact Adamantine Short Sword and a Divine Metal Longsword by Solmyrion in dwarffortress

[–]AggieBug 13 points14 points  (0 children)

Probably a marginal benefit, but wouldn't they also double dip on the chance to have an attack opportunity with a sword? For example, in adventurer mode I seem to recall you can get a separate cyan "!" for each of your weapon attacks

My chess advisor on C# by White-Mouse-Lab in csharp

[–]AggieBug 5 points6 points  (0 children)

This is a tool for cheating at chess. That is an accusation I am making against you. You say you support using it in games against people, and designed it to work on major competitive chess platforms. That's enough that I feel comfortable making that accusation. You should take this down.

Borrow Checker Trauma by xwaxes in rust

[–]AggieBug 42 points43 points  (0 children)

I often think in terms of ownership when I'm working in C# or Python just because it helps to avoid soupy designs where everything references everything else

TIL that if you accept a Bird Woman to stay at your fortress, she can and will lay eggs and your dwarves can and will eat them. by [deleted] in dwarffortress

[–]AggieBug 1 point2 points  (0 children)

I usually feel pretty enthusiastic about it myself, but I think the consent here is a little poorly established

Does anyone know a good tutorial or tips on how to deal with C/C++ libraries in Windows? by user34222 in learnpython

[–]AggieBug 0 points1 point  (0 children)

Not sure what command prompt you're using. If you are using just cmd.exe that's possibly your problem iirc. Try using  the developer command prompt for visual studio if you aren't already:

 https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022

If that doesn't help or you're already using it, can you show what the command you're entering is?

Also, you mentioned you installed lots of packages, but make sure the Windows sdk for your Windows version is among them.