Page 1 of 14 12311 ... LastLast
Results 1 to 10 of 135

Thread: Why to Love/Hate C++

  1. #1
    Join Date
    Jan 2006
    Beans
    961

    Why to Love/Hate C++

    first of all .. posting; you're doing it wrong

    .. you do not say "a ton of errors" and nothing else .. ever ..

    when it comes to compilers usually the first couple of lines are the most important, and the rest are followup errors caused by that initial error .....

    but ok, try g++ instead of gcc

    edit:
    oh, and try something sane .. C++ is evil vile crap {situation needed? ..see http://yosefk.com/c++fqa/ }

    * C
    * Python
    * Common Lisp
    * Ruby

    ..are all good and sane languages
    Last edited by lnostdal; April 24th, 2008 at 06:59 AM.

  2. #2
    Join Date
    Sep 2007
    Location
    California
    Beans
    64
    Distro
    Lubuntu

    Re: Why does this compile in Windows, but not Linux???

    Quote Originally Posted by lnostdal View Post
    first of all .. posting; you're doing it wrong

    .. you do not say "a ton of errors" and nothing else .. ever ..

    when it comes to compilers usually the first couple of lines are the most important, and the rest are followup errors caused by that initial error .....

    but ok, try g++ instead of gcc

    edit:
    oh, and try something sane .. C++ is evil wile crap {situation needed? ..see http://yosefk.com/c++fqa/ }

    * C
    * Python
    * Common Lisp
    * Ruby

    ..are all good and sane languages
    +10
    Nathan

  3. #3
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    Re: Why does this compile in Windows, but not Linux???

    Quote Originally Posted by lnostdal View Post
    edit:
    oh, and try something sane .. C++ is evil vile crap {situation needed? ..see http://yosefk.com/c++fqa/ }

    * C
    * Python
    * Common Lisp
    * Ruby

    ..are all good and sane languages
    C++ is a sane language. Flame-baits are not welcome.

  4. #4
    Join Date
    Jan 2006
    Beans
    961

    Re: Why does this compile in Windows, but not Linux???

    Quote Originally Posted by tseliot View Post
    C++ is a sane language. Flame-baits are not welcome.
    Well, then we disagree. Flame if you want; I do not care. Heck -- I won't even respond.

    edit: maybe you wouldn't care to comment if i said this "vs." a language like, say, any other .. think about it
    Last edited by Sef; April 26th, 2008 at 08:43 AM.

  5. #5
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Why does this compile in Windows, but not Linux???

    Hmmm... comparing Brain**** to C++ is stretching it.

    C++ is whatever you want it to be. If you want to be insane with C++, it will oblige without question! Frankly, I have little patience with it, but it is undoubtedly a very powerful language in the right hands, dangerous in the wrong hands.

  6. #6
    Join Date
    Jan 2006
    Beans
    961

    Re: Why does this compile in Windows, but not Linux???

    Quote Originally Posted by samjh View Post
    Hmmm... comparing Brain**** to C++ is stretching it.

    C++ is whatever you want it to be.
    err, no .. c++ is like fighting windmills .. they never back down and do what i want them to do .. now why would i do such a crazy thing?

    pffft..you'll never get it anyway .. and i'll turn out be a smug weenie no matter what i say .. so it's up to you and only you - like it was up to me back when i was confronted and determined to "prove them wrong"

    this reminds me of this btw.: "True, only the creatively intelligent can prosper in the Lisp world."
    from: http://wiki.alu.org/Pascal_Costanza%27s_Road_To_Lisp .. from a collection of writings found here: http://wiki.alu.org/The_Road_to_Lisp_Survey

    here; remove the FOR keyword from c++ .. then try to implement it using templates or whatever .. (note; it must be _clean_, _sane_ and work in all situations .. and the code must be beautiful and simple) .. see how the language isn't what you want it to be?

    here i do this in lisp, in ..uh.. like 1 effective line of code or so?

    Code:
    (defmacro for ((var initial-value pred update-value) &body body)
      `(do ((,var ,initial-value ,update-value)) ((not ,pred))
        ,@body))
    ..now, this is just a silly example (written in 2.5 seconds, on the go, just now) .. heck, maybe you're able to pull this off in c++ using the macro preprocessor or whatever .. but just add a tiiiny bit more complexity and you'd be stuck

    .. i do these kinds of things _all day long_ in lisp without even _thinking_ about it .. yes, it is (or could be, in your case) that easy; it is natural and "safe" .. it's not a "hack" ..

    i add new constructs .. new keywords .. extend the language .. it's a programmable programming language .. if lisp lacked OOP support? .. no problem, i'd just do this:

    Code:
    (defmacro defclass (..)
      ..)
    ..then i'd have a new keyword DEFCLASS that i could use to define classes .. but lisp already has _excellent_ OOP support via CLOS, which is included in Common Lisp .. it is way way beyond anything found in C++

    "I invented the term Object-Oriented, and I can tell you I did not have C++ in mind." - (Alan Kay)

    it can be whatever i want, and c++ can never come close to this .. at .. all

    edit: oh, and this is compiled to native optimized machine language btw. .. SBCL is known to generate machine code that runs faster than C in some cases

    Quote Originally Posted by samjh
    If you want to be insane with C++, it will oblige without question!
    oh, if this was true my views would maybe be somewhat different .. but this isn't true and never will be, so never mind

    Quote Originally Posted by samjh
    Frankly, I have little patience with it,
    this should ring a bell or two; it means you have good taste

    Quote Originally Posted by samjh
    but it is undoubtedly a very powerful language in the right hands, dangerous in the wrong hands.
    power and danger don't go together because if it really was powerful it would be possible to implement a "safe layer" on "top of it" .. but it isn't powerful, so this isn't possible ..

    you are stuck with something that always "leaks" -- you will always be patching the holes that show up over and over again from the bottom layers of your application/library-code to the top .. you can never fix something "at the bottom" and be done with it once and for all

    power is _worthless_ if you _cannot_ bind it down, control it and bend it to your will .. c++ is like the atom bomb concept of "power" .. it's just a huge release of _crap_ as it unexpectedly blows up in your face over and over again without any way of fixing the "internal leak" (whatever it might be; these leaks show up in other languages all the time ofc., with "leaks" i mean "general programming problems", but these languages provide the power to fix the leak at the core!) once and for all

    .. if you've had enough of my ranting then simply ignore me and i won't "bother you" (this is how some of you people work, ain't it?) any more ..
    Last edited by lnostdal; April 25th, 2008 at 01:11 AM.

  7. #7
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Why does this compile in Windows, but not Linux???

    Quote Originally Posted by lnostdal View Post
    err, no .. c++ is like fighting windmills .. they never back down and do what i want them to do .. now why would i do such a crazy thing?
    Obviously C++ doesn't work for you, but it works for a lot of other people.

    ..you'll never get it anyway .. and i'll turn out be a smug weenie no matter what i say .. so it's up to you and only you - like it was up to me back when i was confronted and determined to "prove them wrong"
    Get what?

    Who are "they"?

    Confronted?

    This is one of the strangest replies I have seen around here.

    here; remove the FOR keyword from c++ .. then try to implement it using templates or whatever .. (note; it must be _clean_, _sane_ and work in all situations .. and the code must be beautiful and simple) .. see how the language isn't what you want it to be?
    If you remove FOR from C++, then you no longer have C++. It's something like C++ without FOR.

    Seriously you use the tools that are available. C++ has FOR, so if you need FOR, you use it. Why do something crazy like removing FOR from C++?

    power and danger don't go together because if it really was powerful it would be possible to implement a "safe layer" on "top of it" .. but it isn't powerful, so this isn't possible ..
    C++ is not a safe language, but some people can use it with relative safety.

    Not everyone can fly a fighter jet, drive a top-fuel drag racer, etc. They are not "safe", in fact they are quite dangerous. But they are very powerful machines.

    you are stuck with something that always "leaks" -- you will always be patching the holes that show up over and over again from the bottom layers of your application/library-code to the top .. you can never fix something "at the bottom" and be done with it once and for all
    Unfortunately, this is true. But it is true for any programming language if you use it badly, or are not mentally suited for that language.

    Obviously C++ doesn't jive well with your way of thinking. Nothing wrong with that. Some people can handle a tool better than another. Lisp is very good for you, so that's what you like, while C++ doesn't work for you at all, it seems.

    As I said, I have little patience with C++. But I won't put it down as something absolutely worthless as you imply. It is far too presumptuous to think that the many C++ programmers in the world are all idiots or crazy because they like C++.

  8. #8
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Why to Love/Hate C++

    Thread Split

    Enjoy.

  9. #9
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Why to Love/Hate C++

    Quote Originally Posted by LaRoza View Post
    Thread Split

    Enjoy.
    That's like handing someone a stick of dynamite and some matches, then saying, "Enjoy!".


  10. #10
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Why to Love/Hate C++

    Quote Originally Posted by samjh View Post
    That's like handing someone a stick of dynamite and some matches, then saying, "Enjoy!".

    Yeah? So?

    This thread is in the Holy Wars of Programming thread (link in sticky)

    I just have on thing to say about C++ (it being my first language, I feel I have a right to say this):


Page 1 of 14 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •