[GH-ISSUE #110] Get rid of globals #67

Closed
opened 2026-02-27 10:15:35 +03:00 by kerem · 1 comment
Owner

Originally created by @matze on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/110

Originally assigned to: @matze on GitHub.

The pervasive use of statics throughout the codebase is good for performance and was manageable when wastebin started out but it's a pain in the ass and frankly speaking not very idiomatic. Long story short: they need to go and all global data be stored in some runtime structure, e.g. most likely in the AppState.

Originally created by @matze on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/matze/wastebin/issues/110 Originally assigned to: @matze on GitHub. The pervasive use of `static`s throughout the codebase is good for performance and was manageable when wastebin started out but it's a pain in the ass and frankly speaking not very idiomatic. Long story short: they need to go and all global data be stored in some runtime structure, e.g. most likely in the `AppState`.
kerem closed this issue 2026-02-27 10:15:35 +03:00
Author
Owner

@matze commented on GitHub (Feb 6, 2025):

There is a work-in-progress branch which will break things around the base URL, so mark it as 3.0.

<!-- gh-comment-id:2640060414 --> @matze commented on GitHub (Feb 6, 2025): There is a work-in-progress branch which will break things around the base URL, so mark it as 3.0.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#67
No description provided.