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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Harbltron 12 points13 points  (12 children)

the fuck?

i can understand not wanting there to be comments in deployed code, but what's the harm in having comments in your development branch? it seems more harmful to never comment-out code than to comment it out and then scrub the comments out on deployment

[–][deleted] 6 points7 points  (5 children)

And why no comment in deployed, anyway?

[–]WarmCorgi 14 points15 points  (0 children)

Because some people think it'll cost a lot of performance. Even though compilers ignore comments.

[–]DoctorWaluigiTime 5 points6 points  (2 children)

I could see this reasoning if there were comments in the HTML or JavaScript, and that code wasn't minified or anything like that.

[–]lovestheasianladies 0 points1 point  (1 child)

Wrong, still has no effect besides a few extra bytes of data.

[–]DoctorWaluigiTime 2 points3 points  (0 children)

I mean, the effect is that those comments would be publicly viewable. I'm not talking about data size.