Skip to content

rstraub/mars-rover-kata-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mars Rover Kata Scala

Mars rover code kata solved using Scala.

Goals

  • be pragmatic, don't overdo the solution
  • use the type system to your advantage
  • make the "core" immutable
  • use Scala language's strengths (pattern matching etc)
  • separate concerns (parsing/moving/etc)

Takeaways

  • Bugs easily occurred using the same primitive for different semantics (e.g. swapping x for y coordinate)
  • Tests caught these bugs early

Releases

No releases published

Packages

No packages published

Languages