Thread: Visit from Bjarne Stroustroup

  1. #16
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Yarin View Post
    I also don't hardley use templates, it's just that everytime I need to use them there's always another way of doing it. Far from the most important feature.
    "Don't use templates" or "Don't write templates"?
    If you don't use templates, then that means you don't use any of the STL, which is one of the biggest features of C++.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    I also don't hardley use templates, it's just that everytime I need to use them there's always another way of doing it. Far from the most important feature.
    I find that difficult to believe. You mean you never write any code that uses templates or write inefficient and duplicated code?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Yarin View Post
    It's too early to say, I mean, how many C programmers do you think said the same thing about C++ when it first came out?
    The amount of advantages C++0x has over C++ is very little. The amount of totally new features C++ has that weren't in C is a lot higher. And still C is still widely used 25 years later... (not only with embedded devices)

    So, it may not die, but it certainly will take a lot of years for the industry to switch.
    Quote Originally Posted by Elysia View Post
    I find that difficult to believe. You mean you never write any code that uses templates or write inefficient and duplicated code?
    Copy-paste isn't inefficient and it won't take much longer to compile either. And there's a very good alternative to templates - using pointers.
    Last edited by maxorator; 11-10-2008 at 04:35 PM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by maxorator View Post
    The amount of advantages C++0x has over C++ is very little.
    Are you kidding me?
    C++0x has huge potential over C++03.
    R-value references, static assert, explicit conversion operators, interface requirements, variadic templates, lambda expressions...

    The amount of totally new features C++ has that weren't in C is a lot higher. And still C is still widely used 25 years later... (not only with embedded devices)
    Old habits die hard, I guess.

    So, it may not die, but it certainly will take a lot of years for the industry to switch.
    Mostly I would say, is the fault of lacking libraries and solutions. Microsoft loves to tie all those things into its dot-crap-net framework instead of MFC or other native solutions.

    Copy-paste isn't inefficient and it won't take much longer to compile either. And there's a very good alternative to templates - using pointers.
    And you call yourself a C++ programmer? :|
    Last edited by Elysia; 11-10-2008 at 05:07 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by cpjust View Post
    "Don't use templates" or "Don't write templates"?
    If you don't use templates, then that means you don't use any of the STL, which is one of the biggest features of C++.
    Okay, I misunderstood, so I use them, but I still wouldn't call it the most important feature.

  6. #21
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Of course, cpjust didn't call them the most important feature either. He said, "one of the most important," which is probably true.

  7. #22
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Elysia View Post
    And you call yourself a C++ programmer? :|
    Not really. I call myself a C programmer.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #23
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well yeah, that explains your anti-C++ approach with C instead...
    Don't back-talk templates... it's the best feature C++ has :/
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #24
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    This is exactly why I see so much "C+" code out there.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FunctionType visit and binary search trees
    By MRAB54 in forum C++ Programming
    Replies: 1
    Last Post: 05-11-2004, 05:20 AM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  3. Interview with Bjarne Stroustrup "C++ a joke"
    By novacain in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-31-2003, 11:55 PM
  4. Bjarne Stoustrup
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 09-05-2002, 06:22 PM