All Questions
Tagged with structures or structure
6,559 questions
Advice
0 votes
6 replies
106 views
Is it considered an anti-pattern to use nested static classes for service commands and responses?
I am structuring the command and response models for my service layer. Currently, putting all models into a single, flat folder (like /commands or /responses) is becoming hard to manage due to the ...
Best practices
1 vote
8 replies
140 views
When is it appropriate to use the "Async" suffix when naming a function? Yield, or non-blocking, or both?
Let's say I named a function DoSomethingAsync. Now, without running it. Do you think it yields, or runs immediately, but returns something later, and allows the caller to continue running more stuff ...
1 vote
1 answer
122 views
ESP32S3 Timer with IRQ, program flow control with WDT activated (arduino)
Trying to control my program time flow with a IRQ, all supervised from a WDT (watchdog) set at 1 min, if program doesn't reset the WDT, system resets. After boot (NVS and FS data fetching), a TIMER is ...
Advice
2 votes
11 replies
6k views
I can't understand structure padding in C/C++
I watched a few tutorials on YouTube. They said to assume a 32-bit architecture and then said "a single CPU cycle can only access a word (equals the CPU's native size i.e 4 bytes) at a time from ...
Advice
0 votes
2 replies
120 views
Fortran: (or other languages) how to handle a linked list with allocatables instead of pointers?
(UPDATE: after various suggestions, some solutions were added at the end. It does seem to be possible to avoid pointers altogether, but it still is not completely ideal...) In the question Can I ...
0 votes
0 answers
80 views
Debugging Structure formulas in Jira Cloud
In the non-cloud version of Jira, Structure had a debug feature where you could step through the Jira formula's execution and see the values in each variable. That feature either doesn't exist in ...
2 votes
4 answers
170 views
Why does including header with a structure definition not lead to a redefinition error?
I have simple program to make a point with x and y coords and function to move it. There are three files: main.c structs.h structs.c structs.h Has the definition of structure typedef struct point{ ...
1 vote
1 answer
54 views
Lightroom plugin to create published collection set
I'm beginning with programming with Lua and want to create a plugin that loops through a folder structure and creates Published collection sets (and smart collection sets afterward). I've come this ...
0 votes
2 answers
63 views
Can I transition a toggle (with onclick) between two different grid structures?
I can't seem to find a way to achieve the transition between two different grid structures. The toggle is working fine; I'm simply toggling the class of the divs within the outlining grid-div where ...
2 votes
1 answer
131 views
Error: Invalid dot name structure assignment because the structure array is empty
I'm having this error but I don't understand why. I'm creating a structure of size 3x4x4 with 6 fields within loops. Then, I would like to create two more fields for the whole structure. How can I do ...
3 votes
1 answer
152 views
How does the restrict keyword in C behave differently with pointers to structures compared to pointers to primitive types? [closed]
I’m trying to understand the nuances of the restrict keyword in C, particularly how its behavior might differ when applied to a pointer to a structure versus a pointer to a primitive type like int. ...
0 votes
1 answer
117 views
Joining tables with Bigquery Materialized View
I have data like this: ID Text Result I Want 1 abc null Passed 1 Passed Passed Passed 1 def null Passed 2 ghi null Failed 2 jhg null Failed 2 Failed Failed Failed There are several ways to do this I ...
1 vote
1 answer
111 views
What are the drawbacks of implementing dequeue using procedure int? [closed]
I'm trying to implement a queue and for dequeue I've purposely done with an int procedure. What would be possible drawbacks for using an int? int dequeue(queue *q) { int res = 0; // list not empty ...
-1 votes
2 answers
199 views
How to Validate if a List Matches a Given Structural Pattern?
I am trying to write a Python function to validate whether a given list follows the same structure as a predefined "model" list, which in my particular case is: model = [ ["h", ...
0 votes
0 answers
73 views
Convert nested structures and arrays in coldsfusion
I am not proficient at using structures and arrays but got something to work. Any tips for improving this?screen grab of nested structure <cfset data = DeserializeJSON(_JSNresponse) <cfloop ...