Lecture 23 SQL I
Lecture 23 - SQL I
Declarative Programming
Declarative Programming
Programming Paradigms Up until now,we've been focused(primarily)on imperative programming. Imperative program contain explicit instructions to tell the computer how to accomplish something.The interpreter then executes those instructions Now,we'll learn about declarative programming,where we can just tell the computer what we want,instead of how we want it done.The interpreter then figures out how to accomplish that. Declarative programs are often specialized to perform a specific task, because they allow for repetitive computation to be abstracted away and for the interpreter to optimize its execution
Programming Paradigms Up until now, we’ve been focused (primarily) on imperative programming. Imperative program contain explicit instructions to tell the computer how to accomplish something. The interpreter then executes those instructions Now, we’ll learn about declarative programming, where we can just tell the computer what we want, instead of how we want it done. The interpreter then figures out how to accomplish that. Declarative programs are often specialized to perform a specific task, because they allow for repetitive computation to be abstracted away and for the interpreter to optimize its execution
Imperative vs.Declarative Suppose you're going to a restaurant for dinner and need a table Option 1: "First I need to find a table,so I'll look through every available table and pick the one in the best location that has enough seats for my group,then I'll need to find someone to wait on me and make sure I have enough menus,then..." Option 2: “Table for two!
Imperative vs. Declarative Suppose you’re going to a restaurant for dinner and need a table Option 1: “First I need to find a table, so I’ll look through every available table and pick the one in the best location that has enough seats for my group, then I’ll need to find someone to wait on me and make sure I have enough menus, then…” Option 2: “Table for two!
SQL
SQL