Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Alex Schunk

@Alex Schunk
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Question About Async/Await
    A Alex Schunk

    It just sound like a lot of work, but it isnt. If you have fire and forget async methods in the property, you can't control what they are doing. You don't know if there are started or finished or whatever... If you have somewhere code that depends on the result of your fire and forget code, then you will looking for bugs that you will never find. If your fire and forget code is just updating visual stuff (like icons or colors...) then well go for it... If other logic depends on it... Don't do it. Well actually you can do it, if you a fan of bugs. Debugging is a fun hobby. More fun if you are debugging asyncronous code. On top of that... Fire and forget code is very hard (most of the time impossible) to unit test.

    C# question regex help tutorial discussion

  • Question About Async/Await
    A Alex Schunk

    It is mostly done in the SearchCommand... Which is triggered if the user hits the enter key or if a small amount of grace period has passed.

    C# question regex help tutorial discussion

  • How To Make This Async [UPDATED]
    A Alex Schunk

    No it is not implied... He is just assigning a non started Task to user. As long as he doesnt await user() or user.Result... Then nothing ever happens with it.

    C# question help tutorial

  • How To Make This Async [UPDATED]
    A Alex Schunk

    Oh no... That Result there is making a sync method out of the async method. And Result shouldn't be used like that... You are asking for deadlocks that way.

    C# question help tutorial

  • Do you know any good unit testing and mocking frameworks for C#?
    A Alex Schunk

    Moq is also good.

    C# csharp algorithms testing beta-testing question

  • Question About Async/Await
    A Alex Schunk

    It is not a good idea because it is fire-and-forget. Unit-testing this kind of code is a pain or plainly not possible. But yes you can do it... Just be aware of the bad stuff that may happen.

    C# question regex help tutorial discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups