Professional Documents
Culture Documents
Comprog
Comprog
Comprog
WEB APPLICATIONS
- a special form of client-server application where
we have a client that interacts with a user in the
form of a web page
- server is responsible for producing the results the
Code blocks - sometimes referred to as a compound user will see and to accept and process the input
statement. from the user.
- a lexical structure of source code which is - are unique because, the logic of our application is
grouped together done on the server side, and it's the server that will
- Blocks consist of one or more declarations and produce the pages the user sees.
statements.
Braces or curly brackets {} - common technique that MOBILE APPLICATIONS
many languages employ is using parentheses. - programs that are designed to run on a mobile
device, such as a smartphone and tablets.
TYPES OF APPLICATIONS - might also use other features of the device, such
as the GPS, sending text messages, or sensing
STANDALONE APPLICATIONS the movement of the device using its
- is a program that can work offline and does not accelerometer.
necessarily require a network connection. - can be connected, same as client-server setup
- These applications do not need to interact with DISTRIBUTED APPLICATION
other programs. - an application that does not run on one single
Examples - Text editors such as Notepad on machine, but instead lets different parts of the
Windows or TextEdit on Mac, simple games such program run on multiple computers that
as solitaire, and paint programs. communicate with each other over a network.
CLOUD-BASED APPLICATIONS 3. WORKING WITH PACKAGES TO SHARE CODE
Cloud computing - first mentioned in 1996, but it was not Open source - denoting software for which the
until Amazon released its Elastic Compute Cloud in original source code is made freely available and
2006 that it became widely popular. may be redistributed and modified.
Package manager - is a piece of software that will
Advantages of adopting cloud-based applications
help us find, download, and install code.
Reduced costs - we will not need to buy a server
computer, and we will not need to maintain this
computer.
Scalability - is how we can adapt when the amount of
work our application is doing changes.
Python installation instruction
CLOUD SERVICE MODELS
Infrastructure as a Service (IaaS) - handles hardware 4. AVOIDING CONFLICTS USING NAMESPACE
resources such as servers, storage, firewalls, and so Namespace is a declarative region that provides a
on. scope to the identifiers (the names of types,
Platform as a Service (PaaS) - builds upon the IaaS. functions, variables, etc) inside it.
This contains readily configured environments that - used to organize code into logical groups and to
are targeted to a specific purpose. prevent name collisions that can occur especially
Software as a Service (SaaS) - This will provide you with when your code base includes multiple libraries.
everything—the hardware, the server software, as
well as applications—and the only thing you need to SEQUENCE – THE BASIC BUILDING BLOCK OF A
do is to configure it to work the way you want it to. COMPUTER PROGRAM
UNDERSTANDING VARIABLES Floating-point data type - family of data types that act
- When writing programs, we continuously work alike and differ only in the size of their domains (the
with data. allowable values).
- As we are using this data, we need a way to keep - represents number values with fractional parts.
track of it. - technically stored as two integer values: a
NAMING VARIABLES mantissa and an exponent.
- The name we give a variable should reflect
what data it represents
Some standard rules for naming variables are as
follows:
- It must begin with a letter of the alphabet or an
underscore (_).
- After the first character, the name can contain Composite type - data type that is made up of more than
letters, underscores, and numbers. one value
Fixed array - When we have a fixed size array, we say OPERATORS – THINGS WE CAN DO WITH
how many slots we want it to have when we create VARIABLES
it.
Arithmetic operators
- This size will not change. numbers[10] = 100
Dynamic array - A dynamic array (or list, vector, or
sequence) is an array that can grow and shrink as
we use it.
- numbers.add(11), numbers[11] = 100
Record type - Records are sometimes called
structures or structs. To use them, we first need to
define what they look like.
Relational operators