Linux Programming by Example : The Fundamentals

  Author:    Arnold Robbins
  ISBN:    0131429647
  Sales Rank:    130972
  Published:    2004-04-12
  Publisher:    Prentice Hall PTR
  # Pages:    720
  Binding:    Paperback
  Avg. Rating:    5.0 based on 8 reviews
  Used Offers:    12 from $24.09
  Amazon Price:    $37.39
  (Data above last updated:  2008-08-21 05:46:24 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Linux Programming by Example : The Fundamentals
  

Linux Programming by Example introduces new Linux programmers to the core Linux programming interfaces in a gradual, consistent fashion, progressing intuitively from the basic to the more complex. It covers I/O, file metainformation, users and groups, processes, basic interprocess communication (pipes), general purpose APIs, signals, internationalization, and ends with a chapter on debugging Linux programs. Programmers know that the best way to learn about programming is to study well-written programs. This book teaches the fundamental Linux programming interfaces, those that form the core of any significant program, by presenting example code from real-world production programs that Linux users use every day. By looking at concrete programs, its possible not only to see how to use the Linux programming interfaces, but also to examine the real-world issues (performance, portability, robustness) that arise in writing Linux software. This book is the FIRST in a new series of books featuring Arnold Robbins as Series Editor. The books will all be branded "Linux Programming by Example" and cover programming topics for the new Linux programmer and Windows programmers making the switch.

Anyone who's done programming work knows that you spend half your coding time looking for other people's solutions to the problems you're facing in your project. Particularly when you're dealing with times, dates, standard calculations, and other common problems, you find yourself saying, "Someone must have solved this before." And, indeed, someone usually has. Linux Programming by Example is a dense compendium of Linux software solutions--tools, algorithms, and procedures that solve data-processing challenges of the sort that crop up in all sorts of software projects. Though it does not address X11 user-interface programming or network communications much, this book does a great job of communicating recommended practices for command-line interfaces, filesystem manipulation, internationalization and localization, and inter-process communications. Taken together with The Art of Unix Programming, this book will help you solve difficult Linux programming problems quickly.

Unlike a lot of code-oriented books, this one manages to keep its samples concise, and devote more space to discussions of why things are done than to the code that actually does them. This promotes understanding: You can always mess around with the code yourself on your own. Overall, Arnold Robbins does an excellent job of stripping away some of the hacker mystique to reveal the code behind the curtain. This book shows how to work Linux magic. --David Wall

Topics covered: Linux programming in C, mostly at a level concerned with user input from the command line, file I/O, interprocess signalling, and memory management.

                  Reader Reviews 1 - 9 of 9                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
01-07-07 4 (NA)
(Hide Review...)  Good Introduction
Reviewer Permalink
This is a good introductory book for Linux OS related programming concepts including memory management, files, IPC, signals and debugging. It does explain the concepts quite well and the code illustrations are very helpful. Its debugging and internalization chapters are noteworthy. As mentioned by others, this book does not cover threads and sockets.

It could be better to provide more complete coverage of the topics such as IPC and memory management. For example, the IPC chapter is limited to pipes and fifos (they are not even explained depth enough).

In short, I strongly recommend it as an introductory book for the topics covered.
(Review Data Last Updated: 2008-08-20 05:40:11 EST)
03-20-06 5 2\2
(Hide Review...)  Quality book, a keeper
Reviewer Permalink
I learned about this book from its sister book, Linux Kernel Primer: A Top-Down Approach for x86 and PowerPC Architecture. While the kernel book is not a good one at all, this one is a true gem. The writing is clear, lucid, and the examples are from the real world and thoroughly explained. In contrast, the kernel book gives overly broad and general introduction to a subject and then dives into the source code with disconnected commenting; there is such a big gap between the intro and the source code that it's not readable at all.
The auther Arnold Robinns also wrote a few other great books, including Learning the vi Editor and Learning the Korn Shell. With the achievement of this book, he ranks near the great, late Richard Stevens in terms of writing quality.
(Review Data Last Updated: 2007-07-11 23:09:55 EST)
01-25-05 4 15\15
(Hide Review...)  Great real world examples
Reviewer Permalink
Linux Programming by Example: The Fundamentals is a great book that covers three main concepts in Linux programming: files, processes and debugging. In each part the author explains and gives several examples of functions, systems calls and APIs that will help the Linux programmer. He also includes several real world examples of how these concepts are implemented. Here are the some things that I found interesting:

The Good: 1) This book really focuses on the use of standards and good program design. Right from the beginning, the author goes out of his way to make the reader aware of standards from ISO and POSIX and how they apply to good programming and design. Along this line I also like that the author explains the benefits of - and promotes - the use of Gnu software. Being an avid Gnu user myself (as most Linux users are) I agree that Gnu software is generally better software.
2) I feel that knowledge is power, and the author goes along with this idea by showing how some things should *not* be done. He often points out several functions that are available but should be avoided. I appreciated this, and feel that it makes the reader an all-around better programmer. The author also frequently gives extra information and history which helps explain why things are the way they are. This was especially useful when explaining mount points and types of file system.
3) I liked the fact that the author uses real world examples to demonstrate the ideas being presented. I really appreciated the fact that he uses V7 code (older, smaller and less comlex code) to demonstrate his examples. This allowed me to be able to see how the features were implemented in simple code, without being overwhelmed by the modern equivalents. A great example is the V7 echo program - only 23 lines!

The Bad: There weren't too many things that I didn't like about this book, but if my arm was twisted I would say the following: 1) This book is called *Linux* Programming but really it is about Unix programming. I know they are similar, and maybe I am splitting hairs here, but the title could really be *Unix* Programming. Most of this stuff is generic Unix programming, and the author points out the special exceptions not only for Linux but for other Unix variants as well - such as BSD.
2) Don't confuse the word "Fundamental" with "Beginning." This book really isn't for beginning Linux programmers, but rather it teaches basic (or fundamental) concepts that Linux programmers should know and use. The reader needs to be moderately familiar with the C programming language if he or she is to be edified.

A great read, with some excellent examples of well written Linux programs. If you are interested in moving beyond basic Linux programming then you should definitely pick up a copy of this book!
(Review Data Last Updated: 2007-07-11 23:09:55 EST)
01-06-05 5 3\4
(Hide Review...)  An invaluable resource
Reviewer Permalink
This is an exceptionally fine book.

Robbins has supplied the reader with a vast number of
programs and a lot of elucidation. This is a primer in
Linux programming, but also serves as a tract on UNIX
programming. The illustrations stem, for the most part,
from actual GNU and Linux code.

This is an invaluable resource for those converting from
another system to Linux.
(Review Data Last Updated: 2007-07-11 23:09:55 EST)
07-13-04 5 8\8
(Hide Review...)  A new classic
Reviewer Permalink
I loved this book. It's earned an honored place on my bookshelf, and I'm going to recommend it to people who need information about Linux and UNIX development.

Many computer books are practically obsolete before they ship: within a few months, "Learn Foomatic 4.3 in 21 Days" is in the bargain bin at the Dollar Tree. Some books have longer lives, and a few can remain useful for years. "Linux Programming by Example" (LPE) is in this last category; this book can stand alongside Steven's "Advanced UNIX Programming" as an essential tutorial and reference.

LPE covers everything you'd expect (working with files, processes, signals, users) and some things you might not (internationalization). But it's this book's voice and unique perspective that make it truly a gem. LPE is written in a clear, friendly, authoritative style. As I read, I often felt that I had gained a new understanding of things I've known for years.

The long and twisted history of UNIX has given rise to multiple competing APIs. Perhaps the greatest thing about this book is the way that Robbins cuts through these thickets, explaining your choices, pointing out the best alternatives, and explaining why they're the best. LPE's modern vantage point means it can cover V7, BSD, POSIX, and GNU APIs. The chapter on signals alone is worth the purchase price of the book for the way in which it clearly compares and contrasts the various signal APIs.

(Review Data Last Updated: 2007-07-11 23:09:55 EST)
05-24-04 5 5\5
(Hide Review...)  An excellent book
Reviewer Permalink
I am very impressed with this book. Arnold covers the basics of Linux and Unix programming in a clear, easily-understood fashion. He has brought a wealth of programming experience to the job, and it shows -- the comments on portability, for instance, have a certain world-weariness about them that makes it clear that the lessons were hard-won.

I thought the choice of using Unix 7th edition source code was inspired. The code is elegantly written, and comprehensible enough to be used as a teaching aid.

I would not hesitate to recommend this to anyone looking for an introduction to programming on Linux or Unix.

(Review Data Last Updated: 2007-07-11 23:09:55 EST)
05-23-04 5 4\4
(Hide Review...)  An excellent book
Reviewer Permalink
I am very impressed with this book. Arnold covers the basics of Linux and Unix programming in a clear, easily-understood fashion. He has brought a wealth of programming experience to the job, and it shows -- the comments on portability, for instance, have a certain world-weariness about them that makes it clear that the lessons were hard-won.

I thought the choice of using Unix 7th edition source code was inspired. The code is elegantly written, and comprehensible enough to be used as a teaching aid.

I would not hesitate to recommend this to anyone looking for an introduction to programming on Linux or Unix.

(Review Data Last Updated: 2006-06-27 12:32:36 EST)
04-26-04 5 2\2
(Hide Review...)  A great intro to portable Unix systems programming!
Reviewer Permalink
This is a great introduction to Unix systems programming.
I like the way concepts are illustrated with code from widely
used programs, along with good tips on portability. The sections
on directory traversal and signals were particularly relevant to
some of my work. Fine writing!
(Review Data Last Updated: 2006-06-27 12:32:36 EST)
04-26-04 4 10\10
(Hide Review...)  Linux Fundamentals
Reviewer Permalink
Don't judge a book by it's cover, especially this cover, with the cheesy lightsaber which screams, "secrets of the Unix Jedi". Read the the lines, "Linux" and "Fundamentals" on the cover, and that is what you need to know.

If you are familiar with the classic "Advanced Unix Programming" you will be familiar with what this book covers and appreciative of the update. In short, this book covers the fundamentals of shell programming with C; files, directories, signals, memory allocation, process control, permissions, that sort of thing. It does not cover network programming or X11 GUI programming.

What I liked about it was primarily that it imparted experience. For example the section on creating temporary files pointed out both good and bad ways to write the same functionality. The text was expository and informative. Where Advanced Unix Programming was a little dry and stiff in tone, this book is a little heftier, goes into more detail, and is written in a more experiential and friendly manner.

There is a lot to like about this book. If the subject, within it's constraints, interests you, then you should get it. If only to broaden your depth of understanding as to how Unix works and how to write programs for it. If you are looking for books on network programming, xml, multi-threading, web serving, or X11, you should look elsewhere, but you should probably still look at this book to bone up on 'Linux' 'Fundamentals'.

(Review Data Last Updated: 2006-06-27 12:32:36 EST)
  
                  Reader Reviews 1 - 9 of 9                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)