c#的優(yōu)點[外文及翻譯].rar
c#的優(yōu)點[外文及翻譯],c#的優(yōu)點[外文及翻譯]包含中文翻譯和英文原文,內容詳細完整,建議下載參考!中文: 1500字英文: 5370字符c#在某種程度上可以看作是.net面向windows環(huán)境的一種編程語言。在過去的十幾年里,microsoft給windows和 windows api添加了許多功能,vb和c++也經(jīng)歷了許多變化。雖然vb和...
該文檔為壓縮文件,包含的文件列表如下:
內容介紹
原文檔由會員 xiaowei 發(fā)布
C#的優(yōu)點[外文及翻譯]
包含中文翻譯和英文原文,內容詳細完整,建議下載參考!
中文: 1500字
英文: 5370字符
C#在某種程度上可以看作是.NET面向Windows環(huán)境的一種編程語言。在過去的十幾年里,Microsoft給Windows和 Windows API添加了許多功能,VB和C++也經(jīng)歷了許多變化。雖然VB和C++最終已成為非常強大的語言,但這兩種語言也存在問題,因為它們保留了原來的一些內容。
對于Visual Basic來說,它的主要優(yōu)點是很容易理解,許多編程工作都很容易完成,基本上隱藏了Windows API和COM組件結構的內涵。其缺點是Visual Basic從來沒有實現(xiàn)真正意義上的面向對象,所以大型應用程序很難分解和維護。另外,因為VB的語法繼承于BASIC的早期版本(BASIC主要是為了讓初學者更容易理解,而不是為了編寫大型商業(yè)應用程序),所以不能真正成為結構化或面向對象的編程語言。
另一方面,C++在ANSI C++語言定義中有其自己的根。它與ANSI不完全兼容,因為Microsoft是在ANSI定義標準化之前編寫C++編譯器的,但已經(jīng)相當接近了。遺憾的是,這導致了兩個問題。其一,ANSI C++是在十幾年前的技術條件下開發(fā)的,因此不支持現(xiàn)在的概念(例如Unicode字符串和生成XML文檔),某些古老的語法結構是為以前的編譯器設計的(例如成員函數(shù)的聲明和定義是分開的)。其二,Microsoft同時還試圖把C++演變?yōu)橐环N用于在Windows上執(zhí)行高性能任務的語言—— 在語言中避免添加大量Microsoft專用的關鍵字和各種庫。其結果是在Windows中,該語言成為了一種非常雜亂的語言 ......
Where C# Fits In
In one sense, C# can be seen as being the same thing to programming languages as .NET is to the Windows environment. Just as Microsoft has been adding more and more features to Windows and the Windows API over the past decade, Visual Basic and C++ have undergone expansion. Although Visual Basic and C++ have ended up as hugely powerful languages as a result of this, both languages also suffer from problems due to the legacies of how they have evolved.
In the case of Visual Basic 6 and earlier, the main strength of the language was the fact that it was simple to understand and didn’t make many programming tasks easy, largely hiding the details of the Windows API and the COM component infrastructure from the developer. The downside to this was that Visual Basic was never truly object-oriented, so that large applications quickly become disorganized and hard to maintain. As well as this, because Visual Basic’s syntax was inherited from early versions of BASIC (which, in turn, was designed to be intuitively simple for beginning programmers to understand, rather than to write large commercial applications), it didn’t really lend itself to well-structured or object-oriented programs.
C++, on the other hand, has its roots in the ANSI C++ language definition. It isn’t completely ANSIcompliant for the simple reason that Microsoft first wrote its C++ compiler before the ANSI definition had become official, but it comes close ......
包含中文翻譯和英文原文,內容詳細完整,建議下載參考!
中文: 1500字
英文: 5370字符
C#在某種程度上可以看作是.NET面向Windows環(huán)境的一種編程語言。在過去的十幾年里,Microsoft給Windows和 Windows API添加了許多功能,VB和C++也經(jīng)歷了許多變化。雖然VB和C++最終已成為非常強大的語言,但這兩種語言也存在問題,因為它們保留了原來的一些內容。
對于Visual Basic來說,它的主要優(yōu)點是很容易理解,許多編程工作都很容易完成,基本上隱藏了Windows API和COM組件結構的內涵。其缺點是Visual Basic從來沒有實現(xiàn)真正意義上的面向對象,所以大型應用程序很難分解和維護。另外,因為VB的語法繼承于BASIC的早期版本(BASIC主要是為了讓初學者更容易理解,而不是為了編寫大型商業(yè)應用程序),所以不能真正成為結構化或面向對象的編程語言。
另一方面,C++在ANSI C++語言定義中有其自己的根。它與ANSI不完全兼容,因為Microsoft是在ANSI定義標準化之前編寫C++編譯器的,但已經(jīng)相當接近了。遺憾的是,這導致了兩個問題。其一,ANSI C++是在十幾年前的技術條件下開發(fā)的,因此不支持現(xiàn)在的概念(例如Unicode字符串和生成XML文檔),某些古老的語法結構是為以前的編譯器設計的(例如成員函數(shù)的聲明和定義是分開的)。其二,Microsoft同時還試圖把C++演變?yōu)橐环N用于在Windows上執(zhí)行高性能任務的語言—— 在語言中避免添加大量Microsoft專用的關鍵字和各種庫。其結果是在Windows中,該語言成為了一種非常雜亂的語言 ......
Where C# Fits In
In one sense, C# can be seen as being the same thing to programming languages as .NET is to the Windows environment. Just as Microsoft has been adding more and more features to Windows and the Windows API over the past decade, Visual Basic and C++ have undergone expansion. Although Visual Basic and C++ have ended up as hugely powerful languages as a result of this, both languages also suffer from problems due to the legacies of how they have evolved.
In the case of Visual Basic 6 and earlier, the main strength of the language was the fact that it was simple to understand and didn’t make many programming tasks easy, largely hiding the details of the Windows API and the COM component infrastructure from the developer. The downside to this was that Visual Basic was never truly object-oriented, so that large applications quickly become disorganized and hard to maintain. As well as this, because Visual Basic’s syntax was inherited from early versions of BASIC (which, in turn, was designed to be intuitively simple for beginning programmers to understand, rather than to write large commercial applications), it didn’t really lend itself to well-structured or object-oriented programs.
C++, on the other hand, has its roots in the ANSI C++ language definition. It isn’t completely ANSIcompliant for the simple reason that Microsoft first wrote its C++ compiler before the ANSI definition had become official, but it comes close ......