Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sonrisa14436yOriginally I didn't do it, but pep8 threw a billion error saying: HEY, PUT A SPACE BEFORE YOUR COMMENT, PLSSSS, and now I'm used to it..
-
@marci010101 you can also fix that by not commenting. Comments are a waste of time anyways *stay woke*
-
refex2566yI use to put the extra space only if it is a real comment. In case of commented code I tend to avoid it, make the difference immediately recognizable
-
I actually used to do this and didn't even know it wasn't preferance before I worked at a time
-
pmso4176y/*
*What about the multi-line comment?
*When I comment a method, I do this. But code I comment like down:
*/
//return 0; -
devios157016ySo much YES. The // is not part of the word!
If that makes you cringe though I work on a codebase where the author would literally only use a space when syntactically necessary. His for loops looked like this:
for(var i=0;i<items.length;i++)//Loop through items
It makes me so angry when they don't...
joke/meme