Declarative Programming

A high-level programming concept that abstracts away the control flow for logic required for software to perform an action. Instead of specifying how to achieve a task, it states what the task or desired outcome is.

Declarative Programming

Areas of application

  • Web development
  • Database management
  • Data analysis
  • Artificial intelligence
  • User interface development
  • Software testing
  • Network programming
  • Game design

Example

Writing a program that calculates the area of a rectangle using declarative syntax would look like this: ‘Find the area of a rectangle with a width of 5 units and a height of 7 units.’