Thread: About time Java gave in...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I don't consider C++ and C much different in their ability to expose the type of fundamental knowledge required to make a good degree in CS. In a tutoring environment, the STL can be completely ignored and the only thing distinguishing both languages will be their semantics. I would place both C++ and C and equally valuable tools for learning programming. Except...

    Code:
    char *str = "A string.";
    C may have an edge over C++ because it more quickly and easily exposes the architectural weakness of our computers. Weaknesses that we must learn to live with. Dangerous stuff like the fragment above, open up many opportunities for a deeper understanding of how our computer languages work (*). But C++ isn't far behind.

    In addition, what makes me think that I would prefer a CS course based on C is the simplicity of the language, that allows for a larger part of the learning to be focused on the scientific aspect of programming which is the core of a CS course, rather than the engineering aspect which is represented by programming languages and their specifications. C is just easier to learn and understand. The language quickly gets off the way. It is however, like C++, an hard language to master. But that concerns only the task of coding functional and well-formed programs. Which is, generally speaking, not of interest to a CS course.

    ---
    (*) to clarify, code like the above better represent the price we pay for abstraction. It's not really teaching us about how our computers work, but why higher level computer languages come with a cost. That cost is however not a failure of the computer language, but a result of weaknesses in computer architecture that force the hand of the creators of computer languages.
    Last edited by Mario F.; 10-07-2016 at 05:29 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 03-08-2012, 06:12 PM
  2. my teacher gave it to us....
    By jacek in forum C Programming
    Replies: 3
    Last Post: 01-11-2010, 12:17 PM
  3. Java for real-time applications
    By zacs7 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-26-2008, 06:34 AM
  4. gave it shot...it gave me an error!
    By LonelyPlanderWa in forum C Programming
    Replies: 3
    Last Post: 07-12-2002, 01:26 AM
  5. Please Heelp me ... I gave up
    By NANO in forum C++ Programming
    Replies: 14
    Last Post: 04-21-2002, 08:14 PM

Tags for this Thread