Visit from Bjarne Stroustroup

This is a discussion on Visit from Bjarne Stroustroup within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Originally Posted by Yarin I also don't hardley use templates, it's just that everytime I need to use them there's ...

  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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,612
    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 03:35 PM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #19
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,612
    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 04: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
    1,627
    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.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  6. #21
    Registered User
    Join Date
    Jan 2005
    Posts
    7,318
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,612
    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

Page 2 of 2 FirstFirst 12
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, 09: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, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21