Once you have your newly converted Scala codebase, you’ll be working with it for a while. Here are some practicalities you should be aware of and some general tips to help manage your codebase.
map
to start with. Wait until everyone is comfortable before switching over.
It’s also great to know what to avoid when you’re first starting out. I wish I knew some of these things before I started:
<<?
. That just doesn’t read as intuitively as addRequestParameter
. In fairness, Dispatch offers both variants but the upshot is to be skeptical of libraries that overuse operator overloading.ResultSet
s but it has such a unintuitive DSL for doing so, it makes you wonder what was wrong with doing it manually.You’ll face plenty of other challenges: