<p>Today, I was at another School of Code hackathon event, mentoring a team of three Developers as they planned and built an application within a day.</p>
<p>During the day, we looked at some example documentation that included variable names like <code>err</code>, <code>req</code>, and <code>res</code>.</p>
<p>I don't like short variable names like this.</p>
<p>I'd suggest calling them what they are - <code>error</code>, <code>request</code> and <code>response</code>.</p>
<p>This makes the code clearer and easier to read and understand, particularly if you aren't using types and need additional context.</p>
<p>Readability is important as <a href="/daily/2024/08/07/people-read-more-code-than-they-write">people read more code than they write</a>.</p>
format:full_html
processed:|
<p>Today, I was at another School of Code hackathon event, mentoring a team of three Developers as they planned and built an application within a day.</p>
<p>During the day, we looked at some example documentation that included variable names like <code>err</code>, <code>req</code>, and <code>res</code>.</p>
<p>I don't like short variable names like this.</p>
<p>I'd suggest calling them what they are - <code>error</code>, <code>request</code> and <code>response</code>.</p>
<p>This makes the code clearer and easier to read and understand, particularly if you aren't using types and need additional context.</p>