Click here to Skip to main content
15,892,537 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: Can I create a Tip/Trick from an answer I gave? Pin
Pete O'Hanlon28-Dec-10 22:30
mvePete O'Hanlon28-Dec-10 22:30 
QuestionI would like to ask for some help - yes ME Pin
Nagy Vilmos1-Dec-10 22:17
professionalNagy Vilmos1-Dec-10 22:17 
AnswerRe: I would like to ask for some help - yes ME Pin
Luc Pattyn1-Dec-10 22:51
sitebuilderLuc Pattyn1-Dec-10 22:51 
GeneralRe: I would like to ask for some help - yes ME Pin
Nagy Vilmos1-Dec-10 23:25
professionalNagy Vilmos1-Dec-10 23:25 
GeneralRe: I would like to ask for some help - yes ME Pin
Luc Pattyn1-Dec-10 23:28
sitebuilderLuc Pattyn1-Dec-10 23:28 
GeneralRe: I would like to ask for some help - yes ME Pin
Nagy Vilmos1-Dec-10 23:44
professionalNagy Vilmos1-Dec-10 23:44 
GeneralRe: I would like to ask for some help - yes ME Pin
Luc Pattyn2-Dec-10 0:15
sitebuilderLuc Pattyn2-Dec-10 0:15 
AnswerRe: I would like to ask for some help - yes ME Pin
Luc Pattyn2-Dec-10 6:27
sitebuilderLuc Pattyn2-Dec-10 6:27 
OK, the jury is out; here is the Belgian verdict:

1.
this definitely is article material. It is interesting to know, and it is bigger than a tip. It also not just solves a little problem, it is background knowledge that may or may not come in handy one day.

2.
I didn't like the title; I'd rather have something more descriptive and to the point. Some day soon, CP will have real search facilities and members will be able to search titles only for instance.

3.
I'd suggest to keep the order of the enum values constant, maybe regular season order would be great.

4.
I have been thinking about similar things in C# and it isn't really there. For one, in C# one can not inherit from enum. So the best I got working was a real class, something like:
		public override void Test(int arg) {
			String forcast = Season.WINTER.getForcast();
			log(forcast);
			log(Season.WINTER.ToString());
		}
	}

	public class Season {
	   public static Season SUMMER=new Season("Summer", "Sun, sun, sun");
	   public static Season WINTER=new Season("Winter", "Snow and ice");

   private  string seasonName;
   private  string forcast;
   private Season(String seasonName, String forcast)
   {
      this.seasonName = seasonName;
      this.forcast = forcast;
      Console.WriteLine("Creating " + this);
   }
   public string getForcast()
   {
      return this.forcast;
   }

   public override string ToString()
   {
      return seasonName + "{" + forcast + '}';
   }
}


which is pretty obvious and actually completely unrelated to enums!
PIEBALD might be the right person to elaborate on possibilities and limitations of enums in C#, although I expect the subject is limited anyway, unlike the Java situation.

5.
Please go ahead!

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at them.


GeneralRe: I would like to ask for some help - yes ME Pin
Nagy Vilmos2-Dec-10 6:58
professionalNagy Vilmos2-Dec-10 6:58 
GeneralRe: I would like to ask for some help - yes ME Pin
Luc Pattyn2-Dec-10 7:13
sitebuilderLuc Pattyn2-Dec-10 7:13 
GeneralRe: I would like to ask for some help - yes ME Pin
Luc Pattyn2-Dec-10 6:38
sitebuilderLuc Pattyn2-Dec-10 6:38 
QuestionTip/Trick gone Pin
Enver Maroshi23-Nov-10 23:56
Enver Maroshi23-Nov-10 23:56 
AnswerRe: Tip/Trick gone Pin
Pete O'Hanlon24-Nov-10 0:13
mvePete O'Hanlon24-Nov-10 0:13 
GeneralRe: Tip/Trick gone Pin
Enver Maroshi24-Nov-10 1:24
Enver Maroshi24-Nov-10 1:24 
GeneralRe: Tip/Trick gone Pin
Pete O'Hanlon24-Nov-10 2:38
mvePete O'Hanlon24-Nov-10 2:38 
AnswerRe: Tip/Trick gone Pin
Luc Pattyn24-Nov-10 4:04
sitebuilderLuc Pattyn24-Nov-10 4:04 
GeneralRe: Tip/Trick gone Pin
Enver Maroshi24-Nov-10 21:09
Enver Maroshi24-Nov-10 21:09 
AnswerRe: Tip/Trick gone Pin
Luc Pattyn25-Nov-10 2:02
sitebuilderLuc Pattyn25-Nov-10 2:02 
QuestionMy profile doesn't indicate my article. Pin
bleedingfingers18-Oct-10 0:47
bleedingfingers18-Oct-10 0:47 
AnswerRe: My profile doesn't indicate my article. Pin
thatraja18-Oct-10 1:03
professionalthatraja18-Oct-10 1:03 
AnswerRe: My profile doesn't indicate my article. Pin
Sandeep Mewara18-Oct-10 3:13
mveSandeep Mewara18-Oct-10 3:13 
AnswerRe: My profile doesn't indicate my article. Pin
Chris Maunder18-Oct-10 4:13
cofounderChris Maunder18-Oct-10 4:13 
GeneralRe: My profile doesn't indicate my article. Pin
bleedingfingers19-Oct-10 6:06
bleedingfingers19-Oct-10 6:06 
QuestionArticle for new tool Pin
NaveenSoftwares29-Sep-10 3:16
NaveenSoftwares29-Sep-10 3:16 
QuestionAny article Mentors around? Pin
DaveAuld13-Sep-10 2:59
professionalDaveAuld13-Sep-10 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.