Thread: Another esbo thread hijack trying to start a flame war

  1. #46
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by esbo
    Anyay this discussion arose when I gave an example in C but was informed C++ was required, however C is a part of C++ is it not??
    As I noted, C is not quite a subset of C++. The C++ standard refers to the 1990 edition of the C standard in several areas, including the part of the C++ standard library inherited from C, but nonetheless incompatibilities remain. The 1999 edition of the C standard eliminates some of these incompatibilities while introducing others.

    Quote Originally Posted by esbo
    Further more if you also require the code to be highly efficient you are probably going to use C. You can also use assembler, but C is not that far off assember anyway.
    C++ can be used in such cases. The C++ standard library is designed to be efficient, and it is possible to dip down into assembler if necessary, or at least write some speed critical portions of code in a C style if that proves to be more efficient in that case.
    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

  2. #47
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by esbo View Post
    Yes I believe vector is apelt a-r-r-a-y in C, one less letter, so it is more eficient
    Also the term actually describes what it is rather than use a word which describes something totally different.
    In the old days a fire was called a fire, now it's called a spoon, thats progress for you.
    No problems with that part from a few burnt lips.
    Careful there. An array is not a vector or vice versa.
    A vector is a dynamic array that will automatically expand (reallocate) when there is not enough room. Due to this, there may be some overhead.
    If you want to compare C to C++, compare arrays to std::tr1::array instead.

    Quote Originally Posted by esbo View Post
    Nore are Microsoft apparently
    As you and I have said before you can write large unmaintainable and unreliable software in any language. Such problems are generated by the programmers, not the language.
    Further more if you also require the code to be highly efficient you are probably going to use C. You can also use assembler, but C is not that far off assember anyway.
    Anyone can write unmaintainable and poor code in any language, true, but the idea is that newer languages give you new and better tools to work with so you can avoid mistakes and write better code.
    Well-written C++ code is more maintainable than equivalent C code. That's because in C there were problems, and to those problems solutions were invented and were added to C++. That is called evolution.
    And as for the speed question, you are dead wrong. Well-written C++ code can match well-written C code in speed, or even outperform it, just as C can outperform C++ in certain situations.
    Read: C is not necessarily faster than C++. They both have advantages and disadvantages and are about equal in speed.
    Saying anything else is just not true.

    So why is it that you dislike C++ so much, again?
    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. #48
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    This thread being a waste of space and time is one thing. What's worse is that I find myself actually wasting energy on the big question... who's more pathetic, esbo (Mr. C) or Elysia (Ms. C++)? Why don't you two get married, you seem the perfect fit.

    Anyway, both of you do not seem to understand that a programming language is just a tool to solve a problem. And which tool the programmer uses is largely a matter of his personal preference and experience. A C programmer comfortable with C will obviously be biased towards implementing his solution in C, and vice versa for a C++ programmer.

    Both of you also seem to forget that there are other programming languages out there. Especially when it comes to the field of scientific computing there is large bias towards Fortran (and there may even be great hostility towards C/C++).

  4. #49
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Such threads get people talking, which is good! MWAAAHAAA, you spoilsport...
    Currently research OpenGL

  5. #50
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by MWAAAHAAA View Post
    This thread being a waste of space and time is one thing. What's worse is that I find myself actually wasting energy on the big question... who's more pathetic, esbo (Mr. C) or Elysia (Ms. C++)? Why don't you two get married, you seem the perfect fit.
    Presenting facts or being biased is one thing, but being rude is another. I should report you and your post.
    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.

  6. #51
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Relax, you ain't pathetic, nor is esbo xP You both have rights to have your meanings/thoughts/whatever getting people banned is never the right way xP
    Currently research OpenGL

  7. #52
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Presenting facts or being biased is one thing, but being rude is another. I should report you and your post.
    ^_^

    He is just jealous of all the attention your giving the OP.

    Soma

  8. #53
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    >> Presenting facts or being biased is one thing, but being rude is another. I should report you and your post

    A report emails the entire moderating team. Your feelings frankly aren't a reason to use it. I only filed one report in the three years I've been here and that was because someone was rather immaturely talking about penises and vaginas, and apparently trying to sell something. That's the type of crap you report.

  9. #54
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    The thing esbo doesn't realise is that his grief isn't really with C++, it's really with OOP. He simply doesn't understand the usefulness of OOP.

    esbo's also misguided into thinking that his public display of clulessness will instead somehow make others say "OMFG you're right I've been using C++ for so long that I was blind to the fact that it is a waste of time when it can all be done in C!".
    Wake up - those that use C++ have been doing so because they've discovered the bennefits of it, and OOP.

    Next flame war I'm asking up front what the initiator expects to achieve.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  10. #55
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by cpjust View Post
    OK, if you want an example of how C++ can kick C's butt, here you go:
    Which is faster, C's qsort() function or C++'s std::sort() function?
    Since std::sort() is a template which can take advantage of inlining, the speed can be substantially faster than qsort().
    http://www.tilander.org/aurora/2007/...and-qsort.html

    Well as I would not be using a fuction at all I think you would find my sort writtenn in C would be faster.
    It's a bit of a cheat if you write bad code for me and then test how it performs

  11. #56
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by iMalc View Post
    The thing esbo doesn't realise is that his grief isn't really with C++, it's really with OOP. He simply doesn't understand the usefulness of OOP.

    esbo's also misguided into thinking that his public display of clulessness will instead somehow make others say "OMFG you're right I've been using C++ for so long that I was blind to the fact that it is a waste of time when it can all be done in C!".
    Wake up - those that use C++ have been doing so because they've discovered the bennefits of it, and OOP.

    Next flame war I'm asking up front what the initiator expects to achieve.

    What you don't realise, is that I know how to program end of story.
    I don't need to learn about OOP because I already know how to write good programs.
    I don't need mumbo jumbo, I can get on and write programs without that.
    I mean it is not as if writing good maintainable programs is difficult in the first place.

    Afterall if you struggle with a book on C good help you when you pick up a book on OOP.
    Basiclally if you need to be taught how to program, you are probably not suited to programming.

  12. #57
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Quote Originally Posted by esbo
    Basiclally if you need to be taught how to program, you are probably not suited to programming.
    Yes, because everybody is born with all programming knowledge...

  13. #58
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Prehaps the irony of the whole thing is that I would bet you a pound to a penny that my (editor) program, written in C, employed more object oriented techinques than the one which was being written in 'object orientated' C++.
    There is a lesson in there somewhere I think!!

  14. #59
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by kermit View Post
    Yes, because everybody is born with all programming knowledge...
    Obviously not, but as in everything, people has a range of abilities from being naturally
    talanted at something to being complete muppets and all shades inbetween.


    After all programming is just followig simple rules, but if mess the rules up you will end up with a bad program
    whatever language you use.
    Last edited by esbo; 01-25-2009 at 08:04 PM.

  15. #60
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    Quote Originally Posted by esbo
    Basically if you need to be taught how to program, you are probably not suited to programming.
    that's aburd. how would you learn anything without documentation? blindly stabbing away in the dark?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 11:34 PM
  2. Replies: 2
    Last Post: 04-12-2004, 01:37 AM
  3. Closing thread handles from within
    By Sang-drax in forum Windows Programming
    Replies: 6
    Last Post: 09-26-2003, 12:18 PM
  4. How to make a thread sleep or std::recv timeout?
    By BrianK in forum Linux Programming
    Replies: 3
    Last Post: 02-26-2003, 10:27 PM
  5. Multi-Thread Programming
    By drdroid in forum C++ Programming
    Replies: 6
    Last Post: 04-04-2002, 02:53 PM