My Manager asked me to code in ASP.net. What is meant my imperative and interrogative code. How it related to programmers?
虽然我不确定这是一种“流行”的编程方式,但询问式编程基本上可以概括为这样:
Domain specific programming languages tend to be rigid in capability and dependent on either a graphical interface or a scripting language. We present a question-oriented approach that requires no prior knowledge of programming and can be easily adapted to a wide range ofdomains. Interrogative programming works by "parsing" the user s intent using the responses to a series of closed-ended questions. Questions are guided by a context free grammar specified in an external file. -Quote
当编写大部分过程式代码(C 风格)时,命令式编程是最常用的方法。
命令式代码不会返回任何值,它只是执行某些操作。(在VB.NET中为子程序或在C#中为void返回类型)。
问号代码会返回一个值。
在英语中,“Imperative”意味着命令的语调。因此,一个看上去像是在告诉计算机“做这个,做那个”的程序就是一个命令式程序。C语言程序就是一个很好的例子。
相对于此,还有其他称为声明式的语言,例如 Haskell,读起来像数学定理,似乎不需要从计算机中要求任何东西。
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding