Andrey Piskov
Andrey Piskov
Check for touch — luckily macs don’t have it (yet).
> You can use ‹…› `/etc/hosts.deny` @murka could you please elaborate? I have an outline server on ubuntu and if i specify any item in either `hosts` or `hosts.deny` on...
I have two customizations in my own code. First one is `required` (which I see mentioned above, so I will not repeat it). But I also have the code to...
@ErikEJ yeah, you’re absolutely right: to my shame, I’ve dismissed it due to “hashset” and “constructor” in the name and reinvented the wheel :-)
@rajibsm it’s really easy doing it yourself by customizing EntityType.t4 template. For example to use [ObservableCollection instead of list ](https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding/templates?tabs=dotnet-core-cli#customize-the-entity-types)replace ``` if (navigation.IsCollection) { #> public virtual ICollection { get;...
One more case to consider: avoiding inferred required attribute when default value is defined. ``` public string Prop { get; init; } = "default value"; ``` It’s non-nullable, yet it...
@JohnGalt1717 > Keep in mind that the required keyword rules everything now. Absolutely not. When you use `required`, caller __must__ provide the value. For example this code will not compile...
Yet some PRs and this sentence ↓ seem to ignore the default logic. > Not nullable/not required properties: > Property CAN NOT be null, but property CAN NOT be omitted...
@josundtit it will be “bad design decision” only if the default values are surprising to the user. Suppose you have a`ProfileDto` and a `VisibilityOptionsDto Settings`(which consists of 20 bool flags)...