dimanche 6 août 2017

What type of pattern should you use for CRUD when all you need is Read

I was recently asked on a coding interview to write a simple Java console app that does some file io and displays the data. I was going to go to town with a DAO but since I never manipulate the data past a read, the entire idea of a DAO seems overkill.

Anyone know a clean way to ensure separation of concern without the weight of full CRUD when you don't need it ?

Aucun commentaire:

Enregistrer un commentaire