Beginning Lua Programming

  • 11h 26m
  • Aaron Brown, Kurt Jung
  • John Wiley & Sons (US)
  • 2007

Lua offers a wide range of features that you can utilize to support and enhance your applications. With this book as your guide, you'll gain a thorough understanding of all aspects of programming with this powerful language. It will walk you through the basics, covering everything from installing Lua on your system to developing games and web sites.

Experts Jung and Brown first present the fundamentals of programming and explain standard Lua functions. They then show you how to take advantage of all of the free Lua community resources that are available. Complete code samples are integrated throughout the chapters to clearly demonstrate how to apply the information. Diagrams are also included to highlight important Lua features such as stacks, hash tables, garbage collection, and function closures. All of this will help you to quickly write your own effective programs.

What you will learn from this book

  • Ways to extend Lua's operators with metamethods
  • Methods on how to use tables, strings, and modules
  • How to handle events naturally with coroutines
  • Techniques for managing information with databases
  • Tips for handling and avoiding programming errors
  • Ways to create your own innovative games
  • How to enhance application development using packages contributed by the Lua community
  • Steps for presenting dynamic information on your web site

Who this book is for

This book is for beginning programmers, game developers, and web site developers who are interested in a simple yet powerful introduction to programming.

About the Authors

Between his first programs submitted to a Burroughs 5500 on Hollerith punch cards and his latest programs tapped into a Palm Pilot, Kurt Jung has been the principal programmer on various projects ranging from airline yield management to state machine–driven workflow.

Aaron Brown began programming in elementary school on a Commodore 64. He plays various musical instruments and speaks Esperanto.

In this Book

  • Getting Situated
  • First Steps
  • Extending Lua with Functions
  • Working with Tables
  • Using Strings
  • Handling and Avoiding Errors
  • Using Modules
  • Extending Lua's Behavior with Metamethods
  • Handling Events Naturally with Coroutines
  • Looking Under the Hood
  • Exploring Lua's Libraries
  • Using Community Libraries
  • Interfacing Lua with Other Languages
  • Managing Information with Databases
  • Programming for the Web
  • Connecting to a Larger World
  • Programming Games with Lua
  • Carrying Lua with You
  • Fitting into the Lua Community
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 4.5 of 2 users Rating 4.5 of 2 users (2)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Book Python
Rating 4.5 of 79 users Rating 4.5 of 79 users (79)