2012/2/20 Daniele Nicolodi <[email protected]> > On 18/02/12 04:54, Sturla Molden wrote: > > This is not true. C++ can be much easier, particularly for those who > > already know Python. The problem: C++ textbooks teach C++ as a subset > > of C. Writing C in C++ just adds the complexity of C++ on top of C, > > for no good reason. I can write FORTRAN in any language, it does not > > mean it is a good idea. We would have to start by teaching people to > > write good C++. E.g., always use the STL like Python built-in types > > if possible. Dynamic memory should be std::vector, not new or malloc. > > Pointers should be replaced with references. We would have to write a > > C++ programming tutorial that is based on Pyton knowledge instead of > > C knowledge. > > Hello Sturla, > > unrelated to the numpy tewrite debate, can you please suggest some > resources you think can be used to learn how to program C++ "the proper > way"? >
One of the best books may be "Accelerated C++" or the new Stroutrup's book (not the C++ language) Matthieu -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
