3 ms·
> I can't think of anything that I will like to make in C/C++ since it is so low-level. This is pretty funny. When I started in this business decades ago, ever
by lutusp 12y ago
> I can't think of anything that I will like to make in C/C++ since it is so low-level.
This is pretty funny. When I started in this business decades ago, everyone programmed in assembly language -- we had no choice. When C came along, people thought they had been transported to heaven. A compiler that worked on more than one platform! Control structures that made sense! I/O that continued to work regardless of platform!
I wrote my best-known program, Apple Writer (http://en.wikipedia.org/wiki/Apple_Writer http://en.wikipedia.org/wiki/Apple_Writer), in assembly. It became a best seller primarily because it was so fast compared to the alternatives, and it had such a small memory footprint in systems that had a tiny amount of memory. The entry-model Apple II had 4 kilobytes of RAM. For a few thousand dollars extra, you could get a total of 16 kilobytes. Wow -- sixteen kilobytes!
Then C++ came along, then the STL, then more compilers for more platforms. The idea of only having to write a program once for multiple platforms was difficult to imagine until I saw it for the first time.
> C/C++ is different, I'm afraid of pointers.
Pointers is one issue, but not a very important one -- I have no doubt that you can figure them out. You also need to do your own memory management. C++ classes have destructors so you can clean up after yourself. In spite of this, even the best programmers have programs that leak memory -- allocating and freeing memory can be very tricky.
> How do I learn C and C++ when I love high-level languages?
But C and C++ are high-level languages. How times change.