Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2014 19:44:09 +0400
From:      Dmitry Selyutin <ghostman.sd@gmail.com>
To:        by <free7by@yahoo.com>, freebsd-hackers@freebsd.org
Subject:   Re: Something related to C and C++
Message-ID:  <CAMqzjes_9Y0gPeU1S3bOysd22qejhgD1c--YrxDkaC6A=ZAR3w@mail.gmail.com>
In-Reply-To: <B2051FAA-63AA-4F96-90BA-84157CE1F7AB@yahoo.com>
References:  <B2051FAA-63AA-4F96-90BA-84157CE1F7AB@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I'd like to share my knowledge. I have been studying neither C nor C++
for twenty years, but I think that my experience is large enough to just
tell may opinion without insisting on it. I've written the next part of
message to show how my programmer's past may have changed my opinion; you
can miss this part and just read the rest.

I've heard that programmers usually learn assembler, then C, then more
high-level languages like C++, Java, Python, etc. It's not the truth in my
case: when I've migrated from Windows, I've never written programs before.
Soon after my "migration" I've understood that I really need to.know how
this "command line" works, so I started to learn bash. Then I realized that
bash is not suitable for most of tasks; I began to find language which
could be easy and where everything I could acquire out-of-box. I finally
selected Python and started to learn it; even now Python is my favorite
language for small tasks. But when I realized that some Python's features
don't fit well my ambitions (e.g. global iterpreter lock, slowness, etc.),
I was between C and C++ to choose from. Due to OOP which was in Python I've
selected C++; first I enjoyed programming it, but the happiness ended when
I understood templates and overloading pros and cons better. I've finally
felt that I need C++ without such kind of things; of course,I knew that due
to syntactic sugar C++ fits better for several needs, but I was really
tired of C++ complexity and wanted to learn a new language.

I've neither returned to C++ since this time nor ever wanted; I really like
C simplicity, while even now like OOP concepts. I really dislike templates
et overloading enough to use C language. Moreover, I particularly dislike
how C++ understands OOP, such understanding seems to be dubious to me
(comparing with Smalltalk, Objective C or Python). It may be more difficult
to write object-oriented code in C than in C++ since C has no such
syntactic constructions as C++, but it is easy enough. C++ seems to be too
heavy and huge comparing with C; sometimes it is better, sometimes it is
worse than C. You need to choose tool appropriate for your task. I feel
that Unix world requires C understanding, while it can live without C++
knowledge.

=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9 =D0=A1=D0=B5=D0=BB=D1=8E=D1=82=
=D0=B8=D0=BD
17.03.2014 6:24 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=
=B5=D0=BB=D1=8C "by" <free7by@yahoo.com> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=
=B0=D0=BB:

> Hi,
> At first, I would say, I do not want to lead to a holy war between
> programming languages, and I am a newbie in this field, but I am confused
> about this, so I want get some answers or discusses from here to help me
> thinking about this.
> I found that in IT industry, C++ has more and more users, I can understan=
d
> why they do this, C++ can make them build system more easy than C does.
> okay, I just know a little about C++, but in my feeling, C++ can make you
> do things in a higher place.
> Yes, C++ is great, but for me, it is too difficult, or I would say, it is
> too complicated. I got two books in my hand, one is <<The C Programming
> Language>>, another is <<The C++ Programming Language>>. Just consider fr=
om
> the weight : ) You can find something.
> In the past, GCC use C, but now it turn to C++, and LLVM is written by C+=
+.
> Yes I prefer C now, and you may say, you have not use these two languages
> deeply, how could you judge them? Yes, I know I should not judge them, bu=
t
> as a newbie, this is my very feeling, just like a kid first looking at th=
is
> world! Simple, but confused.
> At last, I am not lead to a holy war between programming languages, I jus=
t
> confused and want some related answers. This is it.
> : )
>
> - by
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMqzjes_9Y0gPeU1S3bOysd22qejhgD1c--YrxDkaC6A=ZAR3w>