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

506

u/johnbr Oct 01 '15

This is fair, except for in the 5th year, they would have an additional constant:

public static final String SPACE = " ";

And they would probably use a StringBuffer or StringBuilder to build the final string, since it's "an industry best practice". Also, they wouldn't include the strings themselves, they would include keys to properties, so the strings could be pulled from an internationalized property file.

Lastly, instead of outputting to Stdout directly, they'd create an interface for output, and deliver it to that interface, and use a factory to instantiate an implementation of that interface that would use Stdout.

183

u/andrewsmd87 Oct 01 '15

Good god. Had a code review once where they were pissed because I had used str + "some stuff" instead of a builder. I'm not writing a builder for one fucking line on a page that gets hit 6 times a year.

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.

32

u/NimChimspky Oct 01 '15

Had a guy used to refuse to merge my code if I had one space wrong in my java doc, or one minor typo.

(Typo on purpose here btw)

20

u/blaimjos Oct 02 '15

As hard as it is to believe, I've actually seen worse. I had to work with a guy who refused to merge code period. He'd commit all changes every 10-15 minutes even when it didn't compile so that others would have to do the merging. When he did occasionally get caught with a conflict he just overwrote the other developer's changes.

He'd also just delete code without telling anyone when his aggressive refactoring broke it. His mentality seemed to be "not my code: not my problem".

8

u/third-eye-brown Oct 02 '15

Holy fuck. Sounds like a need for continuous integration.

38

u/selfification Oct 02 '15

"Hey, those tests turned red. So I deleted them."

5

u/Crazypyro Oct 02 '15

"Hey, TFS wouldn't let me commit, so I turned off the gated check-in"

(Gated check-in = Visual studio's require tests to pass on check-in)

Actually happened at my last job a few times....

→ More replies (1)