Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8516 > unrolled thread

Why use C++?

Started byMiro <nickbergeronsemail@gmail.com>
First post2011-08-06 14:00 -0700
Last post2011-08-07 14:55 +0000
Articles 6 on this page of 86 — 25 participants

Back to article view | Back to comp.lang.c++


Contents

  Why use C++? Miro <nickbergeronsemail@gmail.com> - 2011-08-06 14:00 -0700
    Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-06 22:09 +0100
      Re: Why use C++? Stuart Redmann <DerTopper@web.de> - 2011-08-10 00:39 -0700
        Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-10 09:59 +0100
          Re: Why use C++? Stuart Redmann <DerTopper@web.de> - 2011-08-10 07:09 -0700
            Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-10 17:22 +0100
            Re: Why use C++? Niklas Holsti <niklas.holsti@tidorum.invalid> - 2011-08-10 22:05 +0300
              Re: Why use C++? "Randy Brukardt" <randy@rrsoftware.com> - 2011-08-10 17:37 -0500
                Re: Why use C++? Ludovic Brenta <ludovic@ludovic-brenta.org> - 2011-08-11 00:49 +0200
                  Re: Why use C++? "Randy Brukardt" <randy@rrsoftware.com> - 2011-08-11 23:54 -0500
                Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-11 09:54 +0200
                  Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-11 11:13 +0200
                    Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-11 13:43 +0200
                    Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-11 17:09 +0200
                      Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-12 10:32 +0200
                        Re: Why use C++? Hyman Rosen <hyrosen@mail.com> - 2011-08-12 09:15 -0400
                          Re: Why use C++? "Randy Brukardt" <randy@rrsoftware.com> - 2011-08-12 17:09 -0500
                        Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-12 19:20 +0200
                          Re: Why use C++? Ludovic Brenta <ludovic@ludovic-brenta.org> - 2011-08-12 23:22 +0200
                            Re: Why use C++? Ludovic Brenta <ludovic@ludovic-brenta.org> - 2011-08-16 06:06 -0700
                          Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-13 11:37 +0200
                          Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-13 12:27 +0200
                            Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-15 13:38 +0200
                          Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-13 13:02 +0200
                      Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-12 11:21 +0200
                        Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-12 16:30 +0200
                          Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-12 22:05 +0200
                            Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-13 11:15 +0200
                              Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-13 21:29 +1200
                                Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-13 11:52 +0200
                                  Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-13 23:10 +1200
                                    Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-13 13:46 +0200
                                      Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-14 08:30 +1200
                                    Re: Why use C++? Brian Drummond <brian@shapes.demon.co.uk> - 2011-08-13 11:54 +0000
                                      Re: Why use C++? Simon Wright <simon@pushface.org> - 2011-08-13 14:12 +0100
                                        Re: Why use C++? Brian Drummond <brian@shapes.demon.co.uk> - 2011-08-14 11:01 +0000
                                  Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-14 08:46 +0200
                                  Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-14 08:51 +0200
                              Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-14 09:29 +0200
                              Re: Why use C++? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-16 01:18 -0700
                                Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-16 10:47 +0200
                                  Re: Why use C++? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-16 02:52 -0700
                                    Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-16 12:39 +0200
                                  Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-16 12:23 +0200
                                    Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-16 12:58 +0200
                                      Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-16 13:44 +0200
                                      Re: Why use C++? Bill Findlay <yaldnif.w@blueyonder.co.uk> - 2011-08-16 15:51 +0100
                                        Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-16 21:13 +0200
                                          Re: Why use C++? Bill Findlay <yaldnif.w@blueyonder.co.uk> - 2011-08-16 20:23 +0100
                  Re: Why use C++? "Randy Brukardt" <randy@rrsoftware.com> - 2011-08-12 00:02 -0500
                    Re: Why use C++? Robert Wessel <robertwessel2@yahoo.com> - 2011-08-12 00:16 -0500
                      Re: Why use C++? Adam Beneschan <adam@irvine.com> - 2011-08-12 09:39 -0700
                    Re: Why use C++? Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-12 01:51 -0500
                      Re: Why use C++? Georg Bauhaus <rm.dash-bauhaus@futureapps.de> - 2011-08-12 09:41 +0200
                    Re: Why use C++? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-08-12 11:40 +0200
                  Re: Why use C++? Stuart Redmann <DerTopper@web.de> - 2011-08-12 04:48 -0700
                    Re: Why use C++? "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> - 2011-08-12 15:12 +0200
                      Re: Why use C++? Stuart Redmann <DerTopper@web.de> - 2011-08-12 08:50 -0700
                        Re: Why use C++? Bill Findlay <yaldnif.w@blueyonder.co.uk> - 2011-08-12 18:02 +0100
                        Re: Why use C++? "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> - 2011-08-15 14:59 +0200
                  Re: Why use C++? Louisa <louisa.hutch@gmail.com> - 2011-08-18 06:39 -0700
            Re: Why use C++? Colin Paul Gloster <Colin_Paul_Gloster@ACM.org> - 2011-08-11 10:02 +0000
        Re: Why use C++? Dombo <dombo@disposable.invalid> - 2011-08-11 20:20 +0200
          Re: Why use C++? Lynn McGuire <lmc@winsim.com> - 2011-08-11 14:50 -0500
          Re: Why use C++? Dombo <dombo@disposable.invalid> - 2011-08-12 19:22 +0200
      Re: Why use C++? Miro <nickbergeronsemail@gmail.com> - 2011-08-13 08:37 -0700
        Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-14 08:38 +1200
          Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-14 10:41 +1200
            Re: Why use C++? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-14 07:26 +0000
              Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-14 20:18 +1200
                Re: Why use C++? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-14 09:00 +0000
          Re: Why use C++? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-16 02:10 -0700
            Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-16 21:25 +1200
              Re: Why use C++? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-16 02:54 -0700
                Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-16 22:04 +1200
    Re: Why use C++? Ian Collins <ian-news@hotmail.com> - 2011-08-07 09:10 +1200
      Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-06 22:13 +0100
        Re: Why use C++? Juha Nieminen <nospam@thanks.invalid> - 2011-08-07 09:09 +0000
          Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-07 12:37 +0100
            Re: Why use C++? Juha Nieminen <nospam@thanks.invalid> - 2011-08-07 14:52 +0000
              Re: Why use C++? "Paul" <pchristor@yahoo.co.uk> - 2011-08-07 20:21 +0100
    Re: Why use C++? Lynn McGuire <lmc@winsim.com> - 2011-08-06 16:29 -0500
    Re: Why use C++? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-07 09:35 +0000
      Re: Why use C++? "crea" <no@invalid.com> - 2011-08-07 13:40 +0100
    Re: Why use C++? Dombo <dombo@disposable.invalid> - 2011-08-07 15:12 +0200
      Re: Why use C++? Juha Nieminen <nospam@thanks.invalid> - 2011-08-07 14:55 +0000

