Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

COMMENT YOUR GOD DAMN CODE

Name: Anonymous 2010-06-15 11:46

Hi.

It has come to my attention that you faggots need to learn to comment your code. I'm looking at you, C fags, with your unreadable declarations.

char (*(*imafaggot)[])();

Tell me what this is and you win a prize.

Programs should be written for people to read, and only incidentally for machines to execute. - SICP 101

Name: Anonymous 2010-08-17 5:17

>>43
I tend to put a two- or three-word comment every 5 or so lines explaining what the batch of lines does. It makes the code very easy to skim. Code should be easy to understand without the comments, but the comments help you read through it very quickly to find what you're looking for.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List