Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, what you are describing is diagram to code ^_^


Let's quibble!

The phrase "A as B" tends to imply that "A" came temporally and causally first, then "B" was generated from "A" somehow. "B" is some kind of view, summary or transform of "A".

So I read "diagram as code", as that we have a diagram, and we are going to interpret it as code. We start with a diagram, and get code. A lot of visual programming type projects are in fact, diagrams as code.

Similar to the traditional text as (isomorphic to the) code (it is transformed into).

But "code as diagram", is what we have here. We are viewing the code, which came first, as a diagram which summarizes it. In a lossy but useful way. The diagram cannot be executed, so there is no diagram (acting) as code.


Interesting. When I read "A as b", I read it as "A (represented) as B".

Software as a service. Infrastructure as code. Diagram as code.


In SaaS we’re really saying “A used as/for B”, not “A represented as B”. IaC fits your definition. I suppose that descriptive linguistics says that all of these contradictory uses are valid and their meaning is picked up through context. I still (stubbornly?) feel that my usage is a little more logical than others, though.

“Starring Gene Hackman as Royal Tenenbaum”—this means that Gene Hackman portrays Royal Tenenbaum, not vice versa


You explained it better than I could have.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: