• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why? Why? Why?

 
Mike Gershman
Ranch Hand
Posts: 1272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read several questons like this
http://www.coderanch.com/t/398166/java/java/interface-Another-Complete-Reference about why certain Java language features are what they are and I recall that the authors of some other languages have published explanations for their design decisions.

Has James Gosling or Sun published such information?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of anything comprehensive. Some of the drivers were to run in small embedded devices and to use a C-like syntax to ease the transition from C to Java and to make life easier on the developer than C++ did. They were probably aware that the ease of writing compilers helped spread C (like a bad internet hoax you might believe) so they kept things easy for themselves, too.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the JLS explains a lot and so do the API docs. Problem is that many people never bother to read it (or anything really) and just shoot off questions when they find something doesn't work in Java like it does in some other language.

After all, Java looks similar to C++ so everything that works in C++ should work right?
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is that many people never bother to read it (or anything really) and just shoot off questions when they find something doesn't work in Java like it does in some other language.


I bet that at least a quarter of the questions in the Java forums (fora?) would never have been asked if the user had bothered to read the APIs and Sun's documentation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic