Re:There's no shame in code that is simply "good enough"
by drumdance on Sunday January 01, 2012 @11:27PM
(#3414784)
I try to think in terms of interfaces, but implement quick & dirty.
So, for example, I may imagine that data sources for a page will come from several places: the db, Google maps, an api like Twitter etc. And I will create stub classes to capture this concept, but the methods will just return hard-coded elements. Eventually if the project goes anywhere I can build out the underlying methods as necessary.
I find this helps me feel like I'm doing real engineering but not get too lost in the abstractions.
So, for example, I may imagine that data sources for a page will come from several places: the db, Google maps, an api like Twitter etc. And I will create stub classes to capture this concept, but the methods will just return hard-coded elements. Eventually if the project goes anywhere I can build out the underlying methods as necessary.
I find this helps me feel like I'm doing real engineering but not get too lost in the abstractions.