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

Absolutely. I have not seen a factory pattern in use in ages. I think the last time was before http://dirtsimple.org/2004/12/python-is-not-java.html was around.


Oooh, check out Django - it uses them for forms (and maybe other things). I've spent far too much time tinkering with modelformset_factory, inlineformset_factory, and my personal favourite, generic_inlineformset_factory.

(As a bonus, they're quite poorly documented too. Yay!)




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

Search: