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

Conversely, we have a single React component for displaying locations, and a whole plethora of different parameters to send into the backend call with a variety of different effects. Having a factory or interface pattern here would have been really nice.


Sure, if that’s the use case. But I think the point of this thread is that in many cases we add functionality despite the lack of immediate necessity, and this causes problems.




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

Search: