posted 2 years ago
I learned in my Java textbook that everything in programming essentially consists of data and procedures. This makes some sense, because in an object, there is data (instance variables) and procedures that manipulate the data (methods). However, I am a little confused about what make up other constructs in Java. For example, an if statement: It is not data, so is it a type of procedure? Is a while-loop a procedure, since it's not data? What about an assignment? If these are not data or procedures, then what are they? How do they fit in to the foundations of computer science and programming? I am basically asking for an effective taxonomy of different programming constructs so that it all acts as a cohesive whole in my brain.