CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    12

    why should you use c++ in this project ?

    I read all over the web about how scripting programming languages (like ruby or python) are fast for writing programs quickly. so i would like you to consider a programming project that is :

    1- the length of source code is in the magnitude of few hundreds to few thousands lines of code.
    2- not a low level (driver / OS level) program.

    question : since developing my program in ruby or python will be much faster(i assume) what are the reason(s) why i should consider using c++ over ruby /python for such project ?

    sharing your practical experience will be greatly appreciated.

    thank you

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: why should you use c++ in this project ?

    It really depends on what you're trying to do.

  3. #3
    Join Date
    Jun 2009
    Location
    France
    Posts
    2,513

    Re: why should you use c++ in this project ?

    Today, C++ mostly excels at writing low level stuff (drivers, embedded systems), or programs that have very high performance needs in terms of speed and/or memory management.

    Pretty much EVERY NEWER LANGUAGE out there is faster than C++ in development speed. However, none of them offer the fine grain control C++ offers.

    IMO, the question isn't "which is better" but "will Python/Perl/Java be fit for the job". If the answer is no, then you fallback to C++. That's my view anyways.
    Is your question related to IO?
    Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
    It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured