5 ms·
The first “big” project I worked on was a monorepo, and it ended up somewhere in the neighborhood of 300k loc/sloc, I can no longer recall which, but over a thi
by hinkley 7y ago
The first “big” project I worked on was a monorepo, and it ended up somewhere in the neighborhood of 300k loc/sloc, I can no longer recall which, but over a third of that was generated code.
This was a datapoint on a theory I have that projects where all the code is being actively stewarded (instead of abandoned code nobody understands) have less than about 15k (human) lines per developer. If Google’s ratio of generated code is near that, then with 40k developers they’re not far from that ratio.
- forwhomst 7y agoI currently work at a company with a monorepo where they generate artifacts like protocol buffers libraries for Go and python, and check in those artifacts. That's not the way Google likes to do it. At Google they just check in the proto file and build the library artifacts at build time with a rule like https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library https://docs.bazel.build/versions/master/be/protocol-buffer....