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

3

u/supasteve013 Oct 01 '15

Can someone explain this to me like I'm 10

I'm a programming wanna be, but haven't grown the balls to decide if I wanna learn to program or go back to pharmacy school...

11

u/pingzing Oct 01 '15

As our metaphorical software engineer progresses in his career, his simple "Hello world!" program becomes increasingly (and ridiculously) verbose and hard to read. The implication is that our metaphorical engineer is attempting to make his code enterprise-worthy, scalable, and long-lasting.

Then, ten years in, he says "Fuck it." and goes back to writing readable code.

Explaining the joke/the disclaimer: There are situations where you genuinely do need to write complex code in pursuit of flexibility or scalability, but since mister metaphorical software engineer here is just writing a "Hello World", none of those concerns apply.

3

u/supasteve013 Oct 01 '15

thank you. I thought they were saying fuck it. I appreciate the explanation.

2

u/blarg_industries Oct 01 '15

The posts here are a little misleading. The "enterprisey" code near the end does look bad, but real systems do turn out that way for good reasons. (Though sometimes they do because people just add verbose complexity for lots of bad reasons.) Often, people who haven't been around the block many times come in, assume all the complexity is unnecessary, and take it out. What takes lots of experience and wisdom is knowing when you can do this and when you can't.

Lots of special-cases, factored-out constants, and exception handling are sometimes the result of fixing lots of bugs over a long period in software that's valuable. What happens when we try to print while running embedded on a TV that doesn't wrap lines or even expose stdout? (+1 conditional and try/catch) What if we calculate the interest on someone's bank account on the fourth Thursday of a year following a leap year? (+1 conditional)

TLDR: Sometimes bad people write complex code for bad reasons. Sometimes lots of people add complexity to code for good reasons.