1_0 Intro to Programming Methodology
1_0 Intro to Programming Methodology
INTRODUCTION TO
PROGRAMMING PARADIGMS
■ A programming methodology is just a programming practice to help you plan and structure your
code in a more defined way.
■ Programming methodology is a process of developing programs that involves strategically
dividing important tasks into functions to be utilized by the entirety of the program. It also
describes the thinking process that goes into developing a programming solution for a specific
problem.
■ When programs are developed to solve real-life problems like inventory management, payroll
processing, student admissions, examination result processing, etc. they tend to be huge and
complex.
■ The approach to analyzing such complex problems, planning for software development and
controlling the development process is called programming methodology.
■ In other words, programming methodology deals with the analysis, design and implementation
of programs.
1
9/19/2022
■ A programming methodology deals with providing a way to consider and manage the
development, design, implementation, and testing of a piece of software.
■ For example one common methodology is the Top down approach where you look at the big
picture, what do you want to make in the end and break that down into more detailed sub parts
until you have a complete understanding of the system. In contrast to that a Bottom up
approach looks at combining small parts into a more complex and complete system.
■ Studying Programming Methodology, you will be able to
– "think like a programmer."
– approach problem solving from a computational perspective, and gain exposure to
different areas in Computer Science.
– have a firm grasp of how a programmer should "think," because you will spend a lot of
time analyzing, designing, and implementing programs.
■ This is a fundamental skill that will help you tackle more difficult problems and programs in the
future.
2
9/19/2022
Procedural Programming
Object-Oriented Programming
3
9/19/2022
Functional Programming
■ Here the problem, or the desired solution, is broken down into functional units.
Each unit performs its own task and is self-sufficient.
■ These units are then stitched together to form the complete solution.
■ Example − A payroll processing can have functional units like employee data
maintenance, basic salary calculation, gross salary calculation, leave
processing, loan repayment processing, etc.
Logical Programming
■ Here the problem is broken down into logical units rather than functional units.
■ Example: In a school management system, users have very defined roles like
class teacher, subject teacher, lab assistant, coordinator, academic in-charge,
etc. So the software can be divided into units depending on user roles. Each
user can have different interface, permissions, etc.
4
9/19/2022
Top-down Approach
Bottom-up Approach
5
9/19/2022
Modular Programming
6
9/19/2022