logoalt Hacker News

csallenyesterday at 10:13 PM5 repliesview on HN

> Imagine taking a picture on autoshot mode and refusing to look at it. If the client doesn’t like it because it’s too bright, tweak the settings and shoot again, but never look at the output.

The output of code isn't just the code itself, it's the product. The code is a means to an end.

So the proper analogy isn't the photographer not looking at the photos, it's the photographer not looking at what's going on under the hood to produce the photos. Which, of course, is perfectly common and normal.


Replies

kace91yesterday at 10:24 PM

>The output of code isn't just the code itself, it's the product. The code is a means to an end.

I’ll bite. Is this person manually testing everything that one would regularly unit test? Or writing black box tests that he does know are correct because of being manually written?

If not, you’re not reviewing the product either. If yes, it’s less time consuming to actually read and test the damn code

show 1 reply
strayduskyesterday at 10:55 PM

Exactly this. The code is an intermediate artifact - what I actually care about is: does the product work, does it meet the spec, do the tests pass?

I've found that focusing my attention upstream (specs, constraints, test harness) yields better outcomes than poring over implementation details line by line. The code is still there if I need it. I just rarely need it.

show 1 reply
alanbernsteinyesterday at 10:18 PM

Right, it seems the appropriate analogy is the shift from analog-photograph-developers to digital camera photographers.

6510today at 4:23 AM

The product is: solving a problem. Requirements vary.

add-sub-mul-divyesterday at 11:04 PM

A photo isn't going to fail next week or three months from now because it's full of bugs no one's triggered yet.

Specious analogies don't help anything.