From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 17 10:40:35 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C350814A for ; Mon, 17 Mar 2014 10:40:35 +0000 (UTC) Received: from nm41.bullet.mail.bf1.yahoo.com (nm41.bullet.mail.bf1.yahoo.com [216.109.114.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 570B5F53 for ; Mon, 17 Mar 2014 10:40:34 +0000 (UTC) Received: from [98.139.212.153] by nm41.bullet.mail.bf1.yahoo.com with NNFMP; 17 Mar 2014 10:38:25 -0000 Received: from [98.139.211.198] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 17 Mar 2014 10:38:24 -0000 Received: from [127.0.0.1] by smtp207.mail.bf1.yahoo.com with NNFMP; 17 Mar 2014 10:38:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1395052704; bh=uEecX8PPCe3qaEwWPTil9Asx+ioo3Y9IbIX+wx4CESY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KjObXykm6u+ljvuNqIlfyrFo/ylCYRcZpOEa2VfHF8BR0ImEyl9W5/we6om4hzifjiWd1y2uM7VGUUw87kfHKr9abdhOIn4pujK0fDfWI8tMND9LufEp5bEJLJgvGJbXAR5xMjBRjUTMB+TggqybR0u+ax9966QghUZZhVcfcvc= X-Yahoo-Newman-Id: 857790.9732.bm@smtp207.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Ya3uwS0VM1krATXD_xqeydT4zb_hnOB7gr8ipVYgxSqSWpL 5vCkTDNuqZ_Dar1SY1bj3sV5gkc2qf6My5CkigqLkxYupHUEhYzZo15IWurz M8lQ4tQu3oBaC0MowhPESu2klNopgmiUf1waAuIqUwJ.IYSLHrVUTcOnPVRo 6Kp96ZJt4VCXKRaAsETTaVGq1R.JtWD7anOMk0L6SOXa5ecstP7mdhOigjzw FPVZLS0u7QbJ1GNz.8aeY.IzWKIGHjvZcAFoOXppEsRZbopm7u3DO_XNH.RO Gp1NdU6eup6y0qkeYzfVFlDrfGV383l9BLZtoG9dykX_pglZomsMdljhaEul 0.mjez73GekP.Gyv3pYjXUl5laYyOmCfNBvE5ojDo0u0xwI3vlcasW_RiXdR TSjFgXeBe0HiX2OnhEf4zf8EIkzduAwz9pG_eeGY2vudzyioiGVyl9.13gcL xaclP.MIZWS.KfsrUHO3Wbe9_VEW6hWvlGTUrGj0lcjN13wWLAns8bPgZZx1 mmCU- X-Yahoo-SMTP: LAFNfTaswBDguI7meB90l2l3wOU- X-Rocket-Received: from [172.16.106.14] (free7by@59.51.96.8 with plain [106.10.150.171]) by smtp207.mail.bf1.yahoo.com with SMTP; 17 Mar 2014 03:38:24 -0700 PDT Message-ID: <5326D093.90308@yahoo.com> Date: Mon, 17 Mar 2014 18:38:11 +0800 From: by User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Johan Bucht Subject: Re: Something related to C and C++ References: <20140317103830.53c42ade@X220.alogt.com> <611B8DE5-F593-4574-96AB-0965CA7EDF33@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" , Erich Dollansky X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 10:40:35 -0000 Yes, you are right, i have some prejudice for C++ before, but now, i think i won't, cause if i have not deeply working for some languages, technologies, i have no right to judge it, i need more and more practice : ) Different fields got different technologies, the only key i think is that which field you prefer, and what kind of technology you prefer. - by On 2014/3/17 17:14, Johan Bucht wrote: > Working in higher level languages like Java, Ruby, Python and C++ does have > some advantages to C and some disadvantages. There are always trade offs > and there will always be languages closer to the domain that will be more > elegant to solve specific problems. > If you're mainly doing programming close to the hardware the abstractions > from those higher level languages doesn't add much value and the runtime > with garbage collection and more is something you probably need to be able > to turn off. > It's of course possible to implement a lot of the features in higher level > languages in lower level ones, but the syntax will not be that suitable for > it and you need to impose restrictions on yourself instead of the language > doing it for you. > For some tasks C is too high level and Assembler is needed but for most of > the tasks any language will do and it's a matter of personal taste. > > /Johan > > On Mon, Mar 17, 2014 at 3:50 AM, by wrote: > >> Well, I think C++'s popular has something related to C's popular use, but >> it contains too much, I prefer simple tool, do one thing, and do it well, >> no more extras, and build a system with their combinations, at least the >> base system. >> >> - by >> >>> On Mar 17, 2014, at 10:38, Erich Dollansky wrote: >>> >>> Hi, >>> >>> On Mon, 17 Mar 2014 10:20:55 +0800 >>> by wrote: >>> >>> as C++ is C plus 'some' extras, just start with C. When you know C - >>> which you have to know anyway to write C++ programs - you can add C++ >>> to your knowledge. >>> >>> Never forget that object orientated programming is much older than C++ >>> and can be done in most languages. I did my first steps in object >>> orientated programming in 8080 assembler without even knowing that >>> what I did will be later be known as object orientated programming. >>> >>> The little programming I still do is all done in C but using some of >>> the 'addons' of C++. So, all my sources are .cpp files. >>> >>> Erich >>>> 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 understand 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 <>, another is <>>> Language>>. Just consider from the weight : ) You can find something. >>>> Language>>In the past, GCC use C, but now it turn to C++, and LLVM is >>>> Language>>written by C++. Yes I prefer C now, and you may say, you >>>> Language>>have not use these two languages deeply, how could you >>>> Language>>judge them? Yes, I know I should not judge them, but as a >>>> Language>>newbie, this is my very feeling, just like a kid first >>>> Language>>looking at this world! Simple, but confused. At last, I am >>>> Language>>not lead to a holy war between programming languages, I >>>> Language>>just 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" >> _______________________________________________ >> 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" >> > _______________________________________________ > 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"