3 ms·
As James Gosling put it, "Java is C++ without the guns, clubs and knives." The language was familiar to most existing programmers, but solved a host of problems
by jfengel 6y ago
As James Gosling put it, "Java is C++ without the guns, clubs and knives." The language was familiar to most existing programmers, but solved a host of problems that could be real time sinks.
Garbage collection was the most prominent. Prematurely freeing memory leads to failures that can crop up only long, long after the actual error, often at random. You just get crap stuck in your memory with no idea who put it there, or even when, and you couldn't protect yourself from it.
Moore's Law meant that we could begin to afford the overhead in time and memory, while saving developers untold hours. I watched development come to a complete halt because a bug simply could not be solved.
In most environments, C programs wouldn't even be able to give you a stack trace. All you got was "Segmentation violation -- core dumped". The first time I saw a null pointer exception with a stack trace, I wept.
There were a million other good things about it, a lot of which have been adopted or made obsolete. But the memory management alone made it absolutely obvious, especially in fast-moving development environments where getting code out the door was more important than eking out the last drop of performance.