[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 we save


Thread replies: 17
Thread images: 4

File: anime question girl.jpg (50KB, 736x724px) Image search: [Google] [Yandex] [Bing]
anime question girl.jpg
50KB, 736x724px
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 (331KB, 1590x2160px) Image search: [Google] [Yandex] [Bing]
Rin.png
331KB, 1590x2160px
>>
>>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 (165KB, 317x292px) Image search: [Google] [Yandex] [Bing]
12412345.png
165KB, 317x292px
>>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 (2MB, 249x238px) Image search: [Google] [Yandex] [Bing]
1448011769579.gif
2MB, 249x238px
>>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
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK