|
int newNum = Utils.PrestoChango(x);
|
# ¿ Jun 18, 2008 15:09 |
|
|
# ¿ Apr 19, 2024 11:34 |
|
OK, so I've been on a big refactoring kick at work much to my lazy slacker coworkers chagrin. I swear I just found a case of a developer feud personified in code. There are these classes that look like they started out simple enough, then each of them starts subclassing and modifying the base, leading to a clusterfuck of similarly named types repeated in 3 different projects with different interfaces. I thought at most we had two, but this subclassing interfacing war took 4 other classes with it. I spent 3 hours just figuring out what the hell was going on and then separating out the classes. Oh and then there's the guy who thinks everything is a "manager" so, he subclasses, say, employee, and calls it "employee manager" *adds 4 fields* Another guy who no longer works here apparently decided to practice his design patterns and created an interface, a virtual base, and then 8 concrete implementations of it so he could ... copy text from a datarow...
|
# ¿ Jul 3, 2009 15:38 |
|
Janin posted:The bug's somewhere else, not in that code. Performance issues aren't They have Unit Tests. That's more than most places.
|
# ¿ Jul 4, 2009 18:05 |
|
switch is awful and is the wrong thing to use 95% of the time
|
# ¿ Jul 25, 2009 01:42 |
|
Regular expression can be amazing things, but more likely than not, you'll forget the syntax after you've moved on, so maintaining them is a real pain in the rear end.
|
# ¿ Aug 1, 2009 15:48 |
|
|
# ¿ Apr 19, 2024 11:34 |
|
quadreb posted:"Moved on"? Regular expressions are an integral part of modern business programming. Business programming?
|
# ¿ Aug 2, 2009 03:01 |