From ff89293da36400000c21d3f78f7f8f6696c54536 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:31:18 -0800 Subject: [PATCH] Contributing: rules for names and for bool parameters Adds a Names section to CONTRIBUTING.md with two rules reviewers check: - No new terms without the maintainer's OK. Types, members, comments and docs use the words .NET, ADO.NET and SQL already use, or names already in the repository; a new word for a concept is proposed first. - No bool parameter that switches what a method does; write two methods whose names say what each does. Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7dc7e03d..f818eb94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,6 +32,11 @@ How code gets into Open.Database.Extensions (ODX): the code rules a reviewer che - **Generated code is at least as fast as hand-written code.** Parity is the floor, not the goal. - **Benchmarks consume what they measure** (return it, or keep it alive), so the compiler cannot remove the work. A small gap counts only when it repeats and is larger than an A/A run of the same code. +### Names + +- **No new terms without the maintainer's OK.** Name types, members, comments and docs with the words .NET, ADO.NET and SQL already use, or with names already in this repository. A new word for a concept is proposed to the maintainer before it is used. +- **No `bool` parameter that switches what a method does.** Write two methods whose names say what each one does. + ### Members and types - Members of an `internal` type are `public` or private, not `internal`.