Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 2019 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 2019 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 2019 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 2019 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 2019 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 2019 11:54
    jenergm commented #279
  • May 29 2019 14:59
    tmenier commented #1492
  • May 29 2019 04:58
    danroth27 updated the wiki
  • May 28 2019 14:25
    lewing commented #1807
  • May 27 2019 19:13
    matheusjulio96 commented #1652
  • May 27 2019 13:30
    springy76 commented #306
  • May 27 2019 13:13
    SQL-MisterMagoo commented #306
  • May 27 2019 13:07
    springy76 commented #306
  • May 27 2019 13:06
    springy76 commented #306
  • May 27 2019 12:24
    SQL-MisterMagoo commented #306
  • May 27 2019 12:20
    springy76 commented #306
  • May 27 2019 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 2019 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

Alberto Passalacqua
@AlbertoPa
models eh... some stuff is not so clear. For example, what do you do with Ids in EF?
@chucker23n:matrix.org yes, it broke my search string stuff :laughing:
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Until they have required properties, writing a model or DTO with NRT is just dumb
Alberto Passalacqua
@AlbertoPa
I mean, the issue is that Ids should not be nullable, but if you leave them non-nullable, you must set them to something, and that is not right either...
(the db should assign them)
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Yep. What’s missing is “this must be set, but not here”
Alberto Passalacqua
@AlbertoPa
honestly, the feeling is that this approach adds a lot of clutter for little gain
read: too much manual intervention...
on the other hand, what is the exact equivalent to pre-6? Because if you disable NRT, you can't use ?, if you use warnings, you are thrown a bunch of messages if you don't take care of NRTs... :-?
Alberto Passalacqua
@AlbertoPa
hmm a ?-shaped coffee cup...
seems I am not the only one thinking that, in the end, you just ! initialize... dotnet/efcore#15520
Erwin Kuhn
@erwinkn
It seems like the main problem with NRT + ASP.NET stuff (including Blazor) is that the latter simply wasn't designed to fit nullable annotations, right? Basically all problems are a variant of "this is initially null but is filled in later, so all my code will never see it as null"
But the compiler can't know that, unless a lot of magic is involved for the existing frameworks
2 replies
Programming languages that heavily use option types simply design their frameworks differently, so the "create and fill in later" pattern is never there
(from what I've seen)
Alberto Passalacqua
@AlbertoPa
@erwinkn yes, I guess the idea is that the developer needs to explicitly "authorize" that type of flow. It can be quite "funny" though. For example, if a user is authenticated, User is not null, and it has at least some claims, so User.Claims is there and probably the user name too... but now you must do User!.Claims!....
it gets very... ! ;-)
DB queries are another pain point
DeuceL
@DeuceL
Is this an ok place to ask for help using Blazor?
Mario van Zeist
@MariovanZeist
Yes it is @DeuceL
AlbertoPa @AlbertoPa unleashes a plushy minecraft style ! :-)
Todd Lang
@toddlang
Good (local) afternoon
Pursuant to the NRT discussion - I know I bleated pretty loud when Blazor came along with property binding. I knew it was gonna bite everyone in the ass eventually. I get the appeal of property binding, but... for me ... it's just not a good idea.
Alberto Passalacqua
@AlbertoPa
how is property binding a problem? :-?
In the end, even not binding, one has to ensure objects are not null
Peter Morris
@mrpmorris
How has property binding bitten me in the ass? I haven't noticed.
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Your ass must be beyond help, then
Truly a catasstrophe
Alberto Passalacqua
@AlbertoPa
oO
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Oo
Alberto Passalacqua
@AlbertoPa
!
Alberto Passalacqua
@AlbertoPa
the warning telling you that ? should only be used when in nullable context, if you use "warnings" should not be there (it just clutters the list of warnings while one ports)
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
I just want an interrobang ⁉️ operator
Alberto Passalacqua
@AlbertoPa
this: >!!<
code moved to net 6 finally... now 339 ! or ? or whatever, and it should work :P
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
If you hate NRT so much, why not marry it?
Alberto Passalacqua
@AlbertoPa
interesting theory LOL
Alberto Passalacqua
@AlbertoPa
@chucker23n:matrix.org I propose the :coffee: operator!
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Is that for inline Java code
Alberto Passalacqua
@AlbertoPa
I imagine it means "I gave up and let the framework whatever it sees fit" :P
Alberto Passalacqua
@AlbertoPa
Stuff like this seems so bloated...
    protected override bool TryParseValueFromString(
        string? value, 
        [MaybeNullWhen(false)] out double result, 
        [NotNullWhen(false)] out string? validationErrorMessage)
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
I’m inclined to disagree
Alberto Passalacqua
@AlbertoPa
about?
bloated or external tool? :P
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
I think it’s correct to build in stronger support for detecting null errors at compile time
Alberto Passalacqua
@AlbertoPa
I agree, but I do not agree in throwing an error at runtime if the annotations aren't in place, breaking code that is indeed correct
Alberto Passalacqua
@AlbertoPa
example, why would a controller throw Error 400 if the model sent has an IList object representing an optional relationship (can't be marked as nullable)?
Alberto Passalacqua
@AlbertoPa
I am curious to see how they will update the doc, because the asp tutorials won't work with the templates and will have warnings with NRT disables :P
SQL-MisterMagoo
@SQL-MisterMagoo
:bread: :egg: :coffee:
Mario van Zeist
@MariovanZeist
Morning. and may i have the 🧈
SQL-MisterMagoo
@SQL-MisterMagoo
:100: