Hacker News new | past | comments | ask | show | jobs | submit login

The example did not have threaded code so I find your nitpick unfair. The usage of random in their examples is perfectly fine.



If the site is providing toy examples that are not useful in production, then it should state that.

If "idioms" mean code that adheres to best practices, given that C# code is frequently threaded, their examples should mitigate common threading issues.


>then it should state that.

It will be ignored. StackOverflow guys and all participants have put an enormous effort into making it at least partially trusted source of snippets, and I hope it will never be outranked by sites like this.

(to creator: sorry for this, but in a long run it only harms everyone, unless you “die” for it)


If the language runtime supports threading, in the absence of explicit documentation, code that assumes single thread access is broken.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: