create new tag
, view all tags
Saw a pretty good description of declarative programming and decided to capture it here.

from Programming Close to the Domain: A Conversation with Andy Hunt and Dave Thomas, Part VI; Bill Venners; April 7, 2003:

Declarative programming is really another example of programming closer to the user's domain. Look at SQL. SQL is a great example, because it is primarily a declarative language. With a typical select statement, you say, "Get me these fields from this table." You don't say how. Your don't say in SQL, "Chase down this pointer. Get this file off disk. Chase through this btree index. Optimize it." You don't say any of that. You say, "This is what I need. You go figure it out. Go get this for me." That's getting closer to programming the intent of the user: "I want this. I don't care how you do it. Just make it happen."

I've fooled with SQL, and looked at Prolog, and maybe ran into some other examples / attempts at declarative programming that I can't immediately recall. It usually was confusing for me.





  • () RandyKramer - 09 Apr 2003
  • If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.

Page Ratings

Topic revision: r1 - 2003-04-09 - RandyKramer
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look