Ruby under the influence [of Scala]
28-Mar-2019 2182
I recently rolled off of a Scala project and onto a Rails project. I noticed that the Rails that I’ve been writing has changed as a result of learning Scala, so I thought it would be interesting to document some of these changes.Types SystemsThe most obvious differences are due to Scala’s static type system. Scala is typed language meaning that all variables have a defined or inferred type, and those types are verified for correctness at compile time. Moving from Scala’s type system back to Ruby’s dynamic types has made me more thoughtful about the types that I am passing around.In Scala function definitions are often written in the form of:.
Ruby under the influence [of Scala] #ruby #rubydeveloper #rubyonrails #under #influence #Scala] https://rubyonrails.ba/link/ruby-under-the-influence-of-scala