[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
What percent of all open source code is comments/commented? Couldn't
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 17
Thread images: 4
File: anime question girl.jpg (50 KB, 736x724) Image search: [Google]
anime question girl.jpg
50 KB, 736x724
What percent of all open source code is comments/commented? Couldn't we save a tremendous amount of hard drive space by removing all the comments from code?
>>
Comments are discarded when compiled to binary. If someone has the source then chances are they're a dev and so the comments are useful to them.
>>
>>55201063
/thread
>>
>>55201030
You are retarded.
>>
File: Rin.png (331 KB, 1590x2160) Image search: [Google]
Rin.png
331 KB, 1590x2160
>>
>>55201063
About tree fiddy
>>
Stupid rinposter
>>
>>55201030
We would save a lot of space by converting 4 spaces to tabs.
>>
>>55201184
What the fuck did you just say?
>>
File: 12412345.png (165 KB, 317x292) Image search: [Google]
12412345.png
165 KB, 317x292
>>55201184
>>
>>55201196
When indenting code, some people use 4 spaces instead of a tab. 4 spaces is four characters whereas a tab is one character. Changing every usage of 4 spaces to 1 tab would save a lot of space.
>>
>>55201229
that would only save 3 bytes i will just delete an anime episode and save 10x that
>>
>>55201229
Source code size is negligible, and spaces ensure that the indentation will line up the same for everyone regardless of editor settings.
>>
File: 1448011769579.gif (2 MB, 249x238) Image search: [Google]
1448011769579.gif
2 MB, 249x238
>>55201184
>save space
>they both take up the same space
>>
>>55201274
Right. I'm not agreeing nor disagreeing with using tabs, just explaining why some think it is such a big deal. All things considered, source code files take up virtually no space when compared to the other shit needed to run a program, regardless of tabs vs. spaces, as they're simply text files.
>>
>>55201295
Tabs vs. spaces is a holy war I have no intention on weighing in on. Just explaining how some people see it.
>>
>>55201229
Yes, it would save half a GB for all source code ever written. 10MB after compression.
Thread replies: 17
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.