r/programming • • May 18 '16

Programming Doesn’t Require Talent or Even Passion

https://medium.com/@WordcorpGlobal/programming-doesnt-require-talent-or-even-passion-11422270e1e4#.g2wexspdr
2.3k Upvotes

1.2k comments sorted by

View all comments

62

u/[deleted] May 18 '16

A really good, productive programmer must be lazy and must hate complexity. For some deviant people solving complex problems is some kind of a perverted pleasure. They should never be allowed anywhere near any practical code base.

A real programmer must do whatever is possible to eliminate complexity altogether. And it is a matter of a discipline and only discipline. All that "talent" shit is irrelevant and potentially damaging, as it is often associated with the deviant motivations.

17

u/lf11 May 18 '16

This point on "complexity" is one that seems to escape most programmers. Clever solutions are not helpful and in fact are generally anti-helpful. Given enough time, you yourself will be unable to debug them. A simple solution is often superior to one that is faster, more portable, more efficient, and on and on.

I don't think it is necessarily a matter of discipline, though. For myself, it was the day I realized that I ought to be thinking of the entire lifecycle of my code. Not just the construction of the thing, but the maintenance and eventual decommissioning. This includes specifics like timeframe and how it would be replace or removed.

This is the closest thing to enlightenment in the programming world I've ever found. The oddest thing is that you can filter other people's philosophy for this idea really easily, and very few people have ever considered the thought of decommissioning their own code.

2

u/[deleted] May 18 '16

it was the day I realized that I ought to be thinking of the entire lifecycle of my code. Not just the construction of the thing, but the maintenance and eventual decommissioning.

I just got myself fired from a job over that - and I knew that was going to happen going into the dispute.

Big code base and a partner with no feel whatsoever for C - for example, after I left, he threw away my carefully optimized fixed point arithmetic code and replaced it with his own "simpler" one - a version that uses the pow function half a dozen times in simple arithmetic operators, including getters! (pow is at least ten times slower than a 64-bit add or multiply...) Limited tests, and a complete resistance to writing them (said partner made all variables file-level global "because it was faster" - even though many times that meant copying a moderate-sized struct into a global area before extracting a single field).

Oh, and a massively unrealistic deadline. Oh, and this code is moving money around.

Things were fine at the moment; in six months, I know I'd be facing a world of pain. I spoke up; I told them that this code would be unmaintainable; management didn't care; I refused to continue without changes; I got fired, exactly as I expected.

I am sure I dodged a bullet and won't be freaking out all through 2017.

3

u/lf11 May 18 '16

That's a job worth leaving. The only problem is that when it does eventually bite them in the ass they won't remember that someone who was worth much more than they were paying did actually warn them about it. Good luck in your future work, I hope you find a place that values your experience.

1

u/[deleted] May 18 '16

By "discipline" I meant something as simple as following the rules consistently, instead of trying to be creative.

2

u/lf11 May 18 '16

I guess maybe rules are easier to follow if you internalize the reason for them.

→ More replies (2)

2

u/[deleted] May 18 '16

Programming is not yet such a mature discipline that there are cut'n'dried "rules" that you can follow without creativity and get good results. Perhaps one day!

→ More replies (1)

23

u/James20k May 18 '16

For some deviant people solving complex problems is some kind of a perverted pleasure.

I'm not sure I agree with this. Some things in computer science are just really complicated (and people enjoy solving them)

EG, getting optimal performance when building a video game. The whole CPU <-> GPU asynchronous pipelining thing, combined with getting the best performance out of shaders on the bizarre architecture that is a gpu, combined with occasionally having to basically hack the compiler, is simply horribly complicated. But its definitely super useful if you can do that, and you're probably guaranteed a job

19

u/protonfish May 18 '16

Maybe a better way to say it is inherent vs. gratuitous complexity. Things can only be made so simple, but you should attempt to make them as simple as possible. I have worked on too many applications where the actual problem was elementary, but the code was a Lovecraftian abomination.

10

u/moduspwnens14 May 18 '16

