Thread: Problem

  1. #1
    1337
    Join Date
    Jul 2008
    Posts
    135

    Problem

    C++

    Regarding the thread, I dint even explain what i meant and the moderator closed it. However, i would like to clarify something.

    I have heard that C is used for device drivers programming instead of C++. Why?

    In linux kernel, C is used instead of C++. Why?

    EDIT: http://advice.cio.com/esther_schindl...ds_why_c_sucks

    I would like to know about this too. Why he says that it sucks? What is the reason behind this.
    Last edited by valthyx; 11-12-2009 at 08:26 AM.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by valthyx
    In linux kernel, C is used instead of C++. Why?
    why linux kernel written in c

    Quote Originally Posted by valthyx
    EDIT: http://advice.cio.com/esther_schindl...ds_why_c_sucks

    I would like to know about this too. Why he says that it sucks? What is the reason behind this.
    I would like to know why did you not click on the links provided. What is your reason? Why?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    1337
    Join Date
    Jul 2008
    Posts
    135
    MM. Basically, i just want some other opinions from you guys here.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Sure, but if you want to know why the Linux kernel is mostly written in C, or why Linus Torvalds thinks C++ sucks, then the best source is the relevant FAQ and the actual quote from Linus Torvalds himself.

    As an analogy: would it make sense to ask us why a friend of yours sleeps at midnight everyday when you can ask him/her yourself?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    1337
    Join Date
    Jul 2008
    Posts
    135
    Kinda good analogy, but irrelevant a.k.a funny.

    OK, I have completed a C course/book. Now i would like to move on to programming device drivers and system programing for windows. Is there any tutorial from this site? I could not find it here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM