The Book On Sports

Search Advanced SearchView Cart   Checkout   
 Location:  Home » All Sports Books » Languages & Tools » Programming in Lua, Second Edition  
Categories
All Sports Books
Baseball
Football
Basketball
Golf
Soccer
Extreme Sports
Fantasy Sports
Gambling
Subcategories
Ada
Ajax
Assembly Language Programming
Basic
Borland Delphi
C#
CGI Programming
CSS
Cobol
Compiler Design
Compilers
DHTML
Debugging
Delphi
Fortran
Lisp
Prolog
Python
RPG
Visual Basic Introduction
Visual C++
XHTML
XML
XSL
Business
Databases
Directories
E-mail
Introductory Guides
Mathematical & Statistical
Natural Language Processing
Optical Character Recognition
Personal Finance
Spreadsheets
Voice Recognition
Word Processors & Editors
All Titles
Arts & Photography
Biographies & Memoirs
Business & Investing
Children's Books
Computers & Internet
Cooking, Food & Wine
Engineering
Entertainment
Gay & Lesbian
Home & Garden
Literature & Fiction
Medicine
Nonfiction
Outdoors & Nature
Parenting & Families
Professional
Reference
Religion & Spirituality
Science
Teens
Travel
Mass Market
Trade
For the best in golf writing, golf reviews, golf news and golf opinion, visit GolfBlogger

Books On Technology, Computers and the Internet

Discount Golf Equipment

Related Categories
• Languages & Tools
Programming
Computers & Internet
Subjects
Books
• Software Development
Software Design, Testing & Engineering
Programming
Computers & Internet
Subjects
• Software
Computers & Internet
Subjects
Books
• Computers & Internet: Programming: General
General
Archive
Custom Stores
Specialty Stores
• Computers & Internet: Programming: Languages & Tools: General
General
Archive
Custom Stores
Specialty Stores
• Computers & Internet: Software: General
General
Archive
Custom Stores
Specialty Stores
• Programming Languages
Computer Science
New & Used Textbooks
Custom Stores
Specialty Stores
• Software Design & Engineering
Computer Science
New & Used Textbooks
Custom Stores
Specialty Stores
• Qualifying Textbooks
Custom Stores
Specialty Stores
Books
• Paperback
Binding (binding)
Refinements
Books
• Printed Books
Format (feature_browse-bin)
Refinements
Books

Programming in Lua, Second Edition

Programming in Lua, Second Edition

zoom enlarge 
Author: Roberto Ierusalimschy
Publisher: Lua.Org
Category: Book

List Price: $39.95
Buy New: $25.92
You Save: $14.03 (35%)



New (17) Used (9) from $25.92

Avg. Customer Rating: 5.0 out of 5 stars 19 reviews
Sales Rank: 6613

Media: Paperback
Edition: 2nd
Number Of Items: 1
Pages: 328
Shipping Weight (lbs): 1.3
Dimensions (in): 9.4 x 7.4 x 0.8

ISBN: 8590379825
Dewey Decimal Number: 005
EAN: 9788590379829
ASIN: 8590379825

Publication Date: March 5, 2006
Availability: Usually ships in 1-2 business days
Shipping: International shipping available
Condition: Brand New, Perfect Condition, Please allow 4-14 business days for delivery. 100% Money Back Guarantee, Over 1,000,000 customers served.

Also Available In:

  • Paperback - Programming In Lua

Similar Items:

  • Lua 5.1 Reference Manual
  • World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
  • Beginning Lua Programming (Programmer to Programmer)
  • Game Development With LUA (Game Development Series)
  • Hacking World of Warcraft (ExtremeTech)

Editorial Reviews:

Book Description
Lua is the language of choice for anyone who needs a scripting language that is simple, efficient, extensible, portable, and free. Currently, Lua is being used in areas ranging from embedded systems to Web development and is widely spread in the game industry, where knowledge of Lua is an indisputable asset.

"Programming in Lua" is the official book about the language, giving a solid base for any programmer who wants to use Lua. Authored by Roberto Ierusalimschy, the chief architect of the language, it covers all aspects of Lua 5---from the basics to its API with C---explaining how to make good use of its features and giving numerous code examples. "Programming in Lua" is targeted at people with some programming background, but does not assume any prior knowledge about Lua or other scripting languages.

This Second Edition updates the text to Lua 5.1 and brings substantial new material, including numerous new examples, a detailed explanation of the new module system, and two new chapters centered on multiple states and garbage collection.


