From owner-freebsd-questions@FreeBSD.ORG Fri Oct 26 14:09:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0C3616A419 for ; Fri, 26 Oct 2007 14:09:33 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.231]) by mx1.freebsd.org (Postfix) with ESMTP id 7A62413C4AA for ; Fri, 26 Oct 2007 14:09:33 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so723965nzf for ; Fri, 26 Oct 2007 07:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=ekjCVpyWYVtcBImV0mChWv/aZkCXw04oxdVcve/hYXE=; b=kjV/0lOBrm/sJzJ2O8wVvA/NeDqxfdwNIZXVl4wV5Thccj7UCNenrx2Z97unwjSFVe42Sle8TvX/hyMTfWGn5t8aKB4gN0uMDZfiBAaSB/9u39l/f9i8MmNboIkwBwAiCr+FNrLPzyV12AZ1ZY+aOnKqrQalIY4rXG5qA9aYqNI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=QDF2vaT15cbSjw/JoswORWb+8fGAfuAy8GLPQiL6StkoumabSXg/ab8C6KWCuXFLur+/SCoMad4+a60bg5yTFjrKfxooHF2GYHKQAmj8IAINEHRvEjjh1BaSNEpGnrJnQg8EQTTLgQWY5nov0U7D519iQ+GFqW834vATPUHuyuk= Received: by 10.143.14.16 with SMTP id r16mr835794wfi.1193407768184; Fri, 26 Oct 2007 07:09:28 -0700 (PDT) Received: from ?172.16.10.104? ( [64.106.73.251]) by mx.google.com with ESMTPS id a15sm589340rof.2007.10.26.07.09.25 (version=SSLv3 cipher=RC4-MD5); Fri, 26 Oct 2007 07:09:26 -0700 (PDT) From: james To: Harald Schmalzbauer In-Reply-To: <200710252319.20228.h.schmalzbauer@omnisec.de> References: <200710251606.l9PG6EMr067549@lurza.secnetix.de> <4720DEE2.9000006@gmail.com> <200710252319.20228.h.schmalzbauer@omnisec.de> Content-Type: text/plain Date: Fri, 26 Oct 2007 08:09:27 -0600 Message-Id: <1193407767.20949.15.camel@james-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Mentor for C self study wanted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: oscartheduck@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 14:09:33 -0000 On Thu, 2007-10-25 at 23:19 +0200, Harald Schmalzbauer wrote: > Am Donnerstag, 25. Oktober 2007 20:22:26 schrieb Aryeh M. Friedman: > > > Absolutely. (I just didn't mention it before because > > > obviously Harald already has a beginner's book on the > > > C programming language.) > > > > Herald does in fact have one that sucks (it does a terrible job on type > > sizes for example [doesn't mention that they may very on different > > Well, probably it's not that bad. > > First, thanks to all for your help. > > K&R has been laying arround here for at least 2 years. I hated it. > It instructs me to use functions like printf without explaining it, and the > examples are not really motivating. So every time I tried to write something > on my own I was stoped by the simple printf, for example. YOU DARE NOT WORSHIP AT THE CHURCH OF K&R???? No, but seriously, it took me a good three years of picking up K&R and trying to get through the first chapter before I eventually started seeing why it's referred to as *the* book. > > I'm sure it's a very good book as a reference, but it couldn't motivate me as > a real C beginner (not a bloody programming beginner though). > But if it doesn't work for you, that's okay :) It *is* a good reference, though. There's annotation for the standard libraries in an appendix. > So I bought two new books, the first, which I've started with, > is "Markt+Technik, jetzt lerne ich C" (ISBN-13 978-3-8272-4210-5). > Indeed, it hasn't made clear that short and int are different, they just > explained short and long (and double long) and I thought short is a synonym > for int. > But it explains in some short sentences the most important > behaviour/requirements for the functions we use. It still leaves me alone > when it comes to compilers, but after only three evenings so far I think that > I made real progress. Writing a simple practice just works :) > And I already know that float x; x=10/3 is 3 not 3.3333. I can't remember > reading that in the K&R in the first quarter of the book. > I'm still quiet happy with it. > > The next book is O'Reillys C in a nutshell (ISBN 3-89721-344-3). I'll open it > if I have structs and pointers practiced... > If you've got the cash to spare, try out O'Reilly's "Practical C Programming". That book is very friendly, contains a tonne of great examples, and a lot of on the spot quizzes. I was sold on it when I read the rear cover. It says something like: "K&R teaches there are nine rules of precedence in C. We teach two: the first is that addition comes before subtraction, the second is use parentheses for everything else." That kind of simplicity isn't something you see everywhere. > And of course I'll "replay" the K&R if I have some more basics. > > Thanks, > > -Harry > > > machines])... since he is paying me a small amount to help him in detail > > I am going to recommend K&R to him (with the caution is is meant for > > experienced programmers) > > >