Static Typing in Ruby with a Side of Sorbet | Heroku

Ruby is a dynamic language, which means that types are checked when the code is run. If you try to call a method on an object that does not exist, the compiler will not complain, you'll only find out about that error when the code is executed and you get a NoMethodError.Static languages avoid this problem. In a static language, such as Java, the compiler is told or can interpret the type of each variable, and return values from a method or function. This means, among other things, that if you try to call a method that does not exist on an object you will get an error at compile time.
Static Typing in Ruby with a Side of Sorbet | Heroku #ruby #rubydeveloper #rubyonrails #heroku https://rubyonrails.ba/single/static-typing-in-ruby-with-a-side-of-sorbet-heroku

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles