"Against" can also mean something like "adjacent to" or "in contact with", like "let's put the chair against this wall".
As an addendum, my first language is Portuguese, and a direct translation for this word is "contra"¹ which fits all the meanings for "against" listed in Merriam-Webster, except the adjacency one. I've never seen "contra" being used for this meaning in the wild, and I guess this is the reason I feel a bit off about it and never used it myself for that meaning when communicating in English.
> - "to program against a standard" instead of "to program based on a standard"
both idiomatically correct enough
> - "to match against a pattern" instead of "to match the pattern onto the thing"
the second one reads very strangely and I would not be sure what you meant, first is _very_ idiomatically correct
> - "to compare against a list" instead of "to compare with items from a list"
second one is a little strange in the sense of feeling like too many words
> - "to file an issue against the repository" instead of "file an issue at the repository"
second one feels wrong, first is correct but a little weird, "on" is probably what I would write; you can also file "with" if it is a bureaucracy, you file tax forms "with" the irs
> starting to experiment with x against a new repo
Is still weird. It’s not incorrect, but it feels like the author should have used ‘in’ here.
- "to push your hand against a wall" - "to press a grinder against some metal" - "to push a mold against the clay"
There's a Newton's third law kind-of thing going on, where two things push against each other, and affect each other.
For "to program against a standard" I am imagining some malleable computer code being pushed against an unyielding form or mold until it conforms to the intended shape (i.e. standard). A similar deal as TDD (test-driven development).
It seems to me that the second and third examples are forms of "compare with and contrast against" the latter being the "relationship of opposition" you mention.
Thinking aloud, "to file an issue against a repository" grammatically resembles "to file a lawsuit against a person" and is similar in that you are registering a complaint against some problem.
In the tweet by Simon Willson at the top of the blog post, he uses the word "against":
English is not my native tongue, but I always take the use of this preposition as if to state an adversarial relationship between two things, a relationship of opposition between them. Therefore, sometimes I find it odd the way it is used in programming-related context. A few examples of what I mean: It is possible (and very likely) that my proposed meanings are grammatically or even semantically wrong, but I feel that "against" is being correctly used in these examples because I can see a slight opposition between the two things in them, and I can understand that some people might even find an adversarial relationship there. However, in the specific case of Simon Willson's tweet, the use of "against" sounds even more off because I fail to see a repository and Git notes as being adversaries or opposite to each other. So the question is: is only me, as non-native speaker, that finds this usage (not only Willson's, but the examples too) a bit weird, or do native speaker also have similar sentiments?