Customer Reviews:   Read 14 more reviews...

4 out of 5 stars Great book, but needs slight improvement   June 26, 2008
 1 out of 1 found this review helpful

The information in the book is clear, easy to understand, and worth reading. The formatting of the text, the fonts used, and the overall style of the book is lacking. The end of the book was actually a few mm shorter than the spine on my copy, but nothing was cut off, so it doesn't matter beyond looking a little odd.

I would buy it again, even if the previous version is available for free online. It's great to read when you're not near a computer, as (for a programmer) the book is easy enough to follow without needing to try every example yourself.



5 out of 5 stars Great book for learning the Lua language.   January 30, 2008
 1 out of 2 found this review helpful

One of the best programing language books I have read. If only the programing guides for other languages could be this clear and concise.


5 out of 5 stars Good PIL book   November 17, 2007
 2 out of 3 found this review helpful

Good examples, suggestions, and notes. Is a must have for any one looking to program in Lua.


3 out of 5 stars I was not impressed   October 26, 2007
 6 out of 30 found this review helpful

Naming this language after the moon is ironically apropos, as many of its lunatic creator's cognitive processes seem to randomly scramble themselves according to the phase of said moon. I'm no language designer myself, but if I were trying to come up with a high-level scripting language that would appeal directly to C programmers, the last thing I'd want to do is start array indices at 1 rather than 0. Sure, you have the option of altering this behavior in the constructor, but in the author's own words:

"I do not recommend the use of arrays starting at 0 in Lua. Most built-in functions assume that arrays start at index 1, and therefore they will not handle such arrays correctly."

Talk about giving you just enough rope to hang yourself. But it gets even better. Array elements in Lua are to be removed by assigning their indices the value of nil. This is all well and good, but, again in the author's own words:

"Lua uses [the nil] value as a sentinel to find the end of the array. When the array has holes--nil elements inside it--the length operator may assume any of these nil elements as the end marker. Of course, this unpredictability is hardly what you want."

No shoot, Sherlock. So why not get rid of that unpredictability? As I read further I came to the conclusion that this decision was made because doing otherwise would spoil the running theme of the language. Another favorite passage comes from page 32 when discussing the numeric for loop:

"you should never change the value of the control variable: the effect of such changes is unpredictable."

Great! I love unpredictable results. They make so much more sense than raising a predictable exception or pointing out a predictable old syntax error. Let's see now... How else can we anger C programmers? How about if we make it so "a break or return statement can appear only as the last statement of a block"? Wonderful! Now let's get rid of one of the primary attractions of high-level scripting languages--regular expressions--and say we can't include them due to size concerns (we really need to be able to brag about our entire distribution fitting on a single floppy disk, and the PCRE library is just HUGE).

These things are marginally less obnoxious than Python's significant whitespace, but still obnoxious, and apart from the multiple return values thing, I really didn't find any compelling reason to join the Lua fanboy camp in this volume. Maybe if I were a Warcraft player I'd feel differently.

As for the book itself, the writing is terse and very obviously coming from a non-native speaker. The typesetting is atrocious (good typography is one of those things you never really appreciate until it's gone) and the entire thing looks like it was printed on an old laser printer that was low on toner at Kinko's. If it were cheaper, I wouldn't care, but it's not, so I do.

Stick to the free PDF if you really have to learn Lua for something. The changes in 5.1 are not significant enough to warrant a second edition, and the flimsy, smudged paper is really not worth paying for.



5 out of 5 stars All C programmers should have this book   August 6, 2007
 7 out of 7 found this review helpful

Buying this book does more than support the Lua project. Having the book available will change your opinion of integrating script with C code! "Progamming in Lua" is a well-written text that makes using Lua practical. All of the best features of Lua are covered; the sample code is concise, clear and complete.

Lua is very different from C, and so allows a programmer to easily do things that are difficult in C. That makes it a perfect companion language. The only obstacle is training a C programmer to use it! That's where the book becomes useful. It's a quick read and covers all the essentials.

Even better, Lua is so well-connected to C that it is easy to switch back and forth in the course of a typical programming day, writing performance code in C and high-level logic in Lua. It is even possible to easily interact with Lua data structures in C without writing Lua code for situations where the data structures are desirable but Lua code isn't required. If you're looking for a scripting language for your next project, you need to know about Lua, and this book is the quickest way to make an informed decision.


Powered by Associate-O-Matic

Contact The Book On Sports