4 ms·
Very cool! Anything similar for .net?
by wizzard0 2y ago
Very cool! Anything similar for .net?
- neonsunset 2y ago[flagged]
- lloydatkinson 2y agoI was about to comment the same - even before ITimeProvider existed it was already very common to have an ITime or IDate or IDateTime etc that would then be implemented as you need for tests. Having this now as a built-in is excellent.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- Thaxll 2y ago.NET 8 released 5 months ago, what are you talking about?
- neonsunset 2y agoIt was released 8 months ago. It seems this implies some sort of argument, could you expand on that?
- Thaxll 2y agoOP ask for a similar pattern for .net, you come here with unnecessary aggressive stance on something that was released 8 month ago, looking at your history it does not surprises though since you seems to have a grudge with Go.
- neonsunset 2y agoYou are misreading this as aggression towards OP, which there is none. Instead, this is a general despair at the damage done to our industry by Go and its community that keeps touting this mediocre language with weak compiler, unsound ecosystem, many footguns, lackluster type system and backwards design as something that can even remotely hope to compete with Rust or current state of C#.
- dalyons 2y agoThey’re in every thread that mentions go, calling it terrible and saying people are idiots for not using c# instead. It’s become predictable and tiring
- deleted 2y ago[deleted]
- wizzard0 2y agoUm, yes, TimeProvider is cool but works only insofar as ... > If you provide a fake time provider in all those places I'm looking for something more akin to https://go.dev/issue/67434 https://go.dev/issue/67434 (i.e. testing the code that calls third-party libraries that might just call Thread.Sleep and so on)
- dang 2y agoCan you please stop posting language flamewar comments to HN? It's the kind of thing we're trying to avoid here, and you've unfortunately been doing it repeatedly. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- neonsunset 2y agoAlright :)