There’s an interesting (and somewhat long) read over on eWeek.com for those of you that get a little moist about declarative programming languages. Microsoft’s “Oslo” strategy, announced in October, has given way to a new programming language currently known only as “D” that’ll pass the “two-beer test” — as in, it’ll supposedly be easy enough to use that you’ll be able to program with it after two beers.
Height, weight, and tolerance levels have NOT been factored into the two-beer test, though, so if you’re a lightweight or you currently don’t drink at all, please be careful.
In declarative programming, the developer focuses on the “what” rather than the “how” of a process. A program is declarative if it describes what something is like, rather than how to create it. Better yet, in a typical procedural program, the developer writes instructions to tell the computer how to do certain tasks, while in declarative programs the developers instruct the computer specifically on what results result they seek.