Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore declarative thinking and programming in this 29-minute EuroPython Conference talk. Discover the differences between declarative and imperative approaches through real-life examples, and learn how declarative programming can enhance problem-solving in Python. Examine practical applications, including the use of configuration files, list and dictionary comprehensions, and sets to avoid control flow statements. Gain insights into logistic programming with PyDatalog and see how it can be applied to solve mathematical crosswords. Understand the advantages of declarative programming for scalable execution and maintaining a single level of abstraction in your code.
Syllabus
Intro
Outline
Motivation
Imperative vs. Declarative
Leaky Abstractions
Example 1: List Comprehensions
Example 2: Dictionaries
Example 3
PyDatalog
Math Riddle
Other Applications
Summary
Taught by
EuroPython Conference