<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Good Practices on Polimath</title><link>https://haptonstahl.org/polimath/tag/good-practices/</link><description>Recent content in Good Practices on Polimath</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</managingEditor><webMaster>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</webMaster><copyright>Stephen Haptonstahl</copyright><lastBuildDate>Wed, 07 Jan 2026 00:00:00 -0400</lastBuildDate><atom:link href="https://haptonstahl.org/polimath/tag/good-practices/index.xml" rel="self" type="application/rss+xml"/><item><title>Good practices: Naming Things</title><link>https://haptonstahl.org/polimath/good-practices-naming-things/</link><pubDate>Wed, 07 Jan 2026 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/good-practices-naming-things/</guid><description>&lt;blockquote&gt;&lt;p&gt;There are only &lt;a href="https://martinfowler.com/bliki/TwoHardThings.html" target="_blank" rel="noreferrer"&gt;two hard things&lt;/a&gt; in Computer Science: cache invalidation and naming things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Phil Karlton&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;p&gt;Bad names create confusion. Good names:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Provide &lt;strong&gt;clarity to consumers&lt;/strong&gt; about what to find inside by telling us &lt;em&gt;why&lt;/em&gt; we have the named thing.&lt;/li&gt;
&lt;li&gt;Provide &lt;strong&gt;guidance to producers&lt;/strong&gt; about what should and should not go inside, and tell us &lt;em&gt;how&lt;/em&gt; we create the named thing.&lt;/li&gt;
&lt;li&gt;Are &lt;strong&gt;easy to use&lt;/strong&gt;: concise, memorable, easy-to-spell, not random or disconnected from how and why we have the named thing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Avoid &amp;ldquo;collisions&amp;rdquo;&lt;/strong&gt; = repeating a name of something else that is not distinguishable from context.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is not a complete guide to naming, but rather a compilation of good practices&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; that generalize what I have found useful. We&amp;rsquo;ll discuss:&lt;/p&gt;</description></item></channel></rss>