---
title: "Discussion on \"Variable naming\" | Hashnode"
description: "Discussion on \"Variable naming\". Name your variable to improve readability such that it would be hard for you to use it incorrectly.\nBelow is a subtle bug where I wanted to archive old records:\nrecords = model.objects.filter(status='archived', added__gt=older)\nIt reads:\n\nget records..."
url: "https://hashnode.com/posts/variable-naming/64d3d122d9934467baf6fc8f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Variable naming](https://blog.danwald.me/variable-naming?utm_source=hashnode&utm_medium=feed)

Name your variable to improve readability such that it would be hard for you to use it incorrectly. Below is a subtle bug where I wanted to archive old records: records = model.objects.filter(status='archived', added\_\_gt=older) It reads: get records...

Aug 9, 2023 · 1 min read · blog.danwald.me  
Read the article

-   [#variables](https://hashnode.com/tag/variables)
-   [#naming](https://hashnode.com/tag/naming)

## Written by

[Danny Crasto](https://hashnode.com/@danwald)

@danwald · dubai, uae

  
[View profile](https://hashnode.com/@danwald)

backend/cloud engineer | mentor | pythonista

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
