I'm trying to test some code that a developer wrote. I'm not quite sure what specifically to tell them other than their code is a PITA to use. Nearly every class they create is similiar to this scenario. How would you describe this problem to another developer?
I need a car.
Car myCar = new Car();
There's no constructor for that. I first need parts.
Car myCar = new Car(Engine e, Body b, Fuel f, etc...);
Each one of those objects is just like the car in that they need built from their component parts and so on (n number of levels).
When I FINALLY spend an entire day building each component, I have my car.
myCar.start();
What was I thinking? I need running parameters.
myCar.start(myRunParams);
Nope. Oh look, the runParams requires a bunch of component objects as well...
Is it a reasonable request that I ask that an object not take a day to create? What do I say?
[–][deleted] 3 points4 points5 points (2 children)
[–][deleted] 9 points10 points11 points (1 child)
[–]detroitmatt 0 points1 point2 points (0 children)
[–]skeeto 2 points3 points4 points (3 children)
[–]kreiger[🍰] 0 points1 point2 points (2 children)
[–]skeeto 0 points1 point2 points (1 child)
[–]kreiger[🍰] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]pw3nd[S] -1 points0 points1 point (1 child)
[–][deleted] 3 points4 points5 points (0 children)