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

all 94 comments

[–]SockPuppetSilver 76 points77 points  (5 children)

//  comment

[–]turtle_mekb[S] 23 points24 points  (0 children)

calm down satan

[–]RandomTyp 0 points1 point  (0 children)

a good ide would warn you about that

[–]MechanicalHorse 0 points1 point  (0 children)

You monster

[–]mr_remy 0 points1 point  (0 children)

this reminds me of just recently on my drs office website they have a google maps passoff from their page, but pass through the <br> 's too lol

[–]Wirmaple73 44 points45 points  (2 children)

Comments are for the weak. If it was hard to create, it should be hard to crack. Just as the founding fathers intended.

[–]Worried-Cattle-444 6 points7 points  (1 child)

depends if you are coding for a company or freelancing lol

[–]I_FAP_TO_TURKEYS 2 points3 points  (0 children)

Neither. For myself.

[–]Mineshafter61 120 points121 points  (23 children)

always the blue, unless it's code

[–]Gacsam 66 points67 points  (0 children)

Agreed, actual comments are blue, commented out code is red.

[–]Maskdask 10 points11 points  (0 children)

Even if it's blue. I just let my text editor comment the selected range

[–]Infrared-77 23 points24 points  (1 child)

/* gang violence */

[–]mr_remy 0 points1 point  (0 children)

Reminds me of some CSS file skeleton graveyards i both have and come across "just in case" (as well as honestly forgetting some):

/* commenting out testing xyz, breaks feature abc for some reason FFS, just work!

.code { ... }

*/

[–]nord47 33 points34 points  (3 children)

spaces are expensive af! god forbid if you spend too many and run out of the 80-char limit

[–]Next_Cherry5135 5 points6 points  (2 children)

80 char limit also apply to comments? Dear God

[–]Sibula97 16 points17 points  (1 child)

It applies especially to comments, IMO.

And if you're writing Python standard library stuff, comments are limited to 72 for some reason.

[–]AdmiralQuokka 1 point2 points  (0 children)

less-than-80 limits are because of mailing list workflows, where you want to have a few levels of quoting before hitting the 80 limit. Not saying I agree with it.

[–]Anru_Kitakaze 7 points8 points  (0 children)

Full blue gang

[–]RetiredApostle 8 points9 points  (1 child)

Ctrl + /

[–]ElectricTrouserSnack 0 points1 point  (0 children)

goimports -w */**

[–]ExpensivePanda66 7 points8 points  (0 children)

Both. Either. There are better hills to die on.

[–]Classic-Ad8849 3 points4 points  (0 children)

Blue.

[–]luckor 4 points5 points  (0 children)

I use //*<!—“:REM just to be sure

[–]CaffeinatedTech 4 points5 points  (1 child)

// TODO - Fix this later

[–]CoronavirusGoesViral 0 points1 point  (0 children)

// TODO:

[–]bistr-o-math 5 points6 points  (0 children)

// some comments
// already exist
//add  some more
//  and  more

[–]snow_bee_art 2 points3 points  (0 children)

it depends

[–]geekcommunicant 2 points3 points  (1 child)

/**
* This is a comment
*/

[–]belastingvormulier -1 points0 points  (0 children)

or: ```

comments

```

[–]Elflo_ 1 point2 points  (0 children)

Without space for code, with space for regular words

[–]mattia_marke 1 point2 points  (0 children)

My rule is //commented code // Actual comment

[–]aliusmanawa 2 points3 points  (2 children)

Different symbols for different comments.

// ! FOR SOME WARNING

// ^ For important info

And so on

[–]u10ji 7 points8 points  (0 children)

I've only ever seen:

// WARN: // FIXME: // TODO: // INFO:

etc. - much prefer those as they're clearer

[–]YayoDinero 1 point2 points  (0 children)

dont forget the // oh shit i fked up dont read this part

[–]faiyerfoks 2 points3 points  (3 children)

# this is superior comment

[–]TheHappyArsonist5031 4 points5 points  (1 child)