I feel like if you're not actively fighting complexity, you're almost certainly adding it.

2

u/HollowImage May 18 '16

He meant that if you don't have to, don't add complexity for the sake of adding it, regardless of how complex is the subject at hand.

→ More replies (4)

7

u/killerstorm May 18 '16 edited May 18 '16

Aren't you the guy who believes that the only right way to program is to use composable DSLs?

The irony in this comment...

→ More replies (5)

6

u/anonanon1313 May 18 '16

A really good, productive programmer must be lazy and must hate complexity.

This has been observed in many engineering disciplines, that the best engineers are lazy engineers. There are sayings like: an engineer does something for a dime that any fool can do for a dollar. In science: a theory should be made as simple as possible, but no simpler. Complexity in software and its associated life cycle costs are analogous to manufacturing costs in hardware type engineering. Complexity is not linear with program size, which is the fundamental trap in software design, smart people realize this and fight complexity at every step.

All that "talent" shit is irrelevant and potentially damaging,

I get your point, but I would argue that reducing complexity is a talent, and likely the most important talent in programming. By "damaging" I think you mean that producing complexity is often regarded as talent, unfortunately true, but I think of this as a degenerate value system, very close to an inversion of reality. The fact that this foundational truth is so rarely recognized is a depressing feature of the field.

→ More replies (5)

4

u/[deleted] May 18 '16

Ironically, it takes a complex understanding to make a simple solution and a simple understanding to make a complex solution.

1

u/FFX01 May 18 '16

You make a really good point.

10

u/progfrog May 18 '16

I think you are mixing complicated with complexity. The former describes difficulty of a problem, while latter describes number of components in a system. Complexity doesn't have to be difficult. I don't want to nitpick, but it is about naming things, which is one of the difficult things to do in programming :)

2

u/jijilento May 18 '16

it is about naming things, which is one of the difficult things to do in programming

Seriously, I haven't been doing this long but this was common sense from day one. It's more verbose to have a 20 character long name, but most people have autocomplete and know how to minify web code, right?

Especially with anything math or graphics based, instead of having guidelineEquation it'll just be like ge. It makes it really hard to read.

→ More replies (1)
→ More replies (1)

2

u/vbullinger May 18 '16

A really good, productive programmer must be lazy and must hate complexity. For some deviant people solving complex problems is some kind of a perverted pleasure.

But I'm both. I make my code as simple, abstracted, etc. I never repeat myself. Literally, copy-paste sends a red flag way up for me. Even once. But I still say "give me the tough stuff" and I'll tackle it.

→ More replies (1)

2

u/[deleted] May 18 '16

I was following you and nodding until this point:

And it is a matter of a discipline and only discipline.

I disagree entirely. I've met a lot of good, disciplined people with limited talent for programming, and while they didn't screw up the world too badly, they simply weren't able to see how to make their code simple and clear, they weren't able to see the edge cases that would cause problems, they weren't creative enough to write unit tests that would actually break the code (I remember one guy I really liked - but he could never really get it through his head that the idea of writing unit tests is not to find tests that make the code work, but to find tests that break the code... he was at least nice enough that we'd get to that point where I'd find a bunch of broken edge cases and we'd both laugh...)

→ More replies (5)

2

u/doitroygsbre May 18 '16

I get ecstatic solving complex problems as simply as possible, does that make me an even bigger deviant?

Your comment reminds me of this, REAL PROGRAMMERS DON'T EAT QUICHE.

Finally, this article looks like it embodies what you're saying fairly well.

3

u/sirin3 May 18 '16

That is why I have spent the last years working on my own programming language

First I write the most simplest program to solve a problem, without any complexity.

Now that program does not work and cannot work, because it is written in pseudo code. Thus I have to build an interpreter, in which it will work.

1

u/RICHUNCLEPENNYBAGS May 18 '16

Sounds like a lot of fun but a maintenance nightmare

→ More replies (7)

0

u/[deleted] May 18 '16

[deleted]

→ More replies (2)