Skip to content

Instantly share code, notes, and snippets.

@AngelOfCA
Created March 24, 2019 00:52
Show Gist options
  • Save AngelOfCA/4d06ce6a8eabb94a0f83737c0ce205e7 to your computer and use it in GitHub Desktop.
Save AngelOfCA/4d06ce6a8eabb94a0f83737c0ce205e7 to your computer and use it in GitHub Desktop.
public with sharing class Welcome {
//Welcome! I'm a comment and I'm here to tell you what this particular class file is for. The developer who created this class added
//me so that future developers, like yourself, would have a quick little introduction to what this class does.
//The two little slashes tell the compiler* that everything following on this line is a note
//for humans and not code that needs to be executed
// (* A compiler is the computer program that translates this code into executable computer instructions)
//But you know what? This set of comments is already several lines long and getting longer. I'm tired of typing two slashes every time
/*There. That's better. the '/*' tells the compiler that there are multiple lines of comments coming. It knows everything on this line
and any following lines
and lines
and lines
and lines will continue to be comments
until it sees a */
//Ok, let's get started!
// Test Comment Added
public static void youDoThisPart() {
/*Your assignment is to write two comments below this one. They can say whatever you like.
Make one as a single line comment using the // notation. Make the other one a multi line comment using the /* notation.
When you're done, save this file so that it is compiled and stored in Salesforce. */
//My first comment using a single line
/* OH! When I hit enter it automatically did the double slashes for me
* and and astric on this one! That will be handy later when writing lots of comments */
}
}
@tugce
Copy link

tugce commented Mar 24, 2019

Hello Erika, great work with coding homework! Were you be able to check pseudo code homework too? Sorry, I just saw the doc file. It would be great if you can add it to gist also.
Pseudo code looks good, I like the comments on top to check things. Good work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment