Assignment title: Information


Q DQ2 - Compiled versus interpreted code Collapse Code may seem complex, but much of it can be explained using real-world examples and analogies. For example, consider the following scenario: You take a holiday to a city you have never visited before. You know someone there, and decide to pay this friend a visit. You hire a car, but now you need directions. You have two options. (1) You could use your mobile phone and get live help (directions) from your friend during the entire drive. (2) You could use a GPS device to give you both directions and traffic reports. However, you remember that GPS calculates directions based on traffic conditions, and updates on said conditions usually lag about 10 to 15 minutes behind a traffic incident (e.g., traffic jams and accidents). If you translated these choices into programming counterparts, they become quite reflective of compiled and interpreted programming languages. Both compiled and interpreted programming languages have their merits and weaknesses. When you think of them simply as categories of languages, those differences might be hard to recognise. However, it is likely that the driving analogy immediately triggered thoughts of pros and cons. You quickly evaluated each option based on your past experiences. This is the power of making real world analogies centred on programming concepts. For this Discussion, your challenge is to draw an analogy between these two driving choices and their programming language counterparts, and assess each choice. To prepare for this Discussion: Review your Weekly Learning Resources with a focus on compiled vs. interpreted code. The resource is Brookshear, J. G. Computer Science: An Overview XML Vital Source ebook for Laureate Education, 11th Edition. Pearson Learning Solutions. VitalBook file. Reflect on ways to explain compiled and interpreted code concepts using real world examples and analogies. To complete this Discussion: Post: Create an initial post in which you draw an analogy from the alternatives of receiving live navigation directions [for driving] versus using GPS, to the case of a compiled versus an interpreted code. Address the following: Analyse the pros and cons of each driving navigation alternative. Analyse the pros and cons of compiled vs. interpreted code. Fully state and justify any choices, assumptions or claims that you make using the suggested Learning Resources for this Week and/or your own research.