Ruby under the influence [of Scala]
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper