Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Ruby on Types: Static Typing with Ruby and Ruby on Rails
Rating: 4.2 out of 5(3 ratings)
21 students

Ruby on Types: Static Typing with Ruby and Ruby on Rails

Everything you need to know about RBS and static typing in Ruby
Created byAndrey Eremin
Last updated 12/2024
English

What you'll learn

  • Learn the basics of RBS - the language to describe Ruby codes using types.
  • Write secure software in Ruby powered by types.
  • Write Ruby programs faster and spend less time writing tests.
  • Get into Static Type checking in Ruby.

Course content

6 sections38 lectures1h 14m total length
  • What is Type checking?1:03
  • Static Typing vs. Dynamic Typing0:27
  • Dynamic Typing1:49

    Explore dynamic typing in Ruby, where variable types are determined at runtime, offering rapid prototyping and concise code, but risking type errors without thorough tests.

  • Static Typing0:36
  • Static Typing with RBS1:19
  • Summary of Static Typing vs. Dynamic Typing0:22
  • Static vs Dynamic typing

Requirements

  • Basic knowledge of Ruby
  • Basic knowledge of Ruby on Rails (optional)

Description

Unlock the power of type checking in Ruby with RBS. This comprehensive course is tailored for Ruby developers seeking to enhance code quality, maintainability, and safety. Whether maintaining legacy code or building advanced systems, mastering RBS and tools like Steep empowers you to write better, error-resistant Ruby code while simplifying debugging and collaboration.

Through practical examples and hands-on exercises, you’ll explore:


  • What type checking is and why this is important.

  • What RBS is and how it integrates with Ruby’s dynamic nature.

  • Get to know alternatives to RBS, pros and cons.

  • Writing, managing, and using type signatures for clarity and reliability.

  • Leveraging tools like `rbs collection`, `rbs_rails`, and `Steep` for Rails applications.

  • Working with third-party libraries and addressing metaprogramming challenges, including Ruby on Rails framework.

  • Implementing RBS workflows in real-world projects and CI/CD pipelines.

  • Using your favourite IDE with static type checking.

  • Write better documentation with inline type definitions.

  • Write safer Ruby code with less tests.

This course combines theory with hands-on examples, giving you the tools to adopt RBS confidently and effectively. Whether you're a seasoned Rubyist or just diving into the language, this course will expand your toolkit and help you build better software.

Take the leap and future-proof your Ruby development skills with RBS.

Who this course is for:

  • Any level of IT engineers who would like to dive into Static Type checking in Ruby.
  • Ruby developers who keen on learning RBS and switch from Sorbet