Editing 754: Dependencies
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
| date = June 16, 2010 | | date = June 16, 2010 | ||
| title = Dependencies | | title = Dependencies | ||
− | | image = | + | | image = Dependencies.png |
| titletext = The prereqs for CPSC 357, the class on package management, are CPSC 432, CPSC 357, and glibc2.5 or later. | | titletext = The prereqs for CPSC 357, the class on package management, are CPSC 432, CPSC 357, and glibc2.5 or later. | ||
}} | }} | ||
==Explanation== | ==Explanation== | ||
− | A compiler is a program that converts code written in a | + | A compiler is a program that converts code, written in a particular programming language, into an executable program. A section of code is said to be dependent on a second segment of code if the results of the first segment are potentially impacted by the second segment. Dependency resolution is part of compiler design, and is the study of determining and correcting dependencies which result in an unwanted, ambiguous, or impossible definition of the dependent section. Requiring that an action occurs if and only if the action has already occurred, like the prerequisite in this comic, is one type of potentially unwanted dependency. |
− | The comic envisions a college computer science course (CPSC432) focusing on "compiler design with dependency resolution" which has itself as a prerequisite. The joke is that the prerequisite is an unresolved dependency, as you must complete this course before you can enroll in it | + | The comic envisions a college computer science course (CPSC432) focusing on "compiler design with dependency resolution" which has itself as a prerequisite. The joke is that the prerequisite is an unresolved dependency, as you must complete this course before you can enroll in it. |
− | This dependency would send a poorly designed compiler into an infinite loop. In real life, the problem is solved by allowing an object to satisfy itself as a prerequisite. This stops the | + | This dependency would send a poorly designed compiler into an infinite loop. In real life, the problem is solved by allowing an object to satisfy itself as a prerequisite. This stops the compilers infinite loop, but may not produce the desired functionality in the program. Another layer of the joke may be that any student who successfully enrolls in the class already knows this solution because they must have employed it in order to get past the apparent infinite recursion in the class prerequisites. |
Managing dependencies is useful in other areas of computer science, e.g. {{w|package management}}. Collections of files are known as "packages". A software package might require that a particular operating system patch (a type of package) be installed first. That package might in turn require other packages be installed, and so on. Therefore, a package installer must know the dependencies of a package, and be able to figure out whether any required packages are missing before continuing with the installation. | Managing dependencies is useful in other areas of computer science, e.g. {{w|package management}}. Collections of files are known as "packages". A software package might require that a particular operating system patch (a type of package) be installed first. That package might in turn require other packages be installed, and so on. Therefore, a package installer must know the dependencies of a package, and be able to figure out whether any required packages are missing before continuing with the installation. | ||
Line 21: | Line 21: | ||
*Requiring that a fourth year course (CPSC 432) be a prerequisite to a third year course (CPSC 357), as the student should be in their fourth year while taking CPSC 432, and should be in their third year while taking CPSC 357. This is analogous to a lower-numbered package requiring a higher-numbered package. | *Requiring that a fourth year course (CPSC 432) be a prerequisite to a third year course (CPSC 357), as the student should be in their fourth year while taking CPSC 432, and should be in their third year while taking CPSC 357. This is analogous to a lower-numbered package requiring a higher-numbered package. | ||
*Requiring that the student knows part or all of the course material (glibc2.5 or greater) before taking the course, as the student is supposed to learn this information from the course. | *Requiring that the student knows part or all of the course material (glibc2.5 or greater) before taking the course, as the student is supposed to learn this information from the course. | ||
+ | |||
+ | Alternately, the title text could be a meta joke where course prerequisites are confused with {{w|system requirements}}. System requirements tell the user what other hardware or software are requied in order for a piece of software to run properly, such as a minimum amount of RAM or a particular operating system. The inclusion of glibc2.5 in the prerequisites might mean that the student needs to have this package loaded rather than be familiar with it. | ||
==Transcript== | ==Transcript== | ||
:[A portion of a page from an imaginary course catalog.] | :[A portion of a page from an imaginary course catalog.] | ||
:Page 3 | :Page 3 | ||
+ | {| class="wikitable" | | ||
+ | |Department | ||
+ | |Course | ||
+ | |Description | ||
+ | |Prereqs | ||
+ | |- | ||
+ | |Computer science | ||
+ | |CPSC 432 | ||
+ | |Intermediate compiler | ||
+ | design, with a focus on | ||
− | + | dependency resolution | |
− | + | |CPSC 432 | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:[The very top of the text for the next course in the table is visible but unreadable.] | :[The very top of the text for the next course in the table is visible but unreadable.] | ||
− | |||
− | |||
− | |||
{{comic discussion}} | {{comic discussion}} | ||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Recursion]] | [[Category:Recursion]] |