Page 5 of 5 — ← Prev page 1 2 3 4 [5]


#8554

From"Paul" <pchristor@yahoo.co.uk>
Date2011-08-07 20:21 +0100
Message-ID<j1moj8$ig9$1@adenine.netfront.net>
In reply to#8537
"Juha Nieminen" <nospam@thanks.invalid> wrote in message 
news:4e3ea6a2$0$4351$7b1e8fa0@news.nbl.fi...
> Paul <pchristor@yahoo.co.uk> wrote:
>>>  Then perhaps you could explain to us what a filter is and why what he
>>> did does not qualify as such.
>>
>> It depends on the micronity
>
>  Why do you throw claims but then don't want to explain yourself?

Just felt like winding up Ian Collins a little bit. Things were getting a 
bit boring :) 


--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---

[toc] | [prev] | [next] | [standalone]


#8521

FromLynn McGuire <lmc@winsim.com>
Date2011-08-06 16:29 -0500
Message-ID<j1kbnn$72p$1@dont-email.me>
In reply to#8516
> I've made the title too provocative. What I mean is, why use C++ for
> small (>  1000 lines ) coding jobs?
> It doesn't make much sense to me as...
>
> C++ syntax requires a lot more typing, debugging and memory,
> Compilation time can be irksome,
> C++ is devoid of the plethora of features you find on Python, Ruby or
> our dear Swiss Army Chainsaw.
>
> Don't get me wrong, I don't dislike C++, nor am I trying to rile up
> the great gurus among us, however, I fail to see a practical reason to
> use this language much as I go about my hacking life.
> I understand that it compiles directly into binary and can be from
> there run without an interpreter, but that seems a small price to pay
> for a five line ( in good practice ) hello world.

Because I can declare strongly typed variables anywhere
in the code that I want to.  And, function prototypes
are required, not suggested.

Lynn

[toc] | [prev] | [next] | [standalone]


#8532

