Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What is the naming convention for AutoResetEvents so that
A programmer intuitively knows that it is an AutoResetEvent
A programmer knows specifically what it is for
Say I have a method to refresh things which can only be called by one thread at a time
I find something like "resfreshThingAutoResetEvent" to be cumbersome, but it is the only way I can think to name it so that it meets the goals above.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 months ago.
Improve this question
I am a junior developer. Is this the best practice to initialize and call methods on a string in one line? I find it unreadable but not sure if there is any advantage to doing so.
public static string something = "ABC".toLower();
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am curious when there is a correct time to use the attribute [Obsolete] and the time to just delete the code. Is this something that should be considered in certain patterns like Factory vs Builder? Thanks!
You should use it in situations where there is code that is not under your control that consumes your class and you want to make a public API change and discourage or block future usage of the old API method/property without breaking binary compatability.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have a curious question here. Is it wise to have a singleton class use or call another singleton class? The project the i'm currently working does this a quite a bit. The good and bad tidbits of this convention would be most helpful.
There is no point about it. Each singelton stands for itself and call the other or not. It's not good or bad.
It depens on your goal, if the singeltons themself are a good decission.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm having difficulty trying to remember the term describing the wasted time of trying to understand the code of a legacy application that has no documentation. I had thought the term was code rediscovery, but Google is telling me I'm misremembering.
You are probably referring to Software/Code Archaeology which is the process of studying badly/not documented legacy projects/code.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I write a lot of code in Java, and always use anonymous classes. They allows you write concise code without boilerplate.
However, many modern languages, like C# and Dart don't include them. Why they aren't included there? What's so bad about them? Are there any blog post or articles where languages' where authors describe why they excluded them from these languages?