DEV Community

Cover image for JavaScript for Rails Developers is out now
Rails Designer
Rails Designer

Posted on • Originally published at railsdesigner.com

1 1 2 1

JavaScript for Rails Developers is out now

This article was originally published on Rails Designer


Ruby is Red, JavaScript is yellow,

Two languages every Rails dev should know.

JavaScript for Rails Developers in orange glow,

The book that makes your full-stack skills grow.


I am super excited (and having a bad case of impostor syndrome 😬) to finally announce that JavaScript for Rails Developers is out now!

Get your copy right here: javascriptforrails.com.

If you have pre-ordered, you should have received an email with the download (if not, let me know).

Image description

It is a short and focused book at ~31,000 words (~7 hours of reading!). So a great way to spend your time this long-weekend. 🤓 It will help you become more comfortable writing JavaScript (and understand that of others).

“Finally, JavaScript explained while keeping my Ruby soul intact.”

The book is built around adding a code editor, using Stimulus, in a Rails app. With every chapter new, interesting JavaScript syntax is explored. So in chapter 4.5, Extending with custom features, I go over:

  • using the barrel pattern;
  • namespace importing;
  • array index finding;
  • Object.keys;
  • circular wrapping;
  • and more.

There is also a huge emphasize of writing code that is as great-looking as your Ruby code. Just look at some code from the book:

create(editor, enabled) {
if (!enabled) return

const firstEditor = this.#createClone({ from: editor })
const secondEditor = this.#createClone({ from: editor })

this.#pair(firstEditor, { with: secondEditor })

editor.destroy()

return secondEditor
}

Enter fullscreen mode Exit fullscreen mode

Doesn't that just read beautifully—just like Ruby? “Create clone from editor” and then “pair first editor with second editor”. Chef's kiss!

Preview some more

What is the writing like? Read some of the chapters here:

Pricing

JavaScript for Rails Developers comes in three tiers:

  • Solo, get the book + the code editor built in the book — just $39
  • Professional, everything in Solo + Markdown + Preview variant, Code Playground, JavaScript Widget for live chat and access to Rails Designers (launch Q3, 2025) — only $69
  • Team, everything in the solo tier with a license for 5 developers — $169 (that is 15% off!).

It would mean a lot if you could share JavaScript for Rails Developers at your favorite hangout:

  • The office's water cooler;
  • Your local Ruby/Rails meetup;
  • r/ruby;
  • r/rails;
  • r/rubyonrails (why is there r/rails ánd r/rubyonrails?);
  • Your favorite rubyonrails Discord groups;
  • Your favorite rubyonrails Slack channels;
  • Your company's Basecamp/Linear/Slack/Teams;
  • Twitter/X, LinkedIn, Facebook, Instagram and TikTok.

Just one share would really mean a lot to me. ❤️ Thanks so much for your support!

Want to level up your skills and make JavaScript your second-favorite language? Get your copy right here: javascriptforrails.com.

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

Join the Runner H "AI Agent Prompting" Challenge: $10,000 in Prizes for 20 Winners!

Runner H is the AI agent you can delegate all your boring and repetitive tasks to - an autonomous agent that can use any tools you give it and complete full tasks from a single prompt.

Check out the challenge

DEV is bringing live events to the community. Dismiss if you're not interested. ❤️