small medium large xlarge

Crafting Rails Applications AND PragPub Magazine

May 01, 2013

The Crystal Palace Exhibition, first of the great World’s Fairs, opened on this day in 1851, complete with an early fax machine, automatic voting machine, and the Jacquard loom: the first machine to use punched cards to control a sequence of operations. Oh, and the fair also featured the world’s first pay toilet. Ah, progress.

If you use Rails, you’ll want this week’s new title: Crafting Rails Applications: Expert Practices for Everyday Rails Development, 2nd Edition. Come and get it from

April showers bring May PragPub Magazine! Read all about Lua, dependent types, Java active objects, gonzo engineering and more at

Crafting Rails Applications: Expert Practices for Everyday Rails Development 2nd Ed.

Rails is one of the most extensible frameworks out there. This pioneering book deep-dives into the Rails plugin APIs and shows you, the intermediate Rails developer, how to use them to write better web applications and make your day-to-day work with Rails more productive.

Rails Core developer José Valim guides you through eight different tutorials, each using test-driven development to build a new Rails plugin or application that solves common problems with these APIs. You’ll learn how the Rails rendering stack works and customize it to read templates from the database while you discover how to mimic Active Record behavior, such as validations, in any other object. You’ll find out how Rails integrates with Rack, the different ways to stream data from your web application, and how to mix Rails engines and Sinatra applications into your Rails apps, so you can choose the most appropriate tool for the job. In addition, you’ll improve your productivity by customizing generators and responders.

This book will help you understand Rails’ inner workings, including generators, template handlers, internationalization, routing, and responders. With the knowledge you’ll gain, you’ll create well-tested, modular, and robust solutions for your next project.

Now in beta and available from

PragPub Magazine for May

You can use a functional approach in pretty much any language. Take Lua, for example, which is just what Josh Chisholm does in our lead article in PragPub this month. It’s a good introduction to functional thinking and its benefits, whether or not you know Lua. But the power of the functional approach is still being realized. Also in this issue, Paul Callaghan pushes functional programming to new levels with a deep discussion of dependent types.

Allen Holub weighs in with a proposal to extend Java to support safer concurrency. And there’s more. Have you ever thought about the pioneers of personal computing and wondered where are they now? The answer a few weeks ago was, they’re in Seattle at Paul Allen’s Living Computer Museum. Paul and Bill threw a big bash and invited an amazing list of computer pioneers to a night at the museum. David Bunnell was there and reports on the festivities. With lots of pictures.

And Gonzo Engineer Steven K. Roberts is back with the final installment in his series on how to pursue a crazy dream for fun and profit. Steven knows what he’s talking about: he has made a career of this.

All the usual features are here, too, like John Shade and the Quiz, and we’re introducing a new column by Johanna Rothman and Andy Lester. Johanna and Andy are going to be talking about the non-coding aspects of software development: getting hired, hiring good people, dealing with difficult people, and generally prospering and thriving in your work. Although they know a lot about these things (check out the books they’ve written) they aren’t going to lecture you and give you cookbook instructions. Rather, they’ll discuss the issues you face and let you see some of your options so that you can make informed decisions that fit your particular situation.

All in this month’s PragPub, now available free to read and share from

Don’t Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don’t? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

Are you following us on Twitter and/or Facebook? Here’s where you can find us and keep up with the latest news and commentary, and occasional discounts.

Coming Soon:

  • Ultimate Android in beta
  • Programming Elixir in beta
  • Beginning Mac Programming: Develop with Objective-C and Cocoa in beta
  • Ready for another audio book?
  • ...and more

Recently Released:

  • Create Mobile Games with Corona [in beta]
  • Rapid Android Development [in print]
  • Programming Erlang, 2nd. ed [in beta]
  • Test iOS Apps with UI Automation: Bug Hunting Made Easy [in beta]
  • Thanks for your continued support,

    Andy & Dave

    Books • eBooks • Screencasts • PragPub Magazine