# Writing Better, Type-safe Code with Sorbet

DevFeed: [Writing Better, Type-safe Code with Sorbet](<https://devfeed.tech/articles/writing-better-type-safe-code-with-sorbet-1681.md>)

Original publisher: [Read original article](<https://shopify.engineering/writing-better-type-safe-code-with-sorbet>)

Author: Jay Shrivastava

Published: 2020-06-24T16:59:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Code](<https://devfeed.tech/topics/code.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

A Shopify backend developer describes adopting Sorbet for static type checking in a Ruby repository. The article explains how method signatures improve safety and clarity and how typed representations can reduce mistakes when handling complex data types.

## Source excerpt

I want to talk about one contribution that has takeaways for any Ruby developer. Here are 4 reasons for why we adopted Sorbet for static type checking.