Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fat models are clearly a bad idea. But DDD (also called view models elsewhere in this discussion) seem to be better than function based views.

My bias comes from working in a dot-com era startup which had a single 2000 line java function to compute tax.

+1 for static typing and avoid embedding types in variable names.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: