Notes for section 1 - Introduction to programming - #1
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds introductory explanatory notes for Module 1, defining core terms (source code/source file) and contrasting compilation vs. interpretation, with Python-specific context on requiring an interpreter.
Changes:
- Added definitions for “source code” and “source file”.
- Added explanations of compilation vs. interpretation and implications for distribution/execution.
- Added Python-specific notes positioning Python as interpreted and requiring an interpreter.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,27 @@ | |||
| ### Source code: | |||
|
|
|||
| `A program written in a high level programming language is call a source code ( in contrast to the ma hine code executed by computers).` | |||
|
|
||
| ### Source file: | ||
|
|
||
| `The file containing the source code is called the source file` |
|
|
||
| ### Compilation: | ||
|
|
||
| `The source program is translated once by getting a file containing the machine code. Now we can distribute the file worldwide; the program that performs this translation is called a compiler or translator.` |
|
|
||
| ### Interpretation: | ||
|
|
||
| `We can translate the source program each time it has to be run. The program performing this kind of tranformation is called an interpreter, as it interprets the code every time it is intended to be executed. It also means that we cannot just distribute the source code as-is, becayse the end-user also needs the interpreter to execute it.` |
|
|
||
| Due to some very fundamental reasons, a particular high-level programming language is designed to fall into one of these two categories. | ||
|
|
||
| There are very few languages that can be both compiled and interpreted. Usually, a programming language is projected with this factor in its constructors' minds – will it be compiled or interpreted? |
|
|
||
| There are very few languages that can be both compiled and interpreted. Usually, a programming language is projected with this factor in its constructors' minds – will it be compiled or interpreted? | ||
|
|
||
| - # read-check-execute |
| ### What does this all mean for us? | ||
|
|
||
| - Python is an interpreted language. This means that it inherits all the described advantages and disadvantages. Of course, it adds some of its unique features to both sets. | ||
| - If we want to program in Python, we'll need the Python interpreter. we won't be able to run our code without it. Fortunately, Python is free. This is one of its most important advantages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds explanatory notes to the
1.1_introduction_to_programming.mdfile, clarifying key concepts related to source code, compilation, and interpretation. The notes also specifically highlight Python's status as an interpreted language and its implications.New conceptual notes:
Python-specific context: