News for hackers. Stuff that matters.
Re:How to Design Software Good by carlmr on Friday November 09, 2018 @04:10AM (#18413256)
>- I've seen very cool, popular, money making games that had terrible code (all in 1 C file for example).

Are you sure that wasn't an optimization to get "LTO" with a non-LTO linker?

Re:How to Design Software Good by Asooka on Friday November 09, 2018 @05:25AM (#18413536)
No, in that case you would #include all your .c files in one .c file and compile that for release, but would otherwise work in the usual manner. CMake actually has builtin support for doing just that.
Re:How to Design Software Good by carlmr on Friday November 09, 2018 @07:54AM (#18414008)
That would be a nicer way to do it, but it doesn't contradict what I said.
Re:How to Design Software Good by paulddraper on Sunday November 11, 2018 @03:05PM (#18428266)
Any halfway decent developer that wants single file optimization but doesn't want to author the source code in one file will do this.

See "Unity build".

Re:How to Design Software Good by koonsolo on Friday November 09, 2018 @05:58AM (#18413635)
I talked to the developer, and it was him who mentioned this, and he was not proud of that part ;).