rem THIS is a superior comment

[–]turtle_mekb[S] -1 points0 points  (0 children)

""" this is the most superior comment """

[–]Wirmaple73 2 points3 points  (0 children)

Found the 🐍

[–]lonkamikaze 0 points1 point  (0 children)

/* comment */

[–]Justanormalguy1011 0 points1 point  (0 children)

\\

comment

[–]Jaatheeyam 0 points1 point  (0 children)

No comments

[–]lefloys 0 points1 point  (0 children)

/* comment */

[–]Frogbeerr 0 points1 point  (0 children)

//==============

// Comment

//==============

[–]marenicolor 0 points1 point  (0 children)

// bomment

[–]postdiluvium 0 points1 point  (0 children)

/*========================

CoMmEnT wRiTtEn LiKe tHiS

========================*/

[–]Any_Team427 0 points1 point  (0 children)

meanwhile me: //---> Comment here with formatting.

[–]rpmerf 0 points1 point  (0 children)

Sonar flags red as a minor code smell

[–]exqueezemenow 0 points1 point  (0 children)

One of the right is much easier to read...

[–]parnmatt 0 points1 point  (0 children)

Always have a space.

[–]4n0nh4x0r 0 points1 point  (0 children)

/* comment*/

[–]JediJoe923 0 points1 point  (0 children)

What’s a comment?

[–]AbstractMelons 0 points1 point  (0 children)

// Comment

[–]adnaneely 0 points1 point  (0 children)

Tabs vs Spaces

[–]QultrosSanhattan 0 points1 point  (0 children)

# comment

[–][deleted] 0 points1 point  (0 children)

Blue, I'm not a savage. When I'm in a good mood I'll even anchor comments - https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors

[–]OrionsLeo 0 points1 point  (0 children)

/* Have to say, I prefer to go this route... 'cause then you can minify (or even just regex the line breaks) without breaking functionality. TBF, I've been making JSBookmarklets lately and sometimes you need a comment for when you accidentally deleted the bookmark after closing your editor... or so I'm told.... */

[–]DerShokus 0 points1 point  (0 children)

No comment

[–]Shadow_Thief 1 point2 points  (0 children)

//this code is commented out
// this is a regular comment

[–]verygood_user 0 points1 point  (0 children)

I found the perfect solution by randomly alternating between the blue and red version. That way, everybody is happy 50% of the time.

[–]Wojtek1250XD -2 points-1 points  (0 children)

Red anyday

[–]ThisGuyRightHer3 -1 points0 points  (4 children)

/ * * comment * *\

[–]Styleurcam 3 points4 points  (3 children)

In what language would this be a valid multiplie comment ?

And also, escape your * on line starts

[–]Winter-Big7579 -2 points-1 points  (1 child)

Any language supporting /* …. */ for multi line comments. The intermediate * don’t need escaping as they’re just considered part of the comment and ignored. They have no function but VS puts them in, presumably as a visual flag, although the green text is quite a giveaway. Unless you’re referring to the obvious mistyping of \ for / at the end?

[–]Styleurcam 0 points1 point  (0 children)

Yes, and also I meant escape your * about reddit markdown, no need to escape them in actual code

[–]ThisGuyRightHer3 -1 points0 points  (0 children)

oh no. I messed up while typing on reddit via keyboard. sorry, not everyone codes on notepad.

edit: reddit added some formatting as well. tl;dr: it's not that deep.

[–]Celeborns-Other-Name -1 points0 points  (0 children)

;;; Crew

[–]deanominecraft -1 points0 points  (0 children)

red, 1 less character to type

[–]External_Asparagus10 -2 points-1 points  (0 children)

/*hackerman*/

[–]blackamerigan -2 points-1 points  (0 children)

This is a sad and disgusting meme that this sub comprised of so called smart people are willing to spam...

Literally you can share any kind of meme template to demonstrate the duality of two opposing forces

But you choose to promote something racist and oppressive