3 ms·
Super typical developer thinking :) two pieces of code look the same but are not doing the same things. I usually see it when people implement add/edit for som
by ozim 4y ago
Super typical developer thinking :) two pieces of code look the same but are not doing the same things.
I usually see it when people implement add/edit for some entity, that should be separate forms but are crammed into one to be "DRY".
- edgyquant 4y agoThis is why views are so nice. You can reuse the view and controller logic and only write a new data model that updates instead of creates (tbh though those can just be two functions on some data model.)
- eurasiantiger 4y agoOn the contrary, CRUD forms are an ideal candidate for being schema-driven.
- ghayes 4y agoPUT versus POST