Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: Suggested method for returning a string from a C program? Date: Tue, 25 Mar 2025 16:16:23 -0000 (UTC) Organization: A noiseless patient Spider Lines: 27 Message-ID: <20250325091057.166@kylheku.com> References: <874izntt5t.fsf@nosuchdomain.example.com> <87ecyrs332.fsf@nosuchdomain.example.com> <20250320171505.221@kylheku.com> <8734f7rw7z.fsf@nosuchdomain.example.com> <87tt7mqk7w.fsf@nosuchdomain.example.com> <87cye9afl0.fsf@nosuchdomain.example.com> <871puoag2q.fsf@nosuchdomain.example.com> Injection-Date: Tue, 25 Mar 2025 17:16:24 +0100 (CET) Injection-Info: dont-email.me; posting-host="d3381b38f55d771d9a1d3766a5267560"; logging-data="3872721"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hxVVlpbR6cv0w0Lovz0RIFiAqKtHKd5A=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:AGKjnXuoX/0+Fscgrd1NSvZ404w= Bytes: 3057 On 2025-03-25, Muttley@DastardlyHQ.org wrote: > Listen sonny, in large projects in companies - ie not the toy code you work > on in your bedroom - different people will have checked out seperate modules > and be working on them at any one time. Splitting into files does make a big difference with centralized version control that requires you to maintain a lock on an object that you are modifying. It makes little difference with distributed versioning systems like git. You can catenate 10 .c files into a single one, and it would be just as easy to work on in parallel. However, git still has the concept of a file being one object. You can "git log" a single file, and that is very useful; If the file is a combination of what should be ten files, then it becomes less useful. I'm not suggesting people should combine files; it's a bad idea for multiple reasons. Just that you *can* pretty easily work concurrently on large files unless you're using a very outdated version control system. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca