Quote:Original post by Pxtl
They're the one person who won't have memory leaks, threading access violations, deadlocks, buffer-overrun vulnerabilities, uninitialised pointers, undecipherable code, etc.
I am sorry, which of the above issues are corrected by C++? Ooops. Fundamentally flawed argument.
Quote:
You are not a special and unique snowflake, and I'm sick of dealing with your code.
That's nice. Have a cookie. I am sure that someone deliberately went out of their way to write ugly code to annoy you. It couldn't possibly have anything to do with writing extremely portable code. I personally think that the code in GNU's getopt.h & getopt.c is really ugly, but you know what kicks? The fact that I can seamlessly recompile it in C or C++ on FreeBSD, Linux, MacOS X, and Windows and not have to rewrite my code for handling command line parameters.
Quote:
C is for hardware interfacing, legacy, and personal projects that nobody else needs to use. Otherwise, do not use it. And using C++ but only calling C functions is not a solution - its just as bad.
C is a tool, just like C++, or Java, C#, or even Visual Basic. Each has a place where they provide a better solution; to believe otherwise is to willingly wrap yourself in a cloak of ignorance.
Quote:
C++ is an overcomplex kludge that converts C into an OOP language. But its also the fastest popular OOP language, so it wins.
Umm okay, it may execute the fastest, but in terms of development time? This is why I have been using Microsoft .NET and Mono.NET more and more lately [as satan chuckles in the background]. One of my co-workers who happens to be a kernel developer for FreeBSD is planning to implement an image loader for the .NET framework as a kernel option to optimize the performance of .NET on one of our web servers.
Oh, did I mention that he programs primarily in C? I guess it must be that he agrees in using the right tool for the job.
Quote:
C is like goto. Its an unsafe anachronism that should be left to the hardware nuts.
C is like a hammer. Its not subtle, and it gets the job done. If you don't hit the nail squarely on the head then you are bound to screw up the job. If you don't like it get a nail gun or hire a professional.