编译型语言、脚本语言与标记语言的区别和联系

  1. 编译型语言的首先将源代码编译生成机器语言,再由机器运行机器码(二进制)。如C/C++、C#、Java等都是编译型语言。
  2. 解释型语言:程序不需要编译,程序在运行时才翻译成机器语言,每执行一次都要翻译一次。因此效率比较低。比如Python、Matlab,专门有一个解释器能够直接执行Matlab程序,每个语句都是执行的时候才翻译。
  3. 脚本语言介于HTML和C,C++,Java,C#等编程语言之间。HTML通常用于格式化和链接文本。而编程语言通常用于向机器发出一系列复杂的指令脚本语言是一种解释性的语言,,它不像c\c++等可以编译成二进制代码,以可执行文件的形式存在,脚本语言不需要编译,可以直接用,由解释器来负责解释。常见的脚本语言JavaScript、Nuva、Perl、PHP、Python、Ruby、Tcl、VBScript、CSS。相对于编译型计算机编程语言:用脚本语言开发的程序在执行时,由其所对应的解释器(或称虚拟机)解释执行。系统程序设计语言是被预先编译成机器语言而执行的。脚本语言的主要特征是:程序代码即是脚本程序,亦是最终可执行文件。脚本语言可分为独立型和嵌入型,独立型脚本语言在其执行时完全依赖于解释器,而嵌入型脚本语言通常在编程语言中(如C,C++,VB,Java等)被嵌入使用。网页中的嵌入式脚本语言。熟知的HTML(Hyper Text Mark-up Language)即超文本标记语言,就是一种脚本语言,它的解释器就是浏览器。JavaScript直到现在仍然是网页浏览器内的主要编程语言,它的ECMAScript标准化保证了它成为流行的通用嵌入式脚本语言。另外,随着动态网页技术发展,ASP、JSP、PHP等嵌入网页的脚本语言正被广泛使用,不过这些脚本要通过Web Server解释,而HTML则被浏览器执行。
  4. 标记语言,如:HTML、XML,是一种将文本以及文本相关的其他信息结合起来,展现出关于文档结构和数据处理细节的电脑文字编码。与文本相关的其他信息(包括文本的结构和表示信息等)与原来的文本结合在一起,但是使用标记进行标识。

 

开发平台

      当我们最开始接触软件开发的时候,我们大都是采用记事本来编写程序,运用JDK、MFC等提供的API自己编写代码来完成想要的功能,编写完之后还要编译成可执行的文件,然后再运行。这种方式虽然通俗,但是一点也不方便,慢慢的,编程人员开始寻求比较方便开发的工具,于是诸如eclipse、jbuilder、VC++等等一系列的开发工具便出现在了市面上,这些工具的出现,大大方便了开发人员的编程工作,减少了编程人员很多不必要的麻烦。像包括编译、异常处理、发布、模拟运行等等操作,都可以在这些开发工具上完成。
      但是,随着时间的推移,编程人员发现,即使有这么好的开发工具,在开发的过程中,依然要写很多很多的代码,而且仔细的分析来看,很多代码基本上都是重复的编写,功能大同小异。于是,他们便开始琢磨另一种更为方便高效的开发工具,比如说:我们可以将很多重复的代码封装起来,然后需要用到的时候自行调用?或者是我们可以搭出一个基本的开发框架,然后编程人员可以在这个框架的基础上进行二次开发?通过编程人员一次一次的实验,最终形成了一种新的开发工具,那就是开发平台。
       开发平台,简单的理解就是:以某种编程语言或者某几种编程语言为基础,开发出来的一个软件,而这软件不是一个最终的软件产品,它是一个二次开发软件框架,用户可以在这个产品上进行各种各样的软件产品的开发,并且在这个产品上进行开发的时候,不需要像以往的编程方式那样编写大量的代码,而是只需要进行一些简单的配置,或者是写极少量的代码便可以完成一个业务系统的开发工作。
 

IDE(Integrated Development Environment)集成开发环境
      是用于提供程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面工具。有具备这一特性的软件或者软件套(组)都可以叫集成开发环境。如微软的Visual Studio系列,Borland的C++ Builder、Delphi系列,Eclipse和NetBeans这类开放源代码IDE等。

SDK(SoftBware DevelopCment Kit)软件开发工具包

例如,JDK就是一种SDK。

以下来源:http://www.differencebetween.net/technology/software-technology/difference-between-sdk-and-ide/ 

Difference Between SDK and IDE

SDK vs IDE

If you want to take a stab at programming, there are probably a few things you need to get first. These things include an SDK and an IDE. An SDK is very different from an IDE. SDK stands for Software Development Kit; this is a bundle of software that you will need in order to create programs for a specific programming language. The kit contains compilers, debuggers, documentations, and other files that may help you. In contrast, IDE stands for Integrated Development Environment, which provides a user interface that integrates all the necessary components needed in programming. You can write and debug your code in the IDE then run it as it is able to execute the debugger and compiler with your code.

The actual contents of an SDK vary from one to the other. Some SDKs have a dedicated IDE that you can use right out of the box. So you no longer need to worry about getting one. On the other hand, some SDKs do not include an IDE. You can download one for yourself or just use a text editor to write your code. This illustrates that an IDE is not really an essential component in programming. It simply makes programming easier and more convenient for the programmer. This is unlike an SDK, which is absolutely essential in coding and debugging your program.

For those that do not provide their own IDE along with the SDK, you have the freedom to download and install any compatible IDE. Most IDEs that are available for download nowadays work with or have separate versions for different programming languages. This is quite good since you can choose one that you are most comfortable with; especially if you’ve been using that IDE in programming for other platforms.



Both the SDK and IDE are important if you want to code programs properly and efficiently. Although some SDKs allow the use of a text editor for coding, it isn’t really advised since you wouldn’t have the tools like automatic notifications on typos and the like.

Summary:

  1. An SDK provides the tools for programming while an IDE only provides an interface
  2. Some SDKs already include an IDE
  3. An SDK is necessary for programming while an IDE is only optional
  4. There are a lot of IDEs to choose from but not the SDK

 

posted @ 2016-04-03 21:34  xiaoming123abc  阅读(493)  评论(0)    收藏  举报