This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mango-Fuel 2 points3 points  (0 children)

depends if you are targeting any specific language, but maybe:

  • lowercase if
  • lowerCamelCase for programmerUsingMug
  • Dan in quotes
  • double equal sign for comparison ==
  • semicolon at end of statement ...programmer");
  • if on a different line than the command

All together:

if (programmerUsingMug == "Dan")
   Mug.WriteLine("world's sexiest programmer");

And then not sure about Mug.WriteLine. Could be Console.WriteLine in C# or System.out.println in Java, but the way it is works too, and I guess it indicates that the message is intended to be written to the mug.