|
|
|
|
|
by simonw
2224 days ago
|
|
Something I realized working on a large internal codebase at a company: any line of code you write is liable to be copied-and-pasted at some point in the future. And that's good! Consistency is a very valuable quality of large codebases worked on by many engineers. If I want to figure out how to write a unit test for a service call, find an existing example of that pattern and copy that. Resist the temptation to invent a new, very slightly better way of doing that. There's a big corollary to this: if you find yourself doing something for the very first time in that particular codebase, take the time to do it well. Because everyone else will be copying your code for the future lifetime of the project. |
|
I’ve felt that there is a potentially a role missing here: a kind of free-floating code librarian who is not attached to any particular team and could be called upon to perform basic research of existing patterns. Part of this role could be to maintain the kind of newbie-friendly documentation that tends to fall between the gaps of tool/infra/product teams. Maybe the job title could be “software informatician”.