From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 18 15:44:11 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2774F7E0 for ; Tue, 18 Mar 2014 15:44:11 +0000 (UTC) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A722834B for ; Tue, 18 Mar 2014 15:44:10 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id x48so6094359wes.10 for ; Tue, 18 Mar 2014 08:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=UEIOMSYYnZTW4JFIJmlaiQ69Nhm4IKB0fYtNriTWRyE=; b=FOGZQ/4pK14bwNQaCOqK/LExKUnGiXjk4TGHCDrOSR5O2izq534hJN6vZrP/t6mKKk URmr5KDCQN6ygVelKpp28aNnaYj026Wv2R4owky4UUhRJi/edY8/oo1n6jy9+4YW7z7z U67Y++whywYHh9Yhuk4CMofLm159avAqPyJYXxcpEX7TrO4gEt9c/2YyRLTA/zBywLYZ Y+yxOG8GXsrzF+6ZS3BVlKab3SisVtCL7BF2XmyXh+FlJ/ivOdKcmls4sg8YscaIS/no K5ihcUoKQjsOuHlxGPTKOqcatD8RwdQfxbdTieNVjqLCyhyvAz7wCTbKkXHN6MijPDl2 1lvQ== MIME-Version: 1.0 X-Received: by 10.194.20.229 with SMTP id q5mr998671wje.86.1395157449098; Tue, 18 Mar 2014 08:44:09 -0700 (PDT) Received: by 10.194.206.68 with HTTP; Tue, 18 Mar 2014 08:44:09 -0700 (PDT) Received: by 10.194.206.68 with HTTP; Tue, 18 Mar 2014 08:44:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Mar 2014 19:44:09 +0400 Message-ID: Subject: Re: Something related to C and C++ From: Dmitry Selyutin To: by , freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: ghostmansd@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 15:44:11 -0000 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" =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 < Language>>, another is <>. 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= " >