Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!.

Questions tagged [state]

Use the [state] tag for questions pertaining to retained information determining the behavior of a program.

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of 14
7 answers
2460 views

I have a lot of experience with Haskell and a little bit of experience with C. The latter is my language of choice when it comes to hardware and hardware-adjacent tasks. In particular, I have used C ...
Score of 1
1 answer
305 views

We have a CAD software extension, where you can draw products like walls, doors, windows, etc., and you can export the drawing as an order, which contains the parts and costs. As part of this export, ...
Score of 0
2 answers
431 views

im kind of a newbie so take me easy i face a problem every time i make a project specially Client projects, which is Global State i always struggle to do it for example, here is the structure of one ...
Score of 2
3 answers
245 views

I’m building a framework with many parallel implementations of strategy patterns, and I want to know the best way to handle the user’s choice of the set of strategies. E.g. I want to calculate the ...
Score of 4
3 answers
1245 views

My SUT class depends on external static state (which generally should be avoided, I know). How do I make sure my tests do not depend on their order of execution? I mean other by introducing some reset(...
Score of 0
1 answer
668 views

Background: I am working in a Java environment using Spring Boot, where I often encounter scenarios where global variable state management is critical, especially within singleton services. I have ...
Score of 2
7 answers
539 views

According to some answers of How are globals any different from a database? that explains how database is different from global state: https://softwareengineering.stackexchange.com/a/319389 https://...
Score of 0
1 answer
248 views

I'm building a mobile app in Flutter, and the project has several distinct layers. The top part is something better described as MVVM: dumb View layer that performs rendering and delegates actions to ...
Score of 0
1 answer
237 views

I am new to React and web development generally so please try to understand if the question seems dumb. So, I am currently making a simple e-commerce app and I was thinking of using state management ...
Score of 13
4 answers
5104 views

Let's say that I have a class called Mission. This class is intended to represent a mission requested by a professor working in a faculty. Mission has a private enum field representing whether the ...
Score of 1
5 answers
429 views

Edit: I'm copying the question but changing the example code. Apparently, I used a bad example earlier that contained an imprue getter. I'm keeping the old example code at the bottom so the first ...
Score of 1
3 answers
616 views

According to Why is Global State so Evil?, I believe we should avoid global state, so suppose I have an App that count user clicks in all pages like it: public class GlobalState{ public int ...
Score of -2
1 answer
284 views

I am trying to build ERP application using React frontend and I have not found decisive answer whether to use object graphs in React state? E.g. I would like to build Invoice view and I have the ...
Score of 0
1 answer
89 views

I am building a .Net Core Blazor Server application. The application creates records of a Project class which move through a workflow with various phases of review and acceptance/rejection before ...
Score of -1
1 answer
484 views

As far as I understand, there is no certain boundaries for the RESTness of an API. However, I would like your help to understand how large and long (in terms of running time) a caching or state ...

15 30 50 per page
1
2 3 4 5
12