Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array). There might also be cases when programmers use...
#5: Post edited
Why storing variables inside a variable?
In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br> There might also be cases when programmers use a variable to hold just one other variable. What could be a good typical simple example for the need in this practice in programming in general? What is a typical problem to solve with this?
#4: Post edited
- In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br>
There might also be cases when programmers use a variable to hold just one other variable.<br>Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_.What could be a good typical simple example for the need in compound variables in programming in general? What is a typical problem to solve with this?
- In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br>
- There might also be cases when programmers use a variable to hold just one other variable.
- What could be a good typical simple example for the need in this practice in programming in general? What is a typical problem to solve with this?
#3: Post edited
- In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br>
- There might also be cases when programmers use a variable to hold just one other variable.<br>
- Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_.
What could be a good typical simple example for the need in compound variables in programming in general? What design pattern could be a good example?
- In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br>
- There might also be cases when programmers use a variable to hold just one other variable.<br>
- Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_.
- What could be a good typical simple example for the need in compound variables in programming in general? What is a typical problem to solve with this?
#2: Post edited
In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array of two or more values).<br>- There might also be cases when programmers use a variable to hold just one other variable.<br>
- Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_.
- What could be a good typical simple example for the need in compound variables in programming in general? What design pattern could be a good example?
- In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array).<br>
- There might also be cases when programmers use a variable to hold just one other variable.<br>
- Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_.
- What could be a good typical simple example for the need in compound variables in programming in general? What design pattern could be a good example?
#1: Initial revision
Why storing variables inside a variable?
In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array of two or more values).<br> There might also be cases when programmers use a variable to hold just one other variable.<br> Either way (holding two or more, or just one), I understand that the common name for this practice is _compound variable_. What could be a good typical simple example for the need in compound variables in programming in general? What design pattern could be a good example?