From owner-freebsd-questions@FreeBSD.ORG Sun Jan 16 19:40:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E055716A4CE for ; Sun, 16 Jan 2005 19:40:50 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 556D043D39 for ; Sun, 16 Jan 2005 19:40:47 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b220.otenet.gr [212.205.244.228]) j0GJeiAH007379; Sun, 16 Jan 2005 21:40:45 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id j0GJej7N007355; Sun, 16 Jan 2005 21:40:45 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id j0GJej1U007354; Sun, 16 Jan 2005 21:40:45 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 16 Jan 2005 21:40:44 +0200 From: Giorgos Keramidas To: koen de wijs Message-ID: <20050116194044.GA6242@gothmog.gr> References: <41EABF33.1040801@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41EABF33.1040801@gmx.net> cc: freebsd-questions@freebsd.org Subject: Re: programming languages and visual programming under FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2005 19:40:51 -0000 On 2005-01-16 20:23, koen de wijs wrote: > I heard that C is the most powerfull language under unix and almost > the complete system is written under it. You can do everything with > it. Where is a good toturial? Many good C resources are available online at: http://www.eskimo.com/%7Escs/C-faq/top.html You can also find some references for printed books there. The C language is not difficult to start using, but there _are_ some finer points that newcomers can grasp more easily after reading a few printed books. > Can you read and write directly with the printer port or does the > kernell block that? Accessing the hardware directly is one of the most unportable things you can do with C and UNIX. You should try using the proper device file instead, if possible. For printers that would be /dev/lpt0, /dev/lpt1, etc. > I got a programm from someone that putted some assmebler in his c > programm to adress the printer port. Very unportable, as I said above. Writing a C program that uses fopen() or open() on the /dev/lpt0 file (or any other lpt device), would be much preferable. > And where can I find an overview of all the *.h files that you can > use under FreeBSD The manpages that define the relevant APIs are usually your best bet. Then, when you are experienced enough with C you may start reading the *.h files under /usr/include directly. > Are there any visual programming tools under FreeBSD, like click and > drag like microsoft visual c? The only options that I found where: > GTK, KDE libs and Gnome libs or directly tlak with the x server. I'm sure there are some. A lot of people like using IDEs like KDevelop or Eclipse. The good thing about the compilers and other tools of FreeBSD is that you don't *have* to use an IDE though. A good editor is usually all one needs. This is why many people prefer to stay away from IDEs altogether and use vim or Emacs to edit their programs instead. > The other languages that I know are: Perl, I could only find that it > is especially for tasks for your system and that it's based on C Shell > scripts, for tasks for your systems and simple programms Python. > > What are the advantages of these languages above C and are there more > programming languages under FreeBSD? This is a very difficult question to answer without getting you to learn all the relevant languages first. Every language has its own merits, I guess. You can learn as many of them as you like, or you can pick 2-3 of them and stick with them. The choise is yours to make... - Giorgos