Preface

One of the first questions asked when someone learns to code is, “What editor should I use?”

It is not a question easily answered. There are purists who believe you should only code with SimpleText or TextWrangler, but there are also those who prefer the many features of Dreamweaver. For those who also need to use the command line, the debate about vi and Emacs rages on. In addition, robust GUI editors such as TextMate and Sublime Text have taken the development world by storm.

Your personal preferences, your workflow, your code, your designs, your wallet…it’s all about you, baby. And that is why the question isn’t easily answered.

As someone who considers himself a designer first with a splash of developer mixed in, I’ve found it’s good to play around with different types of tools to see what you like best. I like Dreamweaver for some things and Sublime Text for others. I’ve even been known to dabble in a plain-text editor from time to time.

Ultimately, my primary tool is Panic’s Coda.

Panic has earned a reputation for making fantastic software that works great. I first heard about Panic when I was shopping around for an FTP client, and purchased Transmit. That became the gateway to Coda, and I’ve been a fan ever since.

What I like most about Coda is its focus on one-window web development. You don’t need to have an editor window open with Terminal off to the side, a separate CSS editor, and another application or Terminal tab for version control. Coda has everything for you—it’s a Swiss Army Knife of web development bundled into one beautiful package.

If you’ve been to a conference or coffee shop lately, you’ve likely seen the proliferation of coders out in the wild with their favorite laptops. Coda’s environment makes excellent use of a laptop’s reduced screen real estate. No more tweaking and adjusting every little window just right so that you can get in your groove. Just fire up Coda and start coding.

There is no perfect editor, but there are some pretty great ones. For me, Coda is one of the best. Perhaps most importantly, it gives me an answer to the question, “Which editor should I use?”

Who This Book Is For

Coding with Coda is for designers and developers with some experience under their belt. If you’re new to web development, this book isn’t for you.

It’s preferable for you to have some experience with the command line, but if not, that’s OK. In the same vein, experience with CSS is also welcome. If not, don’t worry about it. The book will show you how to use the tools, and you can use them when you’re ready.

Coda is a Mac-only editor made by Panic, a company that makes Mac- and iOS-only applications. More importantly, this book is for Macintosh users only. Coda isn’t free; as of this writing, the app is on sale for $75, normally $99. That said, the download offers a demo so you can give it a solid spin around the block before making a purchasing decision.

What This Book Will Do for You

Coding with Coda is organized in a start-to-finish fashion. To begin, you’ll run through the basics of Coda 2 and then get started with the initial phases of building a project, or Site.

A chapter is spent on the source control management, how it integrates with Coda, and how you can use the two in your development process. You’ll learn to tinker to your heart’s delight with the many available preferences, while also getting into the more intricate aspects of using Coda for editing and document collaboration.

You’ll wrap up with an overview of constructing a page (no web app building in this book!) and then learn about some extra features to make Coda even more enjoyable to use.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context.

Tip

This icon signifies a tip, suggestion, or general note.

Warning

This icon indicates a warning or caution.

Using Code Examples

This book is here to help you get your job done. In general, if this book includes code examples, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Coding with Coda by Eric J. Gruber (O’Reilly). Copyright 2013 Eric J. Gruber, 978-1-449-35609-5.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online

Note

Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business.

Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at http://oreil.ly/Coding_Coda.

To comment or ask technical questions about this book, send email to .

For more information about our books, courses, conferences, and news, see our website at http://www.oreilly.com.

Find us on Facebook: http://facebook.com/oreilly

Follow us on Twitter: http://twitter.com/oreillymedia

Watch us on YouTube: http://www.youtube.com/oreillymedia

Acknowledgments

Thanks to the community of designers and developers in the Lawrence, Kansas, area who have helped me grow as a developer.

Thank you to tech reviewers David “my dad always told me to learn your keyboard shortcuts” Eldridge, and Wade Cosgrove from Panic for your fantastic work. Meghan Blanchette, your gentle editor’s touch is fantastic; thank you. Thanks to Brandon Edling and Ben Henick for the encouragement and to Simon St.Laurent for taking a chance on me.

Thank you to my lovely wife for putting up with me and my parents and sister for always encouraging me to find my own way.

And to my daughters: Ember, your reading ability at such a young age makes me work hard to write better. And Remi, when you would sit on my lap and demand I hover over “The leaf! The leaf!” of Coda’s beautiful green icon in my dock to magnify it, I knew I was on the right path.

Get Coding with Coda now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.