In Scala it's bad practice to use implicit parameters for summoning traits that aren't type classes. Not all traits required via implicit parameters are type classes, usage via "implicit" isn't what defines a type class, the trait's signature is. Stop using "implicit" for DI.
-
-
Let's ignore firing nuclear missiles for now, but a beginner learning the language who doesn't care how many calls are being make to the database would benefit from being able to read the code without worrying about when the database connection is used. The code is more readable.
-
Or consider a logger parameter. If you have to explicitly pass a logger object to every method that uses it (probably all of them) that's a death-by-a-thousand-papercuts level of distraction in every expression making the important parameters harder to see.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
