Kissaki

joined 1 year ago
[–] Kissaki 4 points 2 days ago* (last edited 2 days ago) (6 children)

with this in mind

With what in mind? Evading NULL?

Languages that make use of references rather than pointers don't have this Dualism. C# has nullable references and nullability analysis, and null as a keyword.

What does your reasoning mean in that context?

[–] Kissaki 11 points 2 days ago* (last edited 2 days ago) (14 children)

The items don't seem concise and always clear. But seems like a good, inspiring resource for things to consider.

If it is expected that a method might fail, then it should fail, either by throwing an Exception or, if not - it should return a special case None/Null type object of the desired class (following the Null Object Pattern), not null itself.

I've never heard of evading null with a Null object. Seems like a bad idea to me. Maybe it could work in some language, but generally I would say prefer result typing. Introducing a result type wrapping or extending the result value type is complexity I would be very evasive to introduce if the language doesn't already support result wrapper/state types.

[–] Kissaki 2 points 3 days ago* (last edited 3 days ago)

It’s an operating system that demands more of you than does the commercial offerings from Microsoft and Apple.

Does it?

It's different, but I imagine they're not fundamentally different if you exclude established knowledge/already being used to something.

Normal office use for non-techy people is launching apps, editing documents, and surfing the web. That doesn't work much differently, not fundamentally different, and not fundamentally more difficult.

[–] Kissaki 16 points 3 days ago* (last edited 3 days ago) (1 children)

I wish standards were always open access. Not behind a 600 dollar paywall.

When it is paywalled I'm irritated it's even called a standard.

[–] Kissaki 14 points 3 days ago (7 children)

TOML instead of YAML or JSON for configuration.

YAML is complex and has security concerns most people are not aware of.

JSON works, but the block quoting and indenting is a lot of noise for a simple category key value format.

[–] Kissaki 1 points 3 days ago

It doesn't analyze only one repo

[–] Kissaki 3 points 6 days ago (2 children)

How is that related? I don't see it.

[–] Kissaki 1 points 1 week ago (1 children)

This is not my experience at all.

It seems we search for and look at different kinds of questions.

[–] Kissaki 2 points 1 week ago

At least that's a testament to neutrality - in a shitty way.

[–] Kissaki 1 points 1 week ago* (last edited 1 week ago) (3 children)

fake internet points

Your take is a valid one, but not very fair.

Points are a reputation system. People who are contribute and provide quality get increased trust and power.

It's not "fake". It's a designed system of points with meaning.

A casual surfer not being able to vote is by design. Which has a cost of missing out on valid votes, but the benefit of evading trolls and misuse.

[–] Kissaki 1 points 1 week ago

By responses you mean to include comments and moderation, not just answers?

It's sometimes there, but - from the [limited] use I have - I would certainly not qualify them as "most".

[–] Kissaki 1 points 1 week ago (1 children)

What do you mean by pissy? What do you find so pissy?

 

researchers conducted experimental surveys with more than 1,000 adults in the U.S. to evaluate the relationship between AI disclosure and consumer behavior

The findings consistently showed products described as using artificial intelligence were less popular

“When AI is mentioned, it tends to lower emotional trust, which in turn decreases purchase intentions,”

11
submitted 1 month ago* (last edited 1 month ago) by Kissaki to c/dotnet
 

Some of the changes:

  • System.Text.Json now provides the JsonSchemaExporter type, which supports generating a JSON schema that represents a .NET type.
  • System.Text.Json: The JsonObject type now exposes ordered-dictionary-like APIs that enables explicit property order manipulation
  • [GeneratedRegex] on properties
  • The Regex class provides a Split method, similar in concept to the String.Split method. With String.Split, you supply one or more char or string separators, and the implementation splits the input text on those separators.
  • Generic OrderedDictionary<TKey, TValue>
  • ReadOnlySet<T>
  • new Base64Url class
  • System.Diagnostics.Metrics now provides the Gauge instrument
  • NuGetAudit now raises warnings for vulnerabilities in transitive dependencies
  • dotnet nuget why
  • MSBuild BuildChecks
  • C#: Partial properties
  • ASP.NET Core: Fingerprinting of static web assets
 

That intro though.

 

When you pause while debugging, you can hover over any delegate and get a convenient go to source link, here is an example with a Func delegate.

If you already know about delegates, there's not a lot of content in this dev blog post. Not that that's necessarily a bad thing either.

 

Mapping C# array types to PostgreSQL array columns or other DBMS/DB JSON columns.

 

Available and enabled by default from version 17.11 Preview 2 onwards.

New resource explorer additionally supports search, single view across solution, edit multiple files and locales at once, dark mode, string.Format pattern validation, validation and warnings, combined string and media view, grid zoomability

view more: next ›