On Thu, Jun 20, 2013 at 06:52:26PM +0200, deadalnix wrote: > On Thursday, 20 June 2013 at 14:46:30 UTC, Andrei Alexandrescu > wrote: > >I dislike this. I've seen conference talks and such where the > >speakers present the inevitable throwaway implementation that is > >patently wrong but makes the first unittest pass. That mindset > >doesn't sit well with me at all. I don't see why I need to waste > >time writing tongue-in-cheek code that is nonsensical and will > >obviously be deleted next. > > > > There is this war story about the team coding some early version of > Excel. The management decided to put very severe deadline on when > features. Many dev ended up writing method like this, so the feature > can be delivered in time, as it is now a bug if it fails.
That's terrible. It encourages the kind of sloppy coding that makes so much "enterprise" code look nastier than what a highschool dropout writes in his sleep. OTOH it explains a lot of things about why early versions of Excel were so atrocious. :-P T -- It only takes one twig to burn down a forest.
