This is what Jayesh Bhoot looks like, with a lopsided smile on its right, which almost closes his right eye while smiling, which strongly implies that he needs to work on his lazy left-side cheek muscles.

Effective Scala, part 2 - domain modelling

Posted on in

Finding the right level of abstraction is more important than the best level of abstraction.

For example, in a problem involving doors and windows and facades, if the domain is constrained to only deal with surface area, then modelling the doors and windows and facade in terms of Rectangle is the right level of abstraction instead of modelling them as Door, Window, and Facade respectively.

Post author's photo Written by Jayesh Bhoot