About This Title

Pages: 80
Published: February 2020
ISBN: pending
Not Yet Printed (NYP)

Programmer Passport: Crystal

Fast as C & Slick as Ruby

by Bruce Tate

Twenty years ago in The Pragmatic Programmer, my friend and business partner Andy Hunt and my longtime mentor Dave Thomas charged us with learning a new language every year. I took that advice and never gave up the habit. In this series we’ll learn languages together because doing so will make us better programmers. I strongly believe learning even obscure languages teaches common patterns that can be applied in your day-to-day job.

Available exclusive in partnership with our friends at grox.io


Programmer Passport: Crystal introduces Crystal, the language that’s built to do many of the things C can do but with the friendliness of Ruby. Based on rapid adoption within the Ruby community, it’s a quickly growing language, and it has an impressive list of strengths, including some nice feature groupings you don’t usually find together in the same language.

Crystal was initially designed to be a drop-in replacement for Ruby, but one with a type system friendlier to compile-time checking, tooling and compilers. As the language has grown it has dropped complete compatibility with Ruby to better support the goals of the type system. Still, Crystal and Ruby syntax are remarkably similar. This book looks at what makes Crystal special.

What You Need

Resources

Releases:

Contents & Extracts

  • Preface
  • Crystal Clear Philosophy
    • Meet Crystal
    • Rapid Adoption and Infrastructure
    • Installation
    • The Playground for Exploration
    • Classes, Cases and Ifs
    • Try It Yourself
  • Crystallized Structure
    • Grouping Data with Arrays, Tuples, and Hashes
    • Procs and Blocks
    • Organizing Code: Classes and Modules
    • Package Data and Behavior with Objects
    • Type Inference
    • Type Restrictions
    • Try It Yourself
  • Crystal Programs
    • Build a Rover
    • Build a Point with Structs
    • Use Macros to Define Orientations
    • Build the Rover
    • Try It Yourself
  • Crystal Projects
    • Plan Your Service
    • Create a Project With Dependencies
    • Manage Rovers In Memory
    • Crystal Concurrency
    • Add Kumal Endpoints
    • Your Turn
    • Wrapping Up

Author

Bruce A. Tate is a programmer and CEO of Groxio where he is helping to redefine how computer languages are taught and learned. He’s the author of Seven Languages in Seven Weeks and Programming Phoenix, among other titles, and has been involved with Elixir from the very beginning.

Available exclusive in partnership with our friends at grox.io

Related Titles:

About This Title

Pages: 80
Published: February 2020
ISBN: pending
Edition: 1
Not Yet Printed (NYP)