2 ms·
View models/decorators have served me very well in this case. The view model would take the marble instance, viewing user instance, etc and decide which attribu
by cheald 12y ago
View models/decorators have served me very well in this case. The view model would take the marble instance, viewing user instance, etc and decide which attributes it should emit as JSON. The result is frequently very clean, very maintainable code.