Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 04 20:49

    wtgodbe on 3.1-1d2acf73-011d-43a1-a7c2-043f98f04995

    (compare)

  • Aug 04 20:49

    wtgodbe on 3.1

    [release/3.1] Update dependenci… (compare)

  • Aug 04 20:49
    wtgodbe closed #28175
  • Aug 04 17:46

    Anipik on 3.1

    Update branding for 3.1.19 (#28… (compare)

  • Aug 04 17:46
    Anipik closed #28193
  • Aug 04 14:14
    aik-jahoda synchronize #28193
  • Aug 03 21:17
    dotnet-maestro[bot] synchronize #28175
  • Aug 03 21:17

    dotnet-maestro[bot] on 3.1-1d2acf73-011d-43a1-a7c2-043f98f04995

    Update dependencies from https:… (compare)

  • Aug 03 21:17
    dotnet-maestro[bot] edited #28175
  • Aug 03 17:45
    Anipik commented #28193
  • Aug 02 22:30
    vseanreesermsft opened #28193
  • Jul 21 18:25

    wtgodbe on 2.1

    master -> main (compare)

  • Jul 21 17:20

    wtgodbe on 2.1

    switch from master to main for … (compare)

  • Jul 21 17:20
    wtgodbe closed #28192
  • Jul 21 16:51
    vseanreesermsft synchronize #28192
  • Jul 21 16:42
    vseanreesermsft opened #28192
  • Jul 20 23:58

    wtgodbe on 2.1

    Target new machine (#28191) * … (compare)

  • Jul 20 23:58
    wtgodbe closed #28191
  • Jul 20 23:48
    vseanreesermsft opened #28191
  • Jul 20 22:22

    wtgodbe on 2.1

    Revert "Switch agent pool and d… (compare)

CyrusNajmabadi
@CyrusNajmabadi
you could pull that up to the caller
so they create the file, and then just call your helper that appends
seems odd to have to check on every occurence
coffeefedora
@coffeefedora
well that is ultimately what i'm trying to avoid
but not hte caller, it's a responsibility of the class i'm in
CyrusNajmabadi
@CyrusNajmabadi
n/m you said you don't want that
coffeefedora
@coffeefedora
ie, i could be writing to a db, in which case that's all moot. but maybe i can create the file empty on initialization
CyrusNajmabadi
@CyrusNajmabadi
yeah, i'm not seeing the aesthetic issue tbh
it seems like a strange aversion to conditionals. but that's part and parcel of idiomatic c# since 1.0
coffeefedora
@coffeefedora
i'm just averse to the 99% path going through an else, and i dislike "if (! first)" semantics to put it in the if bracket
but i think the builder / do it in an earlier step works here
I've had theory taught to me (which I agree with) that the if statements should be ordered in "most likely to least likely" order for easier code reading
CyrusNajmabadi
@CyrusNajmabadi
and i dislike "if (! first)" semantics to put it in the if bracket
why?
again, very very idiomatic
put another way (to give context): i'm one of the c# language designers here.
so we'd need a very strong argument for adding something in the language to deal with this case. (i.e. adding support for your Method1 = Method2 case.
coffeefedora
@coffeefedora
easy to miss the !. i wish not was a keyword
CyrusNajmabadi
@CyrusNajmabadi
Part of the assessment will be comparing to what users can do today
coffeefedora
@coffeefedora
and thx for a core lang dev to be talking to me!
CyrusNajmabadi
@CyrusNajmabadi
if (!expr) seems really hard to miss, esp with how common it is :)
that! really stands out
Jose
@pepone
I very much like to use unless(first) {} for languages that support it like Ruby
coffeefedora
@coffeefedora
i've missed it before, hard to believe i'm the only one. in fact i've seen code bases do: if (value == false) to avoid mis-reading
CyrusNajmabadi
@CyrusNajmabadi
to give an idea, we ahve 8000+ lines that use that pattern in roslyn :)
coffeefedora
@coffeefedora
but..im not a fan of that either. i know i'm picky! haha. if (not first) has a nice flow to it though
but that'd be a big change to the language, not saying that's reasonable.
back to the Func = Func concept. i use it a lot in Javascript as part of event based actions.
like on config, I assign a Print statement to use the console or a REST endpoint or something else
CyrusNajmabadi
@CyrusNajmabadi
sure. in that case just expose a field/prop of Delegate type
it is possible. just very non-idiomatic for this ecosystem
@coffeefedora
but..im not a fan of that either. i know i'm picky! haha. if (not first) has a nice flow to it though
but that'd be a big change to the language, not saying that's reasonable.
yeah, that would likely be rejected for being a literal parallel construct with no real gain. we're generally not a fan of that.
coffeefedora
@coffeefedora
that's ok, i wasn't trying to really change the language, i know it's not changing there. was just wishing!
but thank you for your time sir
CyrusNajmabadi
@CyrusNajmabadi
sure :)
Carlo Kok
@carlokok
Good day, does anyone know what the status is of COM support on OSX for .net core? Mono supports it, but it doesn't look like .net core does. I just can't find any tracking issue
Clinton Ingram
@saucecontrol
this one is in progress dotnet/runtime#36582
Jose
@pepone
are there any known issues with code coverage in .NET 6 preview? I'm getting empty reports when running the tests with dotnet test --collect:"XPlat Code Coverage"
Carlo Kok
@carlokok
@saucecontrol funny enough that's my usecase for it. (Debug interfaces)
Clinton Ingram
@saucecontrol
ha, I guess it wouldn't have been actual COM. that's got a 6.0 milestone on it, but I'm not sure how realistic that is given the branch date is quickly approaching
mogo-edenpark
@mogo-edenpark
I have three methods, which are complex queries and returns very similar instance of the object. What is a good method or design pattern to solve this problem?
Factory pattern?
CyrusNajmabadi
@CyrusNajmabadi
Why do you need a pattern here?
What's wrong with just having three methods with the three queries?
mogo-edenpark
@mogo-edenpark
@CyrusNajmabadi
I use the same model. The differences are one method have more fields to populate or use queries to populate the data
masonwheeler
@masonwheeler

in .NET Framework, you could define basic assembly metadata (version info, icons, etc) by writing a data stream and adding that to the file as an unmanaged Win32 resource. With Core's emphasis on cross-platform development, this is no longer a viable strategy, and the old API for doing this doesn't even exist in Core.

What's the proper way to do the equivalent task in Core -- specifically, to write out file metadata such as Version, Copyright Info, Product Name, etc, and to set an icon for the assembly -- preferably with System.Reflection.Metadata?

Zalaare
@zalaare
Hello, has anyone else tried using .NET Core on a Linux distro that uses the LLVM Toolchain? (eg. libc++, libc++abi, libunwind and no libgcc_s or libstdc++) I've been working on a distro like this and the command dotnet segfaults on use. I can at least still use source-build to bootstrap .NET 3.1, the resulting dotnet binary no longer segfaults, however it does spit out the missing libgcc_s so no pthread_cancel mantra. Ultimately 3.1 doesn't help me as I don't think I can use 3.1 to seed 5.0 and the bootstrapping no longer functions right for 5.
Chris Ochs
@gamemachine
Where would be the best place to ask about .net 5 behaviour in a vm environment? It's very specific to do with StopWatch not reflecting the tick rate for some reason. Could even be vm specific (kvm in this case).
Joe4evr
@Joe4evr
@gamemachine dotnet/runtime