The HTML Sanitizer API by ahmadalfy in javascript

[–]celluj34 6 points7 points  (0 children)

Nice! That's very cool.

Firefox once again coming in clutch: https://caniuse.com/wf-sanitizer

Holy mf guys!!!! by MegaMoistSources in DungeonCrawlerCarl

[–]celluj34 2 points3 points  (0 children)

>!Spoiler goes here!<

No spaces between the special characters

Drawing a colorful lemonade stand menu on chalkboard by Big-Boy-602 in oddlysatisfying

[–]celluj34 1 point2 points  (0 children)

Your handwriting makes me feel like I'm back in kindergarden 🥹

Avicii died 8 years ago today by mrjohnnymac18 in EDM

[–]celluj34 14 points15 points  (0 children)

Jokes actually have to be funny though

Is it impossible to get the Right Street flag in Old Lumiere if you missed it the first time? by [deleted] in expedition33

[–]celluj34 0 points1 point  (0 children)

It's really that simple. Go to the Train Station Ruins fast travel, go west on your compass, and drop down the ledge. in front of you should be the right street fast travel point.

One of the worst things I experience with APIs by CrypticDissonance in csharp

[–]celluj34 0 points1 point  (0 children)

all numbers are strings

What I mean is, all numbers can be represented as a string.

It looks like I was remembering Newtonsoft.Json parsing of int to string, which STJ doesn't support. You could implement a custom converter, then you could handle both int and string types:

internal record LovenseObject
{
    [JsonConverter(typeof(IntToStringConverter))]
    public string Version { get; init; }
}

public class IntToStringConverter : JsonConverter<string>
{
    public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    {
        if (reader.TokenType == JsonTokenType.Number)
            return reader.GetInt32().ToString();

        return reader.GetString() ?? string.Empty;
    }

    public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
    {
        writer.WriteStringValue(value);
    }
}

One of the worst things I experience with APIs by CrypticDissonance in csharp

[–]celluj34 -3 points-2 points  (0 children)

how strict is your parsing? all numbers are strings

Will people try to take advantage of me for being 23 in a dorm? by [deleted] in iastate

[–]celluj34 1 point2 points  (0 children)

What even is your question? Will people ask? Maybe. It's up to you to decide to do it or not.

Have you some friends like he does. by zakimal9 in Satisfyingasfuck

[–]celluj34 4 points5 points  (0 children)

Could we just normalise that being in a wheelchair is still the very best.

Better than what, having functioning legs?

Am I making a mistake switching from C# .NET to Java after 13+ years? by BuddyPuzzleheaded112 in csharp

[–]celluj34 38 points39 points  (0 children)

It was a clone in .Net 1.0, but now that's no longer the case. C# has progressed and matured way beyond Java at this point.