MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/gpj1sk/analyzing_the_simplest_c_program/frq1npf/?context=3
r/cpp • u/OneRaynyDay • May 24 '20
37 comments sorted by
View all comments
0
it is the simplest C++ program but it also does nothing
20 u/ShakaUVM i+++ ++i+i[arr] May 24 '20 it is the simplest C++ program but it also does nothingNot true. It does nothing successfully.It's like the UNIX true command. 5 u/chugga_fan May 24 '20 Said command has like, a thousand or two lines of code, surprisingly. 1 u/conflicted_panda May 25 '20 Are you counting includes? Without them GNU true is about 70, as far as I see.And true on old school unixes was/is 0 bytes, I hear. 2 u/chugga_fan May 25 '20 Like 1/3rd of the program is in other files, even still, 78 lines just to return EXIT_SUCCESS is a lot. 2 u/conflicted_panda May 25 '20 It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd. 1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
20
Not true. It does nothing successfully.
It's like the UNIX true command.
5 u/chugga_fan May 24 '20 Said command has like, a thousand or two lines of code, surprisingly. 1 u/conflicted_panda May 25 '20 Are you counting includes? Without them GNU true is about 70, as far as I see.And true on old school unixes was/is 0 bytes, I hear. 2 u/chugga_fan May 25 '20 Like 1/3rd of the program is in other files, even still, 78 lines just to return EXIT_SUCCESS is a lot. 2 u/conflicted_panda May 25 '20 It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd. 1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
5
Said command has like, a thousand or two lines of code, surprisingly.
1 u/conflicted_panda May 25 '20 Are you counting includes? Without them GNU true is about 70, as far as I see.And true on old school unixes was/is 0 bytes, I hear. 2 u/chugga_fan May 25 '20 Like 1/3rd of the program is in other files, even still, 78 lines just to return EXIT_SUCCESS is a lot. 2 u/conflicted_panda May 25 '20 It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd. 1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
1
Are you counting includes? Without them GNU true is about 70, as far as I see.
And true on old school unixes was/is 0 bytes, I hear.
2 u/chugga_fan May 25 '20 Like 1/3rd of the program is in other files, even still, 78 lines just to return EXIT_SUCCESS is a lot. 2 u/conflicted_panda May 25 '20 It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd. 1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
2
Like 1/3rd of the program is in other files, even still, 78 lines just to return EXIT_SUCCESS is a lot.
2 u/conflicted_panda May 25 '20 It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd. 1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
It also handles --help/--version (along with localization, apparently). And I honestly don't think that trading off 78 lines of code for, err, uniformity of interface of your utilities is that absurd.
1 u/[deleted] Jun 18 '20 I don't understand anything in this thread, which book to read?
I don't understand anything in this thread, which book to read?
0
u/vickoza May 24 '20
it is the simplest C++ program but it also does nothing