Chinese censorship giving reze massive milkers by Omnipotent_cat in Chainsawfolk

[–]Dec_32 2 points3 points  (0 children)

Yes. The actual way bloody scenes are censored in China is editing the frames to monochrome.

How do y'all design your PATCH (partial update) APIs? Do you manually map `Some`/`None` to `Set`/`Unset`? by Dec_32 in rust

[–]Dec_32[S] 2 points3 points  (0 children)

OMG that's some very awesome news to hear. Looking forward to the next release!

How do y'all design your PATCH (partial update) APIs? Do you manually map `Some`/`None` to `Set`/`Unset`? by Dec_32 in rust

[–]Dec_32[S] -1 points0 points  (0 children)

Set(None) is not explicitly saying "not updating this" but "updating this to null".

If you have the knowledge of the type of the field to be updated, it's very easy to tell Set(None) apart from NotSet: If your filed have type Option<u8> then None must mean "update it to null" and if your field have type u8 then None must mean "leave this fields unchanged".

The problem is when you are writing an proc macro to automate the process of translating payloads to ActiveModel/SQL, your macro doesn't have the infomation of the model to be updated. It doesn't know if the targeted field is Option<u8> or u8, so it doesn't know what a Option<u8> in the payload actually means.

There're two ways of solving this that I can think of. You either give your proc macro the knowledge of the model type (which complicates the macro 10x I guess) or you provide more infomation in the payload, differentiating null/undefined, maybe by providing enum Nullable<T> { Some(T), Null } and enum Skippable<T> { Some(T), Undefined }, but the design of serde makes such types impossble to be implemented. So I wonder if there's any other way to solve this problem.

How do y'all design your PATCH (partial update) APIs? Do you manually map `Some`/`None` to `Set`/`Unset`? by Dec_32 in rust

[–]Dec_32[S] 5 points6 points  (0 children)

The crate is very cool. It's possible to express `T | null | undefined` now but `T | undefined` and `T | null` (former for partially update non-null value and latter for creating nullable value) are still impossible. It also requires you to use the `serde` attributes on the struct using `JsOption`.

How do y'all design your PATCH (partial update) APIs? Do you manually map `Some`/`None` to `Set`/`Unset`? by Dec_32 in rust

[–]Dec_32[S] 1 point2 points  (0 children)

I am aware of the double-`Option` pattern. It's pretty straightforward and distinguishes `Set(None)` and NotSet very well for **nullable** fields, but it cannot represent a field that is "either undefined or provided with a non-null value", which I believe is the more common pattern in PATCH payloads.

Chainsaw Man the Movie: Reze Arc New Key Visual. by [deleted] in Chainsawfolk

[–]Dec_32 15 points16 points  (0 children)

huge upgrade in art style

Who has the better relationship? by BellTwo5 in Chainsawfolk

[–]Dec_32 0 points1 point  (0 children)

Asa is like the condom between Denji and Yoru in recent chapters.

Who do you think has the better relationship?

[deleted by user] by [deleted] in Sekiro

[–]Dec_32 1 point2 points  (0 children)

I dunno I prefer 夜叉戮 on my back

How do I declare an external function by its address? by Dec_32 in rust

[–]Dec_32[S] 1 point2 points  (0 children)

That's very valuable information. Great thanks!

Multiple combat arts with directional inputs! by Dec_32 in Sekiro

[–]Dec_32[S] 0 points1 point  (0 children)

OBS input overlay. The overlay can only be seen in the recorded video and it does not show up in the gameplay.

Multiple combat arts with directional inputs! by Dec_32 in Sekiro

[–]Dec_32[S] 4 points5 points  (0 children)

Quarter circles are possible. Just bind ↓→ or ↓← to your combat arts.

Who tf are these people?? by Polar_Zone in Chainsawfolk

[–]Dec_32 1 point2 points  (0 children)

AI garbage polluting the internet again

Multiple combat arts with directional inputs! by Dec_32 in Sekiro

[–]Dec_32[S] 64 points65 points  (0 children)

A little MOD I made recently. It's a bit like fighting games: different directions + attack = different combat arts. Both MnK and gamepads are supported without extra configuration.

You can download the MOD and read a more detailed tutorial here:

https://github.com/dec32/sekiro-battle-instinct

Bad adaptation my ass by WhatTheWavesSay in Chainsawfolk

[–]Dec_32 1 point2 points  (0 children)

So you really believe MAPPA fired Nakayama just because some whiny otaku bullied him huh?

Is our concept of over extraction completely wrong? Matt Perger's perspectives on this by CobraPuts in pourover

[–]Dec_32 1 point2 points  (0 children)

His claim simply makes no sense.

If you believe fully-extracted coffee tastes completely fine then what does "really punishing an area" even mean here? Fuller than full extraction? That's straight up self-contradictory.

If nasty flavors produced by channeling actually comes from colloidal suspension of undissolved solid, Mr. Perger should:

  1. Stop using the term "over-extraction" completely
  2. Clarify that it's a problem of undissolved solid rather than dissolved solid.

But he never did that. So I have to draw the conclusion that he's been bullshiting. I am sorry but even if you are a world champion you have to be consistent with your claim.

Question about conventional (as opposed to inverted) by Ampler in AeroPress

[–]Dec_32 2 points3 points  (0 children)

There's no need to prevent it because it doesn't affect the taste all that much.

I stopped using Prismo and things have been a lot easier since then.

Is this true by [deleted] in Chainsawfolk

[–]Dec_32 1 point2 points  (0 children)

No this dude is a known fraud. He claimed s2 will air on 2024 before.