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

A feature usually consists of all three HTML/CSS/JS.

So, if you split by technology, you don't have the code belonging to one feature in one place.



This is the most correct answer. It also felt wrong to me when I first started doing serious frontend development (I started it with AngularJS), but than it all made so much sense after a few projects and after I _experienced_ the benefites.


But even then, a feature can end up spanning multiple files for reusability.




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

Search: