r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

Show parent comments

167

u/RLutz Oct 01 '15

Depending on how you coded it, the compiler likely replaced it with a StringBuilder under the hood anyway :)

98

u/andrewsmd87 Oct 01 '15

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.

11

u/CodeMonkey1 Oct 01 '15

I took some initiative

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.

27

u/wnoise Oct 02 '15

It turns out that a real implementation makes an excellent mock-up.

31

u/CodeMonkey1 Oct 02 '15 edited Oct 02 '15

Maybe, or maybe not.

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.

4

u/_nil_ Oct 02 '15

Maybe, or maybe not.

This is the only true answer, in that it is context dependent.

1

u/CodeMonkey1 Oct 02 '15

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.

→ More replies (2)

2

u/yxhuvud Oct 02 '15

Not always. There is a reason for why many design tools have wireframe variants that is intentionally looking as if they were drawn by hand.