You shouldn't have comments in your code. Good code is self-documenting!

>You shouldn't have comments in your code. Good code is self-documenting!

Attached: 1506610241340.png (629x504, 36K)

>you don't need brackets
>you don't need pointers

this->enemies.push_back(enemy);
>Average Professor: "WHAT THE FUCK DOES THIS DO???? WHERE ARE THE COMMENTS"
fuck off asshole i hate you

// gets the user
function getUser()

#Writes "Hello World" to the terminal
print("Hello World")

Being this much of a brainlet must be hard on you pajeet. Good code is self-documenting doesn't mean you shouldn't use comments at all. You should still use comments for example to explain why you chose to use some decription algorithm and why it fits your problem. How you shouldn't use comments is "this function updates the user by using the pop and push method on the list". You can just name the function updateUser() and anyone with at least half as much braincells than you will understand what's happening after reading the code twice. When you are a beginner you are encouraged to comment everything out so that you don't get lost in your own code. If you want to work professionally you should learn some code ethics and not just bash the keyboard like some monkey. Everyone can make a program that works. Only the best can make it simple.

Welcome to Jow Forums

Attached: 1458065473734.jpg (869x1776, 226K)

>OP claims shouldn't have comments in code.
>user puts code in comment

Attached: CopyQ.kn2204.png (400x400, 180K)

Anyone who says this and strictly abides by the self-commenting meme is 9 times out of 10 a dinosaur worthless boomer or a retard Pajeet.

I've been thinking that you should make comments only from the perspective of "What is not obvious when looking at this code?".

Great code is self commenting and has good comments.

Please read Clean Code, you nematodes.

only fools are slaves to rules.

Programming is shit anyway. Get out of tech as soon as you can.

Don't put any comments into your code if you make it free and opensores so only white man will use it and won't bother you.

int a = 2; /* hoopsy woopsy this will make a the number twooo

You get an A

Fuck self-documenting code. If it was hard to write, it should be hard to read as well.

Attached: snoopy-calendar.jpg (488x618, 49K)

It never ceases to make me feel ashamed.

#This saves two numbers into an object called numbers

numbers

//sets the name of the current user
currentUser.name = "Bill";

cxx.g(pr.f ? pr.f(c) ? pr.f(c)++ : !!pr.l : G);

/**
* Sets user rights
* @param user the user
* @param rights the rights
* @throws NoPermissionException No permission
*/
public void setUserRights(User user, int rights) throws NoPermissionException {
...
}

Also the inevitable
// run the job every week
job.setFrequency(Frequency.Daily);