e01.org

Source code

Source Code is a 2011 science fiction action thriller film directed by Duncan Jones and written by Ben Ripley. It stars Jake Gyllenhaal as a US Army officer who is sent into an eight-minute virtual re-creation of a real-life train explosion, and tasked with determining the identity of the terrorist who bombed it. Michelle Monaghan, Vera Farmiga, and Jeffrey Wright play supporting roles. It had its world premiere on March 11, 2011, at South by Southwest and was released by Summit Entertainment on April 1, 2011, in North America and Europe. It received positive reviews from critics and was a box office success, grossing $147 million on a $32 million budget.

source code for a "Hello world" program. Taken from the seminal book The C Programming Language, it originates from Brian Kernighan in the Bell Laboratories in 1974. In computing, source code, or simply code or source, is human readable plain text that can eventually result in controlling the behavior of a computer . In order to control a computer, it must be processed by a computer program either executed directly via an interpreter or translated into a more computer-consumable form such as via a compiler. Sometimes, code is compiled directly to machine code so that it can be run in the native language of the computer without further processing. Many modern environments, though, involve compiling to an intermediate representation such as bytecode that can either run via an interpreter or be compiled on-demand to machine code via just-in-time compilation. Source code is typically stored in source files. Beyond software, the term source file is used across other domains — such as documents, images, hardware design, and typography — to refer to the original, editable file from which a distribution format is derived. ==Background== The first programmable computers, which appeared at the end of the 1940s, were programmed in machine code (simple instructions that could be directly executed by the processor). Machine language was difficult to debug and was not portable between different computer systems. Initially, hardware resources were scarce and expensive, while human resources were cheaper. As programs grew more complex, programmer productivity became a bottleneck. This led to the introduction of high-level programming languages such as Fortran in the mid-1950s. These languages abstracted away the details of the hardware, and were designed to express algorithms that could be understood more easily by humans. As instructions distinct from the underlying computer hardware, software is therefore relatively recent, dating to these early high-level programming languages such as Fortran, Lisp, and Cobol. The invention of high-level programming languages was simultaneous with the compilers needed to translate the source code automatically into machine code that can be directly executed on the computer hardware. Some definitions of source code consider it to be the form of code that is modified directly by humans, typically in a high-level programming language. Object code can be directly executed by the machine and is generated automatically from the source code, often via an intermediate step, assembly language. While object code will only work on a specific platform, source code can be ported to a different machine and recompiled there. For the same source code, object code can vary significantly—not only based on the machine for which it is compiled, but also based on performance optimization from the compiler. ===Estimation=== The number of source lines of code (SLOC) is often used as a metric when evaluating the productivity of computer programmers, the economic value of a code base, effort estimation for projects in development, and the ongoing cost of software maintenance after release. ===Communication=== Source code is also used to communicate algorithms between parties, e.g., code snippets online or in books. Computer programmers can find it helpful to review extant source code to learn about programming techniques. The sharing of source code between developers is often cited as a contributing factor to the maturing of their programming skills. Some consider source code an expressive artistic medium. Source code often contains comments—blocks of text marked for the compiler to ignore. This content is not part of the program logic, but is instead intended to help readers understand the program. Companies often keep the source code confidential in order to hide algorithms considered a trade secret. Proprietary, secret source code and algorithms are widely used for sensitive government applications such as criminal justice, which results in black box behavior with a lack of transparency into the algorithm's methodology. The result is avoidance of public scrutiny of issues such as bias. ===Modification=== Access to the source code (not just the object code) is essential to modifying it. Understanding extant code is necessary to understand how it works and before modifying it. The rate of understanding depends both on the code base as well as the skill of the programmer. Experienced programmers have an easier time understanding what the code does at a high level. Software visualization is sometimes used to speed up this process. Many software programmers use an integrated development environment (IDE) to improve their productivity. IDEs typically have several features built in, including a source-code editor that can alert the programmer to common errors. Modification often includes code refactoring (improving structure without changing function) and restructuring (improving structure and function simultaneously). Nearly every change to code introduces new bugs or unexpected ripple effects, which require another round of fixes. Code reviews by other developers are often used to scrutinize new code added to a project. The purpose of this phase is often to verify that the code meets style and maintainability standards and that it is a correct implementation of the software design. According to some estimates, code review dramatically reduce the number of bugs persisting after software testing is complete. Along with software testing that works by executing the code, static program analysis uses automated tools to detect problems with the source code. Many IDEs support code analysis tools, which might provide metrics on the clarity and maintainability of the code. Debuggers are tools that often enable programmers to step through execution while keeping track of which source code corresponds to each change of state. ===Compilation and execution=== Source code files in a high-level programming language must go through a stage of preprocessing into machine code before the instructions can be carried out. After being compiled, the program can be saved as an object file and the loader (part of the operating system) can take this saved file and execute it as a process on the computer hardware. Some programming languages use an interpreter instead of a compiler. An interpreter converts the program into machine code at run time, which makes them 10 to 100 times slower than compiled programming languages. ==Quality== Software quality is an overarching term that can refer to a code's correct and efficient behavior, its reusability and portability, or the ease of modification. It is usually more cost-effective to build quality into a product from the start rather than try to add it later in a development process. Higher quality code reduces lifetime cost to both suppliers and customers as via higher reliability and maintainability. Maintainability is the quality of software enabling it to be easily modified without breaking extant functions. Following coding conventions such as using clear function and variable names that correspond to their purpose makes maintenance easier. Use of conditional loop statements only if the code could execute more than once, and eliminating code that will never execute can also increase understandability. Many software development organizations neglect maintainability during the development phase, even though it will increase long-term costs. Technical debt is incurred when programmers, often out of laziness or urgency to meet a deadline, choose quick and dirty solutions rather than build maintainability into their code. A common cause is underestimates in software development effort estimation, leading to insufficient resources allocated to development. A challenge with maintainability is that many software engineering courses do not emphasize it. Development engineers who know that they will not be responsible for maintaining the software do not have an incentive to build in maintainability.

