Don’t Use ‘new’ in Names

5 August 2024 by Phillip JohnstonDo not use “new” as part of a name. When providing an improved interface, function, etc., provide a more accurate name that describes what the new thing is and how it is differentiated from the old thing it’s related to. If you cannot find a suitable name, use a version. While inelegant, this still allows you an explicit, non-confusing reference. When referencing function that provides a “new” object, instance, etc., prefer alternatives such as “CreateX” or “AllocateX.” When referring to variables (e.g., value/new_value), use an alternative name that shows how the value differentiates from the …

To access this content, you must purchase a Membership - check out the different options here. If you're a member, log in.