Programming Paradigm Concepts
Explore a range of programming paradigms, including imperative and declarative, procedural, functional, and object-oriented programming.
Commencer Le Cours Gratuitement2 heures14 vidéos45 exercices2 576 apprenantsDéclaration de réalisation
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données sont stockées aux États-Unis.Formation de 2 personnes ou plus ?
Essayer DataCamp for BusinessApprécié par les apprenants de milliers d'entreprises
Description du cours
Ready for a paradigm shift to what you know about programming? In Introduction to Programming Paradigms, you will learn the basics of various programming paradigms, including imperative and declarative programming, procedural programming, functional programming, and object-oriented programming.
You will learn about real-world use cases for these paradigms and common coding patterns in each one, and even write basic programs in Python for each paradigm. By the time you're finished with the course, you'll be able to recognize different programming paradigms and know when to choose one over another. You'll even get a sneak peek into some more advanced topics like:
- Recursion in functional programming
- Class inheritance in procedural programming
In chapters 2-4, you will explore procedural, functional, and object-oriented programming, respectively. Each chapter will cover the hallmarks of the specific programming paradigm, some common real-world applications, and enough of an overview to give you an understanding of when to use one paradigm over another.
Each chapter will also include an exercise in building a program within the given paradigm. You will write subroutines and recursive functions, and define your own classes using Python.
By the time you finish, you’ll have a firm understanding of the basics of programming paradigms, their uses, common coding patterns, and when to apply each one in specific situations.
You will learn about real-world use cases for these paradigms and common coding patterns in each one, and even write basic programs in Python for each paradigm. By the time you're finished with the course, you'll be able to recognize different programming paradigms and know when to choose one over another. You'll even get a sneak peek into some more advanced topics like:
- Recursion in functional programming
- Class inheritance in procedural programming
Understand the Pros and Cons of Each Programming Paradigm
In chapters 2-4, you will explore procedural, functional, and object-oriented programming, respectively. Each chapter will cover the hallmarks of the specific programming paradigm, some common real-world applications, and enough of an overview to give you an understanding of when to use one paradigm over another.
Implement Simple Procedural, Functional, and Object-Oriented Programs
Each chapter will also include an exercise in building a program within the given paradigm. You will write subroutines and recursive functions, and define your own classes using Python.
By the time you finish, you’ll have a firm understanding of the basics of programming paradigms, their uses, common coding patterns, and when to apply each one in specific situations.
Formation de 2 personnes ou plus ?
Donnez à votre équipe l’accès à la plateforme DataCamp complète, y compris toutes les fonctionnalités.- 1
Introduction to Programming Paradigms
GratuitGet ready for a first look at programming paradigms! This Chapter covers what programming paradigms are, why they matter, and two broad categories of programming paradigms, namely Imperative and Declarative programming. You will also learn about the benefits of writing modular code and employing separation of responsibilities and how these relate to different paradigms.
What are Programming Paradigms?50 xpUnderstanding programming paradigms and languages50 xpProgramming languages vs. programming paradigms100 xpImperative and Declarative Programming Paradigms50 xpUnderstanding categories of programming paradigms100 xpComparing programming categories100 xpWhy do we need Programming Paradigms?50 xpBenefits of modular code100 xpBenefits of thinking in multiple paradigms100 xpIdentifying modular code in Python50 xp - 2
Procedural Programming
Dive into one of the most commonly used paradigms in programming: Procedural Programming. This Chapter covers what procedural programming is, what problems it can be used to solve, and how it achieves separation of responsibilities and modular code. You will learn how control flow statements like `if` statements, `for` loops, and function definition can all be used in procedural programming, and you'll get to practice these in Python.
What is procedural programming?50 xpSeparation of responsibilities50 xpRecognizing procedures100 xpWhen is procedural programming used?50 xpPros and cons of procedural programming100 xpUse cases for procedural programming100 xpControl flow in procedural programming50 xpUnderstanding control flow100 xpCombine elements of control flow100 xpConstruct a basic procedural program100 xp - 3
Functional Programming
Dive into functional programming in this Chapter. We will cover the basics of functional programming: when to use it, some advantages and disadvantages, as well as some applications. You will also learn about using recursion in functional programming, and you will even implement some basic functional programs of your own!
What is functional programming?50 xpFunctional programming and modularity50 xpPure functions and side effects100 xpWhen is functional programming used?50 xpPros and cons of functional programming100 xpApplications of functional programming100 xpFunctional programming in action50 xpWrite a pure function100 xpCorrect an "impure" function100 xpRecursion in Functional Programming50 xpUnderstanding recursive functions50 xpBuilding a recursive function100 xp - 4
Object-Oriented Programming
Let's play with some classes and objects! This chapter will cover the Object-Oriented Programming paradigm, its common applications, pros and cons, and how to implement basic object-oriented programs in Python. We'll also touch on some more advanced topics in this paradigm including class inheritance and public vs. private attributes.
What is Object-Oriented Programming50 xpIdentifying object-oriented programs in Python50 xpClasses vs. objects100 xpBuild a class100 xpExamples of Object-Oriented Programming50 xpApplications of object-oriented programming50 xpPros and cons of object-oriented programming100 xpPublic vs. private attributes100 xpClass Inheritance in Object-Oriented Programs50 xpBuild a class with inheritance100 xpChanging programming paradigms100 xpClassify programming paradigms100 xpCongratulations!50 xp
Formation de 2 personnes ou plus ?
Donnez à votre équipe l’accès à la plateforme DataCamp complète, y compris toutes les fonctionnalités.collaborateurs
prérequis
Intermediate PythonEleanor Thomas
Voir PlusSenior Data Analytics Engineer
Qu’est-ce que les autres apprenants ont à dire ?
Inscrivez-vous 15 millions d’apprenants et commencer Programming Paradigm Concepts Aujourd’hui!
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données sont stockées aux États-Unis.