INTEGRATIVE
PROGRAMMING AND
TECHNOLOGIES 1
PC223
INTEGRATIVE PROGRAMMING CAN REFER TO
TWO DIFFERENT THINGS:
1. Integrating software components:
This is the more common meaning. In this context, integrative
programming deals with the techniques and approaches for
combining existing software components to form a complete system.
It's the "glue" that connects different parts of an IT system. This can
involve:
a. System integration: Connecting different systems, even if they use
different technologies, platforms, or programming languages.
b. Application integration: Sharing data and functionality between
different applications.
c. Data integration: Combining data from multiple sources into a
single, unified format.
INTEGRATIVE PROGRAMMING CAN REFER TO
TWO DIFFERENT THINGS:
2. Combining different programming paradigms:
Less commonly, integrative programming can also refer to a specific
programming paradigm that combines different styles of programming, such as
object-oriented, functional, and declarative programming, within a single project.
This allows programmers to leverage the strengths of different paradigms to create
more flexible and powerful solutions.
Here are some additional things to know about integrative programming:
1. It often involves using different communication mechanisms and data
standardization techniques to ensure smooth interaction between components.
2. It can be challenging due to the potential for compatibility issues and the need to
understand different technologies.
3. It is becoming increasingly important as software systems become more complex
and interconnected.
COURSE DESCRIPTION
Introduces students to integrative programming. Includes
intersystem communication, data mapping and
exchange, integrative coding, scripting techniques,
software security and an overview of programming
languages.
COURSE REQUIREMENTS
Students are expected to maintain and promote the highest
standards of personal honesty and professional integrity. Each
student has to attend regular class sessions within the semester
and shall comply with the requirements of the course before the
end of the semester.
For this course, the following is/are the requirement/s:
Dynamic Web Pages
To receive credit, student must achieve a course grade of at least
3.0. The weighting of the grade is described in the evaluation
procedures.
EVALUATION PROCEDURES
TWO DIFFERENT APPROACHES TO
PROGRAMMING LANGUAGES
They differ in how they are translated into machine code, which is the language that
computers understand.
Compiled languages
1. Compilation: Compiled languages are translated into machine code before they can
be run. This translation is done by a program called a compiler. The compiler reads the
source code of the program and translates it into machine code that is specific to the
target machine.
2. Advantages: Compiled programs tend to be faster and more efficient than
interpreted programs because they do not need to be translated every time they are
run. They also have more direct access to the hardware, which can give them better
performance.
3. Disadvantages: Compiled programs are not as portable as interpreted programs.
This means that they cannot be run on just any machine without being recompiled.
Additionally, the compilation process can be time-consuming.
4. Examples: C, C++, Java, Fortran
TWO DIFFERENT APPROACHES TO
PROGRAMMING LANGUAGES
They differ in how they are translated into machine code, which is the language that
computers understand.
Interpreted languages
1. Interpretation: Interpreted languages are translated into machine code on the fly,
line by line, as the program is being run. This translation is done by a program called
an interpreter.
2. Advantages: Interpreted languages are more portable than compiled languages
because they do not need to be compiled for a specific machine. They are also easier
to learn and use because they do not require a separate compilation step.
3. Disadvantages: Interpreted programs tend to be slower and less efficient than
compiled programs because they need to be translated every time they are run. They
also have less direct access to the hardware, which can limit their performance.
4. Examples: Python, Ruby, JavaScript, PHP
APPLICATION VERSUS SCRIPTING
LANGUAGES
Application Languages:
• Purpose: Build full-fledged software applications with complex functionalities, user
interfaces, and data management.
• Examples: C++, Java, C#, Python (large applications), Go
• Characteristics:
o Compiled: Often compiled for performance and efficiency.
o Complex syntax: Require more in-depth programming knowledge.
o Structured development: Often use specific paradigms like Object-Oriented
Programming (OOP).
o Resource-intensive: Can demand more processing power and memory.
o Applications: Games, operating systems, business applications, web servers,
desktop apps.
KEY DIFFERENCES: APPLICATION VERSUS
SCRIPTING LANGUAGES
1. Scope: Applications are bigger undertakings, while scripts are
focused on specific tasks.
2. Complexity: Applications have more complex structures and
paradigms, while scripts are often simpler and easier to write.
3. Performance: Compiled applications generally run faster, while
interpreted scripts can be slower but flexible.
4. Development Time: Building applications usually takes longer
and requires more planning, while scripts can be quicker to
write and test.
PROMINENT SCRIPTING LANGUAGES
Web Development:
1. JavaScript: The undisputed king of web scripting, powering
interactive elements and client-side logic.
2. Python: Widely used for back-end development with popular
frameworks like Django and Flask.
3. PHP: Still prevalent in many legacy and custom web
applications.
4. Ruby: Popular for rapid development and known for its
developer-friendly syntax.
PROMINENT SCRIPTING LANGUAGES
Automation and System Administration:
1. Bash: The shell scripting language for Unix-like systems,
automating tasks and system management.
2. Python: Versatile for automating various tasks, system
administration, and DevOps environments.
3. PowerShell: Powerful scripting language for Windows
systems and automation.
PROMINENT SCRIPTING LANGUAGES
Data Science and Scientific Computing:
1. Python: Dominant in data science, machine learning, and
scientific computing with libraries like NumPy, Pandas, and
Scikit-learn.
2. R: Another prominent language for statistical analysis and
data visualization.
3. Julia: Gaining traction for scientific computing and machine
learning due to its speed and ease of use.
PROMINENT SCRIPTING LANGUAGES
General-Purpose Scripting:
1. Python: A highly versatile language used for web
development, data science, automation, and more.
2. JavaScript: Beyond web development, it's used for server-
side applications (Node.js) and desktop apps (Electron).
3. Ruby: Used for web development, scripting tools, and
prototyping.
PROMINENT SCRIPTING LANGUAGES
Emerging Languages:
1. Go: Gaining popularity for web applications, APIs, and
microservices due to its simplicity and concurrency features.
2. Rust: Rising in popularity for systems programming and web
development due to its memory safety and performance.
INTEGRATIVE PROGRAMMING
LANGUAGES
1. Foreign function interfaces (FFI):
Allow calling functions from other languages within your
program.
2. Web services and APIs:
Facilitate communication between applications over the
internet.
3. Data serialization formats:
Enable structured data exchange between systems (e.g.,
JSON, XML).
4. Declarative languages:
Offer configuration-based approaches for integration (e.g.,
YAML).
QUOTE OF THE DAY
“FEED YOUR MIND WITH
KNOWLEDGE,
FOLLOW YOUR CURIOSITY,
AND REMEMBER:
THE MORE YOU LEARN,
THE MORE YOU CRAVE.”
JAVASCRIPT
JS
JAVASCRIPT
JavaScript (often abbreviated as JS) is a powerful and versatile
programming language that plays a crucial role in modern web
development.
WHAT IT IS
• Web's Core Technology:
Along with HTML and CSS, JavaScript forms the foundation of most
websites. It brings them to life by adding interactivity, dynamic content,
and complex features.
• Scripting Language:
It's designed for smaller, more focused tasks compared to general-
purpose languages like Python or Java. It excels at manipulating webpage
elements and handling user interactions.
• Client-Side and Server-Side:
Traditionally, JavaScript ran directly in web browsers (client-side), making
webpages interactive. Now, it also powers server-side applications using
frameworks like Node.js.
WHAT IT DOES:
• Interactive Elements:
From clickable buttons and menus to animated graphics and real-time
updates, JavaScript adds responsiveness and user engagement to
websites.
• Data Manipulation:
It can collect and process user input, handle complex calculations, and
store and retrieve data locally or on servers.
• Game Development:
JavaScript is also used to create engaging web-based games, often in
combination with HTML5 canvas and WebGL.
• Mobile Apps:
Frameworks like React Native allow developers to build mobile apps using
JavaScript, saving time and resources.
WHAT IT DOES:
• Ubiquitous:
With nearly 99% of websites using JavaScript, it's essential for anyone
involved in web development to understand it.
• Versatile:
Its diverse applications go beyond websites, making it a valuable skill for
various digital projects.
• Accessible:
Compared to other languages, JavaScript has a relatively gentle learning
curve, making it a good starting point for programming beginners.
EXAMPLE
Page that has a button. Once the button is clicked it shows the date and time
Before the button is
clicked
After the button was
clicked
EXAMPLE
Page that has a button. Once the button is clicked it shows the date and time
<!DOCTYPE html>
<html>
<body>
<h2>My First JavaScript</h2>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="demo">replace me</p>
</body>
</html>
EXAMPLE
Description of the JavaScript code
• getElementById()
a method used to retrieve an HTML element from the document by its
unique ID. It is part of the Document Object Model (DOM) API, which
provides a structured representation of the HTML document and allows
JavaScript to interact with the elements on the page.
• innerHTML
property is used to get or set the HTML content (including any nested
HTML elements) of an element.
• Date()
is an object is used to work with dates and times. It provides methods for
creating, getting, and setting dates, as well as for performing various
operations related to dates and times.
EXAMPLE
Description of the JavaScript code
JavaScript Event Handler:
• onclick="document.getElementById('demo').innerHTML = Date()”
This part of the code executes JavaScript when the button is clicked.
• onclick
is an attribute tells the browser to run the specified JavaScript code
when the click event occurs.
EXAMPLE
Description of the JavaScript code
JavaScript Logic:
• document.getElementById('demo').innerHTML = Date()
o document.getElementById('demo’)
finds an element with the ID "demo" within the HTML document.
o .innerHTML = ...
modifies the inner content (text) of that element.
o Date()
is a built-in JavaScript function that returns the current date and time.
EXAMPLE
Description of the JavaScript code
Text Element:
• <p id="demo">replace me</p>
This creates a paragraph element with the ID "demo".
The text "replace me" serves as a placeholder, indicating where the date
and time will be displayed.