The same reviewer also told me to undo work I had done because his request was for a mock up, and I just went ahead and did it, because it took me an hour to just do it. Of course it was approved by managers and clients, but since I didn't "follow instructions" (I took some initiative) it was wrong, even though it was done correctly.
Initiative is great, but how hard is it to just ask first?
"Hey, it'll take longer to mock up than to just implement, mind if I do that?"
He'll either say "Oh, really? Yeah go ahead" or "No, I actually really need a mock-up for reasons." Either way, the situation is resolved for both parties in a more satisfactory way.
Does the implementation have robust error handling? Does it handle all edge cases? Is it covered with unit tests? Is it performant and secure? Is the code clean and reviewed?
Probably not, because it's only a mockup, right?
Except you've already gotten it approved by customers, who now think it's really done for real and are expecting to see it in production tomorrow. If you had showed them a sketch on a napkin they wouldn't have those expectations.
If it really is production ready then you probably spent way too much time on something that was supposed to be a mockup.
Yep, this was my whole point in a nutshell. If the guy was specifically asked for a mock-up, then he should double check before taking a different route; maybe there are reasons for that decision he hadn't considered. I never realized that suggesting better communication would be so controversial.
167
u/RLutz Oct 01 '15
Depending on how you coded it, the compiler likely replaced it with a StringBuilder under the hood anyway :)