notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 66afa3b13b77c3f0bf93cb1dbcad6e07f431da71
parent 76591e7247696123e10ab811a50d08606755e7eb
Author: alltheseas <64376233+alltheseas@users.noreply.github.com>
Date:   Tue, 21 Oct 2025 14:20:31 -0500

AGENTS.md: added global variables as anti-pattern

AGENTS.md: added global variables as anti-pattern
Diffstat:
MAGENTS.md | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md @@ -99,7 +99,9 @@ This document captures the current architecture, coding conventions, and design 2. Please make all commits standalone (i.e. so that they can be readily removed tens of commits later without impact the rest of the code). 3. Related to logically distinct code, and standalone commits care must be taken for all code to be human readable, and reviewable by human developers. 4. Please set up code for performance profiling utilizing puffin (e.g. `cargo run --release --features puffin`). -5. Related to Puffin & performance profiling, for code suspected of impacting performance, carefully consider adding performance profiling attributes such as e.g. profiling::function in order to see functions performance in the profiler. +5. Related to Puffin & performance profiling, for code suspected of impacting performance, carefully consider adding performance profiling attributes such as e.g. profiling::function in order to see functions performance in the profiler. +6. Global variables are not allowed in this codebase, even if they are thread local. State should be managed in an struct that is passed in as reference. +