FromJorgen Grahn <grahn+nntp@snipabacken.se>
Date2011-08-07 09:35 +0000
Message-ID<slrnj3sn2j.gtj.grahn+nntp@frailea.sa.invalid>
In reply to#8516
On Sat, 2011-08-06, Miro wrote:
> I've made the title too provocative. What I mean is, why use C++ for
> small ( > 1000 lines ) coding jobs?
> It doesn't make much sense to me as...
>
> C++ syntax requires a lot more typing, debugging and memory,
> Compilation time can be irksome,
> C++ is devoid of the plethora of features you find on Python, Ruby or
> our dear Swiss Army Chainsaw.
>
> Don't get me wrong, I don't dislike C++, nor am I trying to rile up
> the great gurus among us, however, I fail to see a practical reason to
> use this language much as I go about my hacking life.

When you don't do the kind of work where C++ is better, then by all
means use some other language.  Most programs I write are in Python,
Perl or shell script, and I would be stupid to do them in C++.
Yet C++ is my favorite language.

/JöG

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .

[toc] | [prev] | [next] | [standalone]


#8535

From"crea" <no@invalid.com>
Date2011-08-07 13:40 +0100
Message-ID<fJv%p.48270$Ah6.47879@newsfe26.ams2>
In reply to#8532
"Jorgen Grahn" <grahn+nntp@snipabacken.se> wrote in message 
news:slrnj3sn2j.gtj.grahn+nntp@frailea.sa.invalid...
> Yet C++ is my favorite language.

Also for me :). I dont understand why I dont like other languages at all...I 
did some visual basic, but did not like it much. I guess its something in 
C++ that it gives opportunity to do more deep stuff and also general stuff 
at the same time. So you can do "anything" with it. But obsiously has to use 
right tool for the certain job 

[toc] | [prev] | [next] | [standalone]


#8536

FromDombo <dombo@disposable.invalid>
Date2011-08-07 15:12 +0200
Message-ID<4e3e8f3c$0$30706$5fc3050@news.tiscali.nl>
In reply to#8516
Op 06-Aug-11 23:00, Miro schreef:
> I've made the title too provocative. What I mean is, why use C++ for
> small (>  1000 lines ) coding jobs?
> It doesn't make much sense to me as...

Sometimes I write small utility programs for people that don't 
necessarily have Python/Ruby/Perl...or whatever installed on their 
system. C++ allows me to write small standalone native applications that 
don't require an interpreter or some VM/framework to be installed. Just 
start the executable and it just works. Especially for small utility 
programs I consider not having to install sometimes tens- or hundreds of 
megabytes first a significant benefit.

Another reason is that some times these utility programs need to use 
some specific OS API call that cannot be (easily) accessed from a 
scripting language.

> C++ syntax requires a lot more typing, debugging and memory,

Typing maybe, but as far as debugging and memory goes my experience is 
just the opposite. C++ compilers can catch a lot of problems during 
compile time that scripting languages only see when they run into it 
during execution of the program. Also my experience is that the editors 
for statically typed languages often provide better assistance (code 
completion, on-the-fly checks) than dynamically typed languages.

> Compilation time can be irksome,

For small programs this is rarely the case. Small utility programs I 
have written rarely require more than a few seconds to compile and link. 
Not much longer that the startup time you will have every time you fire 
up some script- or VM based application.

> C++ is devoid of the plethora of features you find on Python, Ruby or
> our dear Swiss Army Chainsaw.

The biggest downside of using C++ as far as getting something done real 
quickly is that the standard library only covers the most basic needs. 
Chances are that one needs to resort to some third party library, which 
quite often have their own string- and container classes and idioms that 
require quite a bit of glue code if you use other libraries as well.

If I write something solely for my own use I tend to use whatever gets 
the job done most quickly. In my case that is often Python because I'm 
more proficient in it than other scripting languages and the library it 
comes with covers most of my needs (YMMV).

[toc] | [prev] | [next] | [standalone]


#8538

FromJuha Nieminen <nospam@thanks.invalid>
Date2011-08-07 14:55 +0000
Message-ID<4e3ea770$0$4351$7b1e8fa0@news.nbl.fi>
In reply to#8536
Dombo <dombo@disposable.invalid> wrote:
> C++ compilers can catch a lot of problems during 
> compile time that scripting languages only see when they run into it 
> during execution of the program.

  That's actually one of the most annoying things about some interpreted
scripting languages: You might have portions of your code that are
semantically complete garbage, yet you will get the error only if those
parts are executed. (There's a principle in software development that the
earlier in the development process an error is caught, the better. These
scripting languages certainly don't help on that aspect.)

[toc] | [prev] | [standalone]


Page 5 of 5 — ← Prev page 1 2 3 4 [5]

Back to top | Article view | comp.lang.c++


csiph-web