References

  1. ^ Sciretta, Peter. "The Hottest Unproduced Screenplays of 2007" . Slash film . Archived from the original on June 23, 2011 . Retrieved June 15, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  2. ^ Powers, Lindsay; Messina, Kim (April 1, 2010). "How Jake Gyllenhaal Wooed Duncan Jones to Direct 'Source Code' " . The Hollywood Reporter . Archived from the original on May 4, 2011 . Retrieved June 6, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  3. ^ Richards, Dean (April 1, 2011). "Gyllenhaal says the 'Bean' could be metaphor for 'Source Code' " . Chicago Tribune . Retrieved May 20, 2011 . {{ cite web }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  4. ^ "Source Code Filming Completes Today" . ManMadeMovies . April 29, 2010. Archived from the original on July 24, 2012 . Retrieved November 22, 2010 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  5. ^ "Source Code filming in Ottawa's train station" . Weirdland . January 13, 2010. Archived from the original on October 29, 2013 . Retrieved June 16, 2012 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  6. ^ "Entertainment" . Ottawa Sun . March 17, 2010. Archived from the original on June 29, 2017 . Retrieved April 3, 2013 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  7. ^ "Exclusive: Duncan Jones on MOON, Source Code & Judge Dredd" . ManMadeMovies . July 28, 2010. Archived from the original on July 24, 2012 . Retrieved November 22, 2010 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  8. ^ "Source Code – Company Credits" . Internet Movie Database . Archived from the original on May 25, 2016 . Retrieved June 30, 2018 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  9. ^ Warmoth, Brian (September 21, 2010). " 'Source Code' Bringing Duncan Jones And Clint Mansell Back Together" . MTV . Archived from the original on November 15, 2011 . Retrieved November 22, 2010 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  10. ^ Fernandez, Jay A. (December 16, 2010). " 'Moon' Director Duncan Jones Returns to SXSW With 'Source Code' " . The Hollywood Reporter . Archived from the original on March 16, 2011 . Retrieved June 6, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  11. ^ "Source Code" . AlloCiné . Archived from the original on January 3, 2012 . Retrieved October 28, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  12. ^ "Source Code Blu-ray (2011)" . Amazon.com . Archived from the original on May 19, 2011 . Retrieved July 8, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  13. ^ "Source Code" . Amazon.com . Archived from the original on May 22, 2011 . Retrieved July 8, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  14. ^ "Source Code Film & TV" . Amazon.com . Retrieved July 8, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  15. ^ "Source Code (2011) – Daily Box Office Results" . Box Office Mojo . Archived from the original on April 6, 2011 . Retrieved April 27, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  16. ^ Butler, Tom (December 31, 2019). "1997 hit 'Men In Black' is still yet to make a profit says screenwriter" . Yahoo! . Archived from the original on August 4, 2020 . Retrieved May 21, 2020 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  17. ^ "Source Code Reviews" . Metacritic . Archived from the original on January 3, 2018 . Retrieved August 18, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  18. ^ "Box office report: 'Hop' springs into first place with $38.1 mil | EW.com" . Entertainment Weekly . Archived from the original on November 5, 2021 . Retrieved November 5, 2021 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  19. ^ "Source Code (2011) - Box Office and Financial Information" . The Numbers . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  20. ^ " 'Source Code': A 'Groundhog Day' With Scientific Mumbo-Jumbo" . TheWrap . Archived from the original on April 8, 2011 . Retrieved March 31, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  21. ^ " 'Source Code' is a disaster 'Groundhog Day' with twists" . Sign On San Diego . Archived from the original on October 21, 2012 . Retrieved March 31, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  22. ^ "Peter Travers: 'Source Code' is Confusing But Exciting" . Rolling Stone . Archived from the original on April 3, 2011 . Retrieved March 31, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  23. ^ Holmes, Brent (April 6, 2011). "Source Code feels a lot like Deja Vu" . Western Gazette . Archived from the original on July 14, 2014 . Retrieved June 10, 2014 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  24. ^ "Arizona Republic: "Movies: 'Source Code' 4 Stars" . AZ Central . March 30, 2011. Archived from the original on May 31, 2016 . Retrieved April 28, 2020 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  25. ^ "Review: Source Code" . Chicago Sun-Times . Archived from the original on April 3, 2011 . Retrieved March 31, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  26. ^ Turan, Kenneth (April 1, 2011). "Movie review: 'Source Code' " . Los Angeles Times . Archived from the original on April 3, 2011 . Retrieved March 31, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  27. ^ Murray, Rebecca. "2011 SCREAM Awards List of Nominees" . About.com . Archived from the original on April 6, 2015 . Retrieved September 15, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  28. ^ "2011 Nebula Awards Nominees Announced" . A SFWA . February 20, 2012. Archived from the original on February 23, 2019 . Retrieved February 27, 2012 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  29. ^ "2012 Hugo Nominees" . A SFWA . Archived from the original on October 12, 2014 . Retrieved April 10, 2012 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  30. ^ "10th Annual VES Awards" . visual effects society . Archived from the original on July 22, 2015 . Retrieved December 31, 2017 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  31. ^ "Source Code" . British Board of Film Classification . Retrieved January 3, 2022 . SOURCE CODE is a sci-fi action thriller about a soldier who wakes up on a train in the body of a stranger, and is told that he must locate the train's bomber within eight minutes. {{ cite web }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  32. ^ Wronski, Richard (March 9, 2011). "Compared to Metra train's movie fate, delays look tame" . Chicago Tribune . Archived from the original on June 6, 2014 . Retrieved June 5, 2014 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  33. ^ "Duncan Jones tells us what really happened at the end of Source Code " . io9 . Archived from the original on August 13, 2011 . Retrieved May 8, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  34. ^ "Practice Makes Perfect" . Writers Guild of America . Archived from the original on October 15, 2011 . Retrieved June 16, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  35. ^ a b "Source Code" . British Film Institute . Archived from the original on July 13, 2012 . Retrieved April 29, 2014 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  36. ^ a b Charity, Tom (April 1, 2011). " 'Source Code' a smart, original sci-fi thriller" . CNN . Archived from the original on November 9, 2012 . Retrieved April 1, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  37. ^ Kaufman, Amy (March 31, 2011). "Movie Projector: "Hop" will jump over rivals this weekend" . Los Angeles Times . Archived from the original on July 18, 2012 . Retrieved April 1, 2011 . $32 million after tax credits Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  38. ^ a b c "Source Code (2011)" . Rotten Tomatoes . Archived from the original on August 29, 2011 . Retrieved April 8, 2024 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  39. ^ "Duncan Jones" . Twitter . December 15, 2010. Archived from the original on March 6, 2014 . Retrieved January 14, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  40. ^ a b "Weekend Box Office Results for April 1–3, 2011" . Box Office Mojo . Archived from the original on April 14, 2011 . Retrieved April 27, 2011 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  41. ^ a b "Source Code (2011)" . Box Office Mojo . Archived from the original on May 3, 2012 . Retrieved May 14, 2012 . Wikipedia revision 1378413452, retrieved 2026-11-21 · 1795215600.0
  42. Kernighan, Brian W. Programming in C: A Tutorial . Bell Laboratories, Murray Hill, N. J . · 1791068400.0
  43. Why Submit the TeX/LaTeX Source? . arXiv . · 1791068400.0
  44. Supported file formats for PDF conversion . Adobe Acrobat . · 1791068400.0
  45. Artefactual Systems and Digital Preservation Coalition. Preserving Documents . July 2021. · 1791068400.0
  46. Best Practices for Open Source Hardware 1.0 . Open Source Hardware Association . retrieved 2026-07-26 · 1785020400.0
  47. Importing CAD Files into Unreal Engine using Datasmith . Epic . · 1791068400.0
  48. The Ultimate Guide to Design Source Files . The Designs Experts . 24 June 2025. · 1791068400.0
  49. Digital Image File Formats and When to Use Them . Newcastle University . 20. · 1791068400.0
  50. Tobin, Jonathan. Does A Designer Have to Turn Over Source Files When A Client Asks For Them? . 2013-10-17. · 1791068400.0
  51. Translation Commons. Font Creation Guidelines . Transla . 2025. · 1791068400.0
  52. Source Formats . Glyphs Handbook . retrieved 2026-08-09 · 1786230000.0
  53. Stallman, Richard. Gnu General Public License . GNU . February 1989. · 1791068400.0
  54. Willis, Nathan. Adobe's open source font experience . LWN.net . 2013-08-28. retrieved 2026-08-09 · 1786230000.0
  55. Applying the OFL to fonts that you design . SIL Open Font License . retrieved 2026-08-09 · 1786230000.0
  56. FAQs about fonts . Adobe . retrieved 2026-08-09 · 1786230000.0
  57. Onboarding fonts to Google Fonts . Google Fonts Guide . retrieved 2026-08-09 · 1786230000.0
  58. The sharing of source code between developers is often cited as a contributing factor to the maturing of their programming skills. Some consider source code an expressive Media (arts)|artistic mediu . · 1791068400.0
  59. Offutt, Jeff. Overview of Software Maintenance and Evolution . · 1791068400.0
  60. Code reviews by other developers are often used to scrutinize new code added to a project.sfn|Dooley|2017|p=272 The purpose of this phase is often to verify that the code meets style and mai . · 1791068400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Source code". 1791101084. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378413452

JSON record · API collection · citation policy