[GoLUG] Writing an internet server (was: Mailing list, long term.)
Steve Litt
slitt at 444domains.com
Wed Aug 20 18:15:27 EDT 2025
On Wed, 20 Aug 2025 09:18:10 +0100 (GMT+01:00)
kc-golug at chadwicks.me.uk wrote:
> 19 Aug 2025 22:03:52 Barry Fishman <barry at ecubist.org>:
> True to some extent but most of the issues are due to C/C++.
Please don't put C and C++ in the same category. C is a very nice
language, with a minimal instruction set, that a *careful* programmer
can use to produce just about anything. If you initialize variables and
pointers, use modern things like strncpy() instead of the barbaric
strcpy(), find a way to build in a parity between malloc()
instances and their associated free(), use Valgrind to test for
memory leaks and the like, and use -Wall and kill every single warning,
things can usually turn out pretty well in C.
C++ is a botched attempt to bring OOP (which is currently going out of
style) to C by coathangering in a bunch of junk with an incompatible
syntax. If you like OOP, what's wrong with Java or Free Pascal, both of
which have sane use of OOP.
C = great language
C++ = trials and tribulations.
I did C++ professionally for most of the 1990's. My C++ code was awful.
One could say I just didn't learn my craft, but there's an awful lot of
garbage C++ out there, and I'm not sure anyone agrees what constitutes
good C++.
SteveT
Steve Litt
Spring 2023 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
More information about the GoLUG
mailing list