Hacker News new | past | comments | ask | show | jobs | submit login

Only somewhat jokingly, this is the start of things like doBillCustomer().



My favorite recently is a class named CustomerCommandMapEmbelisherConverter.

It's not a good name. Nor is it concise, informative or anything vaguely useful.

But I get the strong feeling it comes from someone spouting off a line along the lines of "we need to name things for what they do" and then someone else just coming up with that.

In your case I'm going to guess doBillCustomer() is about 2.5k lines long with a copy of its entire logic duplicated and it branches based on annual or monthly billing and subtle bugs have been fixed in one implementation but not the other and now they are diverged such that they are only 93% the same but that means all bets are off. There are 15 levels of nesting and it interacts with at least 5 external systems during all of that.

Am I close?


"I'm gonna code me a new minivan!" --Wally




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: