Gis Programming Assignment 1
Gis Programming Assignment 1
TITLE: ASSIGNMENT 1
HOW PYTHON EXECUTES A SCRIPT:
PYTHON INTERPRETER:
The interpreter initializes the Python Virtual Machine. PVM is crucial as it’s what converts
the byte code into binary code.
After conversion, the results are then printed. Python prints out the correct result if there
are no high-level language errors. Otherwise it prints out an error message.
Most people recommend the use of Python 3.x interpreter as it has more improved features such as
bug fixes, security and standard library modules.
There are 2 main general structures: the flat layout and the src layout
The “flat layout” refers to organising a project’s files in a folder or repository, such that the
various configuration files and import packages are all in the top level directory.
.
├── README.md
├── noxfile.py
├── pyproject.toml
├──setup.py
├──awesome_package/
│ ├── __init__.py
│ └── module.py
└──tools/
├── generate_awesomeness.py
└── decrease_world_suck.py
The “src layout” deviates from the flat layout by moving the code that is intended to be
importable (i.e import awesome_package, also known as import packages) into a
subdirectory.
.
├── README.md
├── noxfile.py
├── pyproject.toml
├── setup.py
├── src/
│ └── awesome_package/
│ ├── __init__.py
│ └── module.py
└── tools/
├── generate_awesomeness.py
└── decrease_world_suck.py
They are important because they include functionality that goes beyond text editing. They
provide a central interface for common developer tools, making the software development
process more efficient.
i. It is easy to use and navigate, with a simple interface that is well-suited to new
programmers.
ii. It is lightweight and fast, which makes it a good choice for older computers or those with
limited resources
iii. It is included with Python, so you don’t need to download or install anything extra to start
using it.
i. It lacks some advanced features that more experienced programmers might find useful, such
as debugging tools or code completion.
ii. Its simple interface can make it difficult to find certain features or settings.
iii. It does not have the best performance when working with large projects.
2. Aptana Studio.
It is an open source IDE for building web applications.
It supports JavaScript, HTML, DOM and CSS with code completion, outlining,
JavaScript debugging, error and warning notifications and integrated
documentation.
The main features of Aptana studio are:
i. GIT Integration
ii. IDE Customization
iii. Integrated debugger
iv. Deployment wizard
v. Built-In Terminal
vi. HTML, CSS and JavaScript Code assist
PyCharm as an IDE
Most professional developers use PyCharm and it has been considered the best IDE for
python developers.
It was developed by the Czech company JetBrains and it’s a cross-platform IDE.
It gives daily tips to improve your knowledge of how you can use it more efficiently which is
a very good feature.
It comes in two versions, community version and a professional version where the
community version is free but the professional version is paid for.
Its other features are:
i. It is considered an intelligent code editor, fast and safe refactoring, and smart code.
ii. Features for debugging, profiling, remote development, testing the code, auto code
completion, quick fixing, error detection and tools of the database.
Advantages of PyCharm
It takes more space than other text editors, which degrades the functionality of code
The community version is idle for Python development only and does not allow to use of
other programming languages.
The professional version is somewhat expensive.
It can be complicates for beginners to set a virtual environment and variable, and thus they
might not prefer to use it.