On Sep 8, 1:04*pm, Andrew Tomazos <and...@tomazos.com> wrote:
> On Sep 8, 5:51*am, m...@privacy.net wrote:
>
> > I'm trying to teach myself some C++
>
> > I have NO programming experience...... none....
> > zip...... null
>
> > Can you guys recommend a book for someone on my level I
> > can buy from Amazon?
>
> If you really have no programming experience whatsoever, C++ is a
> really bad language to start with.
Of course you're free to give all the advices you want, Andrew, but I
don't agree with your statement above. Each programming language has
its positive and negative aspects. Further details below.
> I would start by using a scripting
> language to write and test some little programs. *You can do this
> inside a web browser even:
>
> * *http://tryruby.sophrinix.com/
>
> After that, I would move onto an OO language with a large standard
> library and standard garbage collection like Java or C#. *After
> writing some medium length programs in one of those environments, only
> then would I turn to C++.
Learning the fundamentals of programming in another language means
setting to mind some points which _have to be_ changed when switching
to C++.
I agree that knowing more that one language is a very important step
for any programmer, but then, starting from one or from another
doesn't make any big difference - assuming those languages are equally
high-level.
In my experience, for example, I found it easy to learn the interface
of std::vector and std::string and _then_ digging the tricks needed to
manage arrays and null-terminated C strings.
In the same way, if one really wants to learn C++, it's better to
start from scratch with strong-typing and then, eventually, learn all
the additional functions and operands needed by a loosely-typed script
language like JavaScript - assuming one wants to learn it.
About dynamic memory and garbage collection, nobody obliges you to use
it in C++. You can build pretty large and useful applications without
never ever using "new" and "delete". In other words, what you don't
use/need/see cannot harm you.
Just my personal point of view, as I said above, you're free to give
all the advices you want and I would fight to ensure to you this
prerogative.
Best regards,
Francesco