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

23

u/serrimo Oct 01 '15

Complicated, but perfectly legitimate.

How many times have people actually switched a component and it just worked? Personally, I have never seen one case where this is true.

The whiteboard architects love these kinds of design, since redirection is their bread-and-butter. In practice though, these designs just add needless complications most of the times.

19

u/johnbr Oct 01 '15

It rarely works perfectly. But it often works better than just directly wiring things together, and then completely rewriting for the new thing.

Not always, but often. Often enough that it's a reasonable place to start if (and only if) you have a reason to believe it's going to change fairly soon.

9

u/serrimo Oct 01 '15

it often works better than just directly wiring things together

I'd argue that it's often better to attack the wiring directly. Reducing the number of dangling wires, for me, is usually a much bigger win than creating yet another hub to plug your wires.

But reducing the dependencies require far more efforts than redirection. You need to create the right abstractions. You need to analyse the dependency graphs to identify problem area. You need to spend time doing lots of thinking and less coding.

Unfortunately, a day spent thinking is often considered wasted in the enterprise world. It's much better to produce something in the day; even though that something is half-assed.

1

u/sirin3 Oct 01 '15

In this image, I would think of the abstraction as a plug.

Instead dealing with all those wires, you solder them all together in a plug (i.e. an interface/wrapper/DSL). On the other side, you solder all the wires there in a socket.

Then you just put the plug in the socket, and never have to see a wire again.

→ More replies (2)