0% found this document useful (0 votes)
8 views

Mercy Assignment Project_034354

Uploaded by

Samuel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Mercy Assignment Project_034354

Uploaded by

Samuel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Target Audience:

100-Level Lincoln University NUSK Campus

Lecture Note (Week 1).


BIT 6044(Introduction to PHP) & BCSNT 6013 (Principles of
programming).

Date: 26/11/2024
TABLE OF CONTENTS

1. What is Programming?
➔ Definition of programming.
➔ Importance of programming in the modern world.
2. Basic Programming Concepts.
➔ Algorithms and Flowcharts.
➔ Programming languages overview (High-level and low-level
languages).
3. Introduction to Web Development.
➔ Difference between front-end and back-end development.
➔ Role of PHP in web development.
4. Introduction to PHP.
➔ What is PHP? (Definition and History).
➔ Uses and importance of PHP in web development.
1

What is
Programming?
Definition of Programming?
Programming is the process of designing and building an executable set of instructions that a
computer can follow to perform a specific task. These instructions are written in a programming
language, which acts as a bridge between humans and machines.
Programming is also the process of creating a set of instructions that tell a computer how to
perform a task. These instructions, called code, are written in a language that a computer can
understand and execute.
It involves designing and implementing algorithms, step-by-step specifications of procedures,
by writing code in one or more programming languages.

Why is Programming Important in the modern world?

➔ Developing applications like websites, mobile apps, games, and more.


➔ Translating real-world problems into logical steps.
➔ Automates tasks, saving time and effort.
Opens opportunities in various industries like web development, data analysis and AI.
2

Basic
Programming
Concepts
Algorithms and Flowcharts.

➔ Algorithms: An algorithm is a step-by-step ➔ Flowcharts: A flowchart is a diagram


procedure or formula for solving a problem. We can that represents an algorithm visually. It
also say; An algorithm is a procedure used for uses symbols to show steps and their
solving a problem or performing a computation. sequence. We can also say; flowchart is
Algorithms act as an exact list of instructions that a diagram that represents an algorithm,
conduct specified actions step by step in either which is a step-by-step plan for solving
hardware- or software-based routines. a problem. Flowcharts are used to
Example: A recipe is an algorithm for preparing a dish. design algorithms, write programs, and
Similarly, a program is an algorithm written in a explain the logic behind a program to
programming language. others.
Here is an image illustration of a flowchart:

Flowcharts help programmers


design, document, and debug
software applications.
Common Symbols:
Oval: Start/End.
Programming languages overview (High-level and low-level languages)

(High-level) (Low-level)

Advantages: Advantages:
1. Easy to learn and write code 1. High execution speed and performance
2. Short development cycle 2. Granular control over memory management and hardware operations
3. Portable across different platforms 3. Hardware specific
4. Provide easy access to ready-made libraries and frameworks 4. Efficient coding practices
5. Developer-friendly debuggers and error handling 5. Lightweight in terms of execution efficiency
6. Enable quick coding and software prototyping 6. Ideal for systems-level programming like device drivers and kernel
applications

Disadvantages:
Disadvantages:
1. Slower in compiling
1. Difficult to learn and use
2. Memory allocation and performance optimization challenges
2. Requires specialized skills
3. Limited hardware access
3. Time-consuming code development and debugging
4. Less control over machine-level operations
4. The tedious debugging process for hardware and memory-related issues
5. Slower speed and performance compared to low-level languages
5.. A high level of error-prone code making it difficult to keep up with different
hardware requirements
3

Introduction
To Web
Development
Difference between Front-end and Back-end Development

(Front-end development) (Back-end development)

Focuses on the visual Focuses on the underlying structure


elements of a website that and logic of a website or
users see and interact with, application, such as the databases,
such as buttons, graphics, and servers, and APIs that make the site
text. Front-end developers use work. Back-end developers use
markup languages to create server-side programming languages
web pages, and they often to ensure that the website
work directly with clients to functions properly
create an aesthetically
pleasing experience.
Role of PHP in web development

PHP is a good choice for web development


Dynamic Contents because of its many advantages, including:
PHP is used to create dynamic and interactive web
pages, applications, and eCommerce platforms. • Open-source: PHP is free to use and
distribute, and there are many free
frameworks and tools available.
• Easy to learn: There are many resources and
Database-driven sites tutorials available to help people learn PHP.
PHP can be used to develop database-driven sites. It • Platform independent: PHP is platform
supports a variety of databases, including MySQL,
MongoDB, and PostgreSQL.
independent.
• Community support: There is a strong
professional community support for PHP.

Web Tasks • Scalability: PHP frameworks can improve


PHP can be used for a variety of web tasks, such scalability.
as sending emails, collecting web forms, and
sending and receiving cookies. • Code maintainability: PHP frameworks can
improve code maintainability.
4

Introduction
To PHP
What is PHP? (Definition and History).

▪ PHP stands for "Hypertext Preprocessor." It is a widely-used server-side scripting language.


• PHP is a widely-used, open source scripting language.
• PHP scripts are executed on the server
• PHP is free to download and use

PHP is an amazing and popular language! It is powerful enough to be at the core of the
biggest blogging system on the web (WordPress)! It is deep enough to run large social
networks! It is also easy enough to be a beginner's first server side language!

Created in 1994 by Rasmus Lerdorf.


Initially used for simple tasks like tracking website visitors.
Evolved into a powerful language for dynamic web development.

You might also like