Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankdejonge/prove-chad-wrong
https://github.com/frankdejonge/prove-chad-wrong
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/frankdejonge/prove-chad-wrong
- Owner: frankdejonge
- Created: 2022-01-16T09:43:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T04:03:05.000Z (over 2 years ago)
- Last Synced: 2024-05-01T23:28:21.091Z (5 months ago)
- Size: 46.9 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> DISCLAIMER: this is (I hope obviously) a joke.
# Chad is Wrong
Chad is wrong, but he believes he is right. But the truth is that he is in fact wrong, and I'm in fact right.
## Proof of Chad being Wrong
Chad claims that having test files next to your code causes consumers of that package to get a "polluted" autoloader.
While Chad is very convinced he is right, he is in fact wrong. To prove Chad is wrong, I've installed `league/flysystem`,
dumped an optimized autoloader, and committed the entire vendor directory.Even though `league/flysystem` has tests in its `src` folder, they are not present here, because they are excluded in
the [`.gitattributes` file](https://github.com/thephpleague/flysystem/blob/3.x/.gitattributes#L29).## Frank is Right
As can be seen in this directory, Frank is in fact right about test classes not ending up in the autoloader, and there
is actually no "pollution" of the autoloader happening.## Q/A
Q: I am Chad, am I wrong?
A: Yes, you are wrong.Q: I am Frank, am I wrong?
A: No, you are actually right. Chad is wrong.