Alex Rivera | Logout

What programming shortcuts do you end up regretting or backing out?

Asked 2010-04-13T19:00:20.853
9

I saw this question and it reminded me of AutoGenerateColumns in the old DataGrid. The few times I've used them, I ended up backing it out because I needed data formatting past the standard "spit out the Data Source columns." Likewise, with toggle, it sounds like it would save time, but then you end up needing to keep track of state or something else, and you rewrite the code accordingly.

Are there things that you end up using thinking it will save you time, but end up backing out because it doesn't do what you need?

Edit
Report

1 Answer

2

Every large web project that starts with a huge amount of modularity usually goes too far for the scope of the application that will eventually be built.

So, the web layer calls a delegate interface calls delegate implementation calls service interface calls service implementation calls dao interface calls dao implementation and so on.

And eventually, since you didn't do distribution at this level, you notice that all of your delegate implementations are one line of code, and you pull them out for clarity, after losing some efficiency by writing a hundred delegate classes in the first place.


Or: most projects at one point or another massively overestimate how large the application's userbase will be, and unfortunately, code for that instead of coding more efficiently. A cookbook application with 200 users is a lot more common to write than an industry-defining application with a hundred thousand users every morning, but developers tend to code part - but not all of - their app for the improbable case.

If you're writing hello world, just write the code, and bulk it up later as needed.

answered 2010-04-13T19:30:19.560

Your Answer