- Learn the ins and outs of the CoffeeScript language, and understand how the transformation happens behind the scenes
- Use practical examples to put your new skills to work towards building a functional web application, written entirely in CoffeeScript
- Understand the language concepts from short, easy-to-understand examples which can be practised by applying them to your ongoing project
CoffeeScript Application Development will give you an in-depth look at the CoffeeScript language, all while building a working web application. Along the way, you'll see all the great features CoffeeScript has to offer, and learn how to use them to deal with real problems like sprawling codebases, incomplete data, and asynchronous web requests.
Through the course of this book you will learn the CoffeeScript syntax and see it demonstrated with simple examples. As you go, you'll put your new skills into practice by building a web application, piece by piece. You'll start with standard language features such as loops, functions, and string manipulation. Then, we’ll delve into advanced features like classes and inheritance. Learn advanced idioms to deal with common occurrences like external web requests, and hone your technique for development tasks like debugging and refactoring.
CoffeeScript Application Development will teach you not only how to write CoffeeScript, but also how to build solid applications that run smoothly and are a pleasure to maintain.
What you will learn from this book
- Discover techniques to manage a complicated codebase and ever-changing requirements
- Drop the semicolons with CoffeeScript's clean, powerful syntax
- Build for loops, if statements, and functions without all the extra keystrokes
- Keep your code clean and organized with classes and inheritance
- Use advanced CoffeeScript idioms to deal with the needs of a growing application
- Debug effectively with source maps
- Integrate CoffeeScript into your project seamlessly with Rails, Brunch, and other web frameworks
- Utilize CoffeeScript for server-side software with Node.js
CoffeeScript Application Development is a practical, hands-on guide with step-by-step instructions. Follow the smooth and easy tutorial approach, covering examples that build in complexity. By the final chapter you'll be wondering why you didn't try CoffeeScript sooner.
Who this book is written for
Table of Contents
Chapter 1. Running a CoffeeScript Program
Chapter 2. Writing Your First Lines of CoffeeScript
Chapter 3. Building a Simple Application
Chapter 4. Improving Our Application
Chapter 5. Classes in CoffeeScript
Chapter 6. Refactoring with Classes
Chapter 7. Advanced CoffeeScript Usage
Chapter 8. Going Asynchronous
Chapter 9. Debugging
Chapter 10. Using CoffeeScript in More Places
Chapter 11. CoffeeScript on the Server