: j1 w9 L0 p! `+ l ! j4 F6 Y3 g0 X- E/ U3 v# i# g6 K 如果有什么看法,请大家在在线讨论中进行讨论。 - d C% `1 \& @' Z$ E7 `( d, S. M
' @- K8 M$ a+ D2 I( | . S" m8 O( [" C6 w. l. j9 e $ D1 X' i! s! E C5 R 恶魔吹着笛子来 来自 苍天已死,黄天当立--c/c++的时代正在淡去 : ( v7 ?4 O/ Z" a4 ^0 B0 p# y( r% [* f. T 8 E1 r; j& V4 Q, o. x7 q% R2 c- M1 \ 不要以为这个题目是耸人听闻,但就目前的形势来看c/c++是需要退出舞台或者说的婉 0 H) G# B# h) Y转一点是需要更新换代了. . c. ~% T; G! X* j! k* A$ B+ {! p$ i - e6 Y: }0 X# t* N
我想在未来的一两年里,作为程序员等级评判的标准之一c/c++(不管是mfc还是bcb)将 " Z5 C8 |. ]- P5 ~- Z+ ?+ u0 F会让位给三种编程语言,1.sun的java2.windows平台上的c#3.xml 7 h5 `2 i' H; W5 ~
- s: L" E! g7 m( n5 A5 u6 h
为什么这么说呢,我认为最大理由是目前的应用程序正在从基于独立的操作系统,传向 2 u/ o- p/ {% z. H
基于internet平台. % y9 c6 _" M2 g/ W
) v8 }- B1 A+ n/ v1 E 我们以前开发应用程序都是依赖于平台的功能调用,mfc,bcb都是这样.而现在日益火热 " f! [0 U# W" l9 }2 f4 U的internet编程却最不想关心的就是某一个平台的调用,譬如说要实现b2b的电子商务那 7 \+ h6 u ^( G+ I8 w* k8 z
么就需要做不同平台的集成,如果我是程序员我最care的就是如何实现商务逻辑 ! _% n- X" q: y
' S+ ~ J! [6 c
而不是各种平台之间的通信和管理.那么我们最迫切需要的就是一种与各种平台调用无 / b6 B2 [( g3 @( T4 a* ~+ S N( W0 ~
关的语言,这中语言只注重程序逻辑的设计而不涉及平台的调用.而我们熟悉的c/c++却恰 ! `8 ]* C b0 w6 e; |7 Y7 h& C恰不是为这个而设计的(赫赫这也不能怪c/c++在70年代谁能知道现在internet的情况呢 # N: }. w m& Z/ B) b).c/c++的最初设计目的是为了设计unix产生一种介于汇编和高级语言之间的一种开发高 ' S: B, B1 s4 f2 Z! ^& A
效而性能不低的语言.他要比其他任何高级语言都要关心系统的物理结构,譬如一直是毁 * }5 i: v5 w! X$ d
誉搀半的指针.指针之所以强大就是应为涉及了系统物理内存的管理.他可以使得程序员 ) W, u9 h$ E* E
和系统之间成为一种半透明状态.但是就是这种半透明的状态让指针带来了更多的不稳定 [, b' Q, a/ k
性. 7 j& R( x3 B, ?" g
( _7 v" j3 N" B. N; [# ?0 j
c/c++在面向Internet的编程中却无任何优势可言.跨平台的电子商务软件最害怕顾及 ! s4 D% X! ^/ x N5 Q5 o' U
各种平台之间的天差地别的系统调用,最害怕时不时的由于内存泄漏而crash.c/c++的优 ) _ K" G7 }- Y3 U. E
势在这里却成为了劣势.即使在windows平台上开发基于windows dna的solution 0 b7 [+ X( n* ~) ^8 Z- M
+ [+ @2 x3 Y# a- U
用的最多的还是vb做的dcom而不是vc的atl做的dcom,因为c/c++虽然高效但是太容易 % x- f, G( u6 L4 J& c$ ?9 s+ w& x & b( U( K0 o# _5 v9 I6 z: T5 d 出错,如果不是很小心的释放内存nt很快就会资源不足. + [, h5 e9 Z' E# z* Z
% V w9 v/ E z$ I5 L$ K java就是最先看到这种情况,他用jvm实现了平台无关用内存回收实现了稳定健壮.但是 $ S2 P g9 V% D& j/ c相当多的c/c++程序员抱怨java太慢了.的确即使到java2速度仍然是一个大问题.我曾经 7 P9 b" n5 @" m
是一个c/c++坚决拥护者在许多论坛里和java程序员打笔仗.但是我逐渐意识到面对与in $ r$ b" r* s- J/ U5 d6 B$ m) kternet平台而不是特定的操作系统的时候java的速度问题往往是一个小小的瑕疵.我们可 4 h: _9 B+ S% ]) m$ o以想象那一个电子商务网站会用我们手头的pc做服务器,他们不是sun的e1000就是ibm的 $ K) E# f& h2 i- k* {
risc6000.在这种平台上java这点速度问题只是a peice of cake.程序员只需要专注与商 # I. ^- E. P2 ^6 U3 |. {务逻辑的编程,而不必要关心数组是否越界,对象内存是否释放更不需要关心是不是unix : o+ \$ [0 j D! \2 T" t和windows的系统调用不一样. 3 R8 F5 K R4 K9 X0 t # c9 x8 ~; f% o# Y6 F- q 微软的c#可以说是一种java与c/c++的杂合体,他可以回收内存,可以平台无关.但是 n9 ~+ S% q+ e$ K- h# ^
- C) L" |: A4 C X; e6 n
他又可以实现一些java没有的功能譬如在标记的程序段内用指针自己管理内存,可以实 " F) _# M# r$ ~ B; g/ x
现操作符的重载等等.为什么要这样做我想也许c#还肩负了一定的面向操作系统开发的任 ' f9 j! U6 }% @2 O; d
务例如winform.他基本上的思想和java类似,但是实现的方法又不一样他不通过jvm解释 ) Y z5 m# D5 e& l" G% f中间代码,而是吧源代码编译成p代码然后通过CLS库和JIT在平台上及时编译为100%的本 1 C& _# ?9 O) _6 `/ B" V" Z" H3 `
地代码来执行.他的pe代码是独立于平台的,但是cls和jit却根据不同的平台而设计.因此 ; y2 ]+ C ^7 K/ \4 h
c#的平台独立有点类似于c/c++在不同平台上的移植使得c#比java来的更快.而且微软还 ( ~" ^) b# J/ C6 b) r+ A许诺cls和jit不仅针对c#还可以针对任何语言譬如pascal,smaltalk,basic因此将来有可 + M% h/ C7 o+ N2 O; O) h
能所有的编程语言都是可以平台无关的(ms真是毒,所有的语言都平台无关java还有什么 . s, g3 A% Z0 o2 i, s. V
优势呢,据说ms正在开发基于pascal smaltalk的asp+). 3 ^- V# Z) u; U q# |# x& |+ @5 O4 b
: E. q4 Y) r) y0 T xml很多人可能认为与html相类似的语言和c/c++,java,c#完全不在一个档次上的语言 * Z8 |# i) h% [0 A. I0 j( ~% w: A% Z! @
.其实不然.我们知道不管是c#还是java都是通过统一地层计算来实现平台无关.那就必须 / {* v% S2 s w- O$ j在性能上付出一点代价.而xml却能够实现不同的语言之间的调用.譬如说一个网占用jav 7 k, D/ ]9 Y9 `3 _' X
a用bean实现一个出货功能,另一个网站用dcom实现一个入库功能 .如果这个网站需要实 , a$ L+ ~# G6 P" l0 O现b2b,用一般的方式就是在他们之间写转换程序.而xml通过标记语言来描述各自的借口 / o. W$ S/ s- s' U0 W0 W1 T$ g
特性.两端通过解析xml文本来实现互相的调用,无需任何中间转换程序 $ ~9 f( T t3 P# M0 s, R. s D. j , R9 U1 m4 O; j: J1 Y8 I, Y5 |
只要一张xml文本就能实现bean和dcom之间的通讯(要说清楚其中的机理,需要很多xml $ |2 ^: |. e* E& l5 _
概念如果有兴趣可以到msdn.microsoft.com/xml或者<a href="http://www.s3c.org" target="_blank" >www.s3c.org</A>去看看).目前ms的.ne 1 j' J8 X3 O q) j0 @. h2 ~
t中最核心的技术soap就是完全基于xml的远过程调用. / y* y1 P' a2 o6 A* G9 |" ]% f
4 J" A+ {* p1 ? ]* [- f 介绍了那么多可能有点跑题,其实我最想说的就是21世纪的程序员应该从面向操作系统 - U+ P3 ~% O% a& q3 l u2 }* r的传统方法中走出来,学习一点如何面向Internet平台编程的技术和概念.不要在无畏的 9 s; x. j) Q; v7 s那种c/c++工具好之类的地方争论.我想不出一两年不管是bcb还是mfc都要淘汰, 7 u( [, E3 W+ F . K2 _. l% _ T) _
到那个时候要争论的不是bcb好还是mfc好而是c#好还是java好.至于xml那是不管sun和 9 B* j4 p) s- G' c+ O: d9 V
ms以至于世界任何大的IT公司包括Intel,hp都在奋力研究的技术,不学习可能就要被淘汰 ' y" H0 }9 A5 r0 N
.至于c/c++可能就会沦落到现在汇编的地位在某些系统效能敏感的地方还能见得到. , G1 H) J9 T8 D9 P
5 |6 k. j5 _5 X: o" v; O" h" p3 j 如果是编程语言的初学者那么我建议学习java同时关注c#,他们首先比c/c++简单没有 9 L- P/ h2 ?4 G" Z9 _4 W% `: z
复杂的宏,指针,摸版等等让人摸不招头脑的概念.而且是完全面向对象,比c/c++的半调子 V$ V! d. X% W8 J7 S
面向对象清楚的多好学的多.(我推荐目前学习java,毕竟c#还没有发布而且刚发布的bet 7 ?" C, |7 W- [0 e$ o
a版的编译器要求高的吓人需要win2000 adv server没有128M内存的别想跑.话说回来c# . L) n5 t2 {6 r# Q% a% G4 G
和java一摸一样没有什么太大的区别学好了java将来的c#将会信手拈来) ! i, n7 Q5 t3 {5 S" K0 C% z( c
1 y/ U2 ?3 I! V' F, D) `
对于目前的windows下的编程者来说学习mfc的价值还是有一点的但是不是太大.至少可 + h9 K5 p5 T+ X, N' v
以熟悉windows内在机理.但是我还是推荐关注一下c#将来的windows.net都是基于c#而不 $ \6 Q- v ], Q6 t" j( K( P( v7 [+ o
是mfc.而且c#要比mfc简单的多实现一个同样的windows桌面应用c#的开发速度是mfc的两 " H/ w2 b! O. s
到三倍而且几乎看不见性能的损失. visual studio 7.0中 vc将是一个次要的开发工具 : A& {8 `2 ^2 x3 L最主要的开发工具就是c#和vb7.0.至于borland我想是不可能不跟着ms走至少windows平 " Q; N9 u& B2 T- \! z0 @# C5 @台上是这样说不定明年就有一个c# builder出来作为borland的主打产品而不是c++buil : \7 q* p# a' ~% h: t) B, ]8 g
der了.说一句玩笑话wenny说不定很快会把这里变成<a href="http://www.c#help.net" target="_blank" >www.c#help.net</A>了 % r5 c, y+ u3 i- j# F# f
% e' ^$ X& m$ D9 F
# M: Q1 k8 Z6 F3 b, g7 f1 b1 [
" m9 u, J# v) z4 o
2 n6 [7 n7 v0 r4 V& {
' C) H9 ?! f5 |+ u zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : 4 M. ]4 v9 w& l7 ^5 @5 P/ v1 `
* {$ l; d: r% f3 v 其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft # e3 b! h6 j3 U5 S
在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 " s5 L! n: k4 G为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 - Q o: {2 @! n* P7 I# j序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 C$ i. T. N! K# }; P, [
方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 ' b4 [+ Y5 e: X3 T: T
一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 # s k% k a3 M- @活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 8 {% M1 d" e h+ X
们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 7 `/ D1 h2 f8 r) m& k
你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 4 j: t$ f. D% [& O2 f' w
多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 0 K- \4 n* v" f7 ^+ @
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 ; ^# ?8 `/ }6 P
中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 - N2 w, Q( {7 ]. f( \, M2 \# K6 k可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 / g% a! N2 E! O8 Y- }& [
表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 - y1 \8 R7 B# r$ S' e + Q2 l. J; u# d5 ~! c9 p zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : 9 y7 {* T' E5 l& O, l# T, U$ O2 @ 9 i" x; @" B/ [- n$ ? 其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft : k: g: L8 I4 S2 l2 u
在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 + Z( o2 X# |# I( G& R为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 1 N; y# ~4 D, O1 d序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 1 B7 I; E% f) ~6 K方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 - p: c3 h. p( e- _0 W, U* A" m
一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 . G" c# S0 X8 K1 h活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 1 @" y _& q& Z4 ?& y& c
们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 p! ]' t# Z% f2 |8 n& D
你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 * s( l9 O- i( {8 C( o' ^多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 F4 a* n/ c$ }" B" L
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 & G; s& ]* k3 c% Y* e
中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 9 d/ K0 f6 ?6 P" ]) A可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 " o; \! Z# e( y( n4 C4 i) l
表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 / n( o" N4 d1 j% ~3 d
* C& F9 `% R; N9 h' y6 h* k6 X zhangxiuyong 来自 <a href="http://www.ucancode.com" target="_blank" >http://www.ucancode.com</A> : $ B/ l$ }. a) p* D; }
- A0 I5 l4 K" r2 V$ q. O
其实我认为,对于Visual C++本身的理解不是向你上面谈到的那么简单,Microsoft : l' H- }4 Q6 h R Y7 c
在开发Visual C++的时候是希望为其开发人员提供一个可靠的开发平台,便于用户可以 9 O: i p6 I3 g8 T+ a4 y/ T7 b4 [
为Windows上面编写各个方面应用程序,包括:数据库应用程序,硬件驱动程序,网络程 & q4 j' ]" y( H4 D6 j( X' ?序,多媒体程序,游戏程序等等方方面面,试想如果一个开发平台要同时完成这么多个 ; ?7 R" Y* b* a8 ~方面的开发任务,是需要考虑多少的问题,因此Visual C++在设计的时候就考虑了提供 - q& `6 T2 [4 T一套类库而不是直接提供黑匣子式的开发组件来完成开发任务,提供的类库MFC具有很灵 + ]* q4 T+ X6 t3 i/ ^活的设计结构,以及良好的继承性,同时配合DVS文挡视图结构来组织程序开发,虽然我 ; q- I& e) H. R( r, v. l/ R们承认利用VC开发程序(数据库方面的程序)没有其他的RAD开发工具来的快,但是如果 ! g" i) n# z4 d" P, W! z你真正利用VC来开发的话,你会觉得你不会去选用其他的开发工具的,对了各位听说个 ( D8 N& M. s P1 ]1 B2 ^多少开发人员是从VC熟练的开发师转向VB,Dephi的开发工具的吗,当然DVS结构本身也有 ! B% t* H* Q9 A5 y
其很大的弱点,如很难重用。同时在CView中再嵌套CView的变得不可能。不过对于开发 8 l( E4 `. C7 J8 y+ U% q中小型的程序(代码在50万行以内的程序却是可以的了)。对于特大型的程序我想最好 2 v2 r6 E0 J& }2 k0 a% i: I
可以借鉴一种新的技术叫做MVC的开发技术来组织你的程序吧。好了各位此些文字,仅代 3 l; s. m1 P& }5 M) n" s表个人之言,如果各位感兴趣可以到:http://www.ucancode.com上面看看。 7 T% W* O5 S2 Y+ Q! I
( q7 f! k! ^* c0 n% z0 R- y
wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : ) C% d7 d! x6 X + ]- N8 P3 n. I 我一定程度上同意 恶魔吹着笛子来 的说法, . z$ W# s! u% |, K: M/ X" p ! N L& c% W) ? 毕竟VC开发速度是比较慢的, 8 `4 s# G$ z* D5 @) w
L$ b9 i- L, _ 而且硬件速度的大规模提升也为使用JAVA开辟了道路, : _3 w5 u# t% f3 w! n 8 |9 e) W0 F: W6 L; E% t) c
不过microsoft.net的目的是一定程度上改变MS的经营性质,和开发关系不是很大,但 1 J& o0 T' i h p+ O8 @是MS的一贯方针都是在平台上为开发人员提供方便, 3 ?9 Y9 L# J9 v. ]+ f* D ! s" [0 b* C/ ` F/ g 所以C#是为了.net服务的。 ( v6 u( J; i6 f9 {/ [3 i$ P5 D $ {. k6 {6 k( ] # U! O) v# b, t, z- I) {
此外我想我没有精力再搞个c#help.net了。:-P ( d: G. k% F- D5 ^( l 6 }' l- A& i2 m8 S 果子 来自 http:// : ' b4 B- O4 @/ d) Q
! D6 a* ~7 \" m* [' }$ a2 V
"恶魔吹着笛子来"是比较“前卫”的一类程序员。我就听业界的人多次说过JAVA也是 & }& e4 Q+ S+ A8 K
5 Z8 s/ D+ U. y ?9 ^
2 y O& M, H, X( |) `# g6 z6 s' C
个吹得很响的东西,但实际如何,大家都看得见。至于认为C/C++开发工具(VC, ' r- c# R+ c2 Y( }; A7 _ $ t8 Z, X4 ]6 r. a+ K% Y+ f
BCB等)会在一两年内退出市场,就是无稽之谈了。 6 S! c7 b7 U# U1 J ]( K+ x& i % c- ~1 ~ B2 t) g' I5 O8 p Wesley 来自 http:// : * F: h. } V, {8 e6 p6 S
# y1 A4 E8 p: `. e# V0 v
恶魔吹着笛子来,你的观点很有启发性。能不能写一篇或推荐一篇剖析、比较Java开 * ?( Y7 h8 P8 s; Q; }
发工具的文章?比如Visual J++, JBuilder,以及Symantec和IBM的对应工具。(可能和 - l" w6 ?3 t0 V) H- x H, _& X
本站的初衷有些不合^o^) 5 m) \: z$ w& a; c0 C
0 ]. s- _" m3 M$ k9 J LeoCN 来自 http:// : 3 E2 C+ J$ @% g * C# Q" Z( S d3 K
It's not a time for us to determine which language will more better! ' P h5 i3 c' J
_& |/ w4 l- g8 G5 }2 W2 g in factly,In China,too many corporation just writting some codes for ! K" n4 m5 X9 ^6 T
% G8 ]9 f. A4 _* g3 T- Q enterprise's MIS,OA,ERP or other application.It do not need so speed ( M# Z" T5 b6 L- h 1 O* n% F7 n' c
and do not need so good original code. just want more data,more easy and m " r5 x/ j# ]6 W5 kore quickly. 3 [( ?% W. a# f F1 L 3 p: p' q9 ~% r2 R7 l0 i9 v so c++ is not a choice in such enviroment. and u know,many codes we write 4 Q2 d7 [$ S9 B3 C/ \& @ |/ wtoday will be useless.and there r so many easy tools such as VB : B9 p( p1 W8 N V5 ^
; ^, B) Z/ {* m& [% H
for windows designer, Developer/2000 or PB for database,Domino Designer fo - C0 A* U. @9 M }; H4 J
r OA application,why c++??? ' e5 b# [7 }1 j. e8 r/ U3 I
! w; h/ v+ W# M- D$ v
in DOS mode. i like Turbo c2.0, with it and MASM i can do everything. * s8 }( [* L7 d' l
4 P; F" [5 Y9 p& T' j1 b; s' w
but now i hate c++, it has waste my time! my corporation do not need 8 l7 B* M0 F1 |& P, G. p8 B ' p+ F7 H# U+ I1 V% P c++,just need java,xml,php,pb,vb,delphi,developer/2000,domino designer etc # h# W, s3 ?2 Y% [. ^
. * C! q) y8 v5 w! q5 |( ]5 Y" |
8 q$ ?" @- ?% ]/ n so, a tool is just a tool,if the advantages in some aspect of the tool # B' K( X/ t8 h7 |* J
- e4 F7 N% \5 o" B3 Z4 `; z9 B
u needed. it's will be a good tool for u. others it can bring u unfortunat . M3 v" A; f5 _8 Z f
ly! / S" a O: n* n/ u 4 L% c: C* ~; l: m 恶魔吹着笛子来 来自 : : h; t8 F1 C0 y* S) }8 R$ d # t$ o( m P" J5 i( p3 [ 果子,国内的Java应用不到10%基本上是ms的天下.这些可能是由于中国软件业规模太小 5 O1 \3 _0 m+ A的缘故.而在国外40%的商务系统的开发都是Java,c/c++不到10%.譬如BEA公司一个有3个 ; C. E' B( N0 y' Djava程序员创立的公司开发了第一个基于J2EE的Application Server---weblogic.BEA公 2 U, y: Y2 X s; W, K( M司依靠weblogic在短短4年里成为世界第四大软件公司仅次于CA公司.可见JAVA的功能是 4 w) A* c9 g6 ]' g. w2 |& w' N: a5 Y
如何的强大.微软的.NET的负责人说,你们想要知道.NET是什么样子,那就去看看JAVA.JA & K0 ~0 L5 O3 B7 G! }% D$ E
VA是什么样子.NET就是什么样子. 9 b1 ~0 \' q7 T+ {) t
1 i* j; D. `) y% p a# ^- O / i& q( H, g( }3 G
* @9 Z( t }. e) D, }( h3 I7 S' p) R 恶魔吹着笛子来 来自 http:// : + Y' C; P/ t s" d+ C: m/ M
- {4 ]+ \1 T+ h, l3 i; S: n/ h xubin 来自 http:// : 9 N9 p8 x4 o# A( D
9 q2 q& S/ G& R
在工业控制中,直接对I/O地址操作,就要用C++。 ; F( _9 I; d: W3 G, [: l# f' s6 R % Y; r7 a$ @4 { 恶魔吹着笛子来 来自 : / T5 Q1 ^2 I3 p G! F( Q& k% t
4 x+ t6 J# p8 h/ F; ? 俺有一个同学毕业设计用VB做单片机。你这不是在讨论问题是在抬杠。 1 b& C& Y6 b" r9 `( z8 c$ y4 Y# ^ : g: y. C5 T/ [
wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : 3 n3 F" C+ `6 ]
+ L! Z' t' a; Y
我想一种语言并不会因为其他语言的出现而消失, 3 c1 x0 l. e( `& h% ] ]4 Y # I9 Z- \5 w. G- O, F# s* O9 V 比如说c与C++,C++与C#的关系。 ( g2 y0 E5 J( Q T$ K: r! u 4 i2 G# X. v/ C 所以我想讨论问题时首先是要排除敌视, . {3 m6 J/ M! `1 \) F% S
% l& Q% F) T% @& J2 y 然后才是透彻的分析。 $ V& I+ m& @( D
; e/ \- T7 X+ o4 A! b2 M
IT世界不光只有网络,还有其他很多。 - Y% ^ s1 j' F
# n; }' p/ N7 v7 \
所以某些工具在一定范围内适用是正常的, / a9 f+ \. f- W2 @( Q c. E " Y0 N; y& U4 J1 f9 @2 ? X
其实在国外, 5 S: s) ^. c& z, S# `# r) M( v 7 a$ r5 |( ]7 D P8 } SERVER端软件大都用JAVA,而CLIENT却没有多少用JAVA, % f& B$ B/ A/ _4 q * {" n" I) E. m* n8 v" G+ Z 这和速度有关,当然也与MS对JAVA的态度有关。 ' \6 e- V6 l6 S% B+ P) m9 a! z8 a v * H x" W( Z" q2 [: X 9 q @1 s/ ^! W
不过我一直认为C/C++不会因为JAVA的出现而消失。 4 E o( j, l# O. |9 t- o+ {
- y/ J2 Y p: G. u 就象COBOL目前为止还在使用一样, , H+ W# P4 H2 N$ e- K. T
6 ?6 q7 F" m/ V8 _6 Z8 S
# e; c- o0 K4 p
不过以后会有愈来愈多的解释性语言出现,因为解释语言比编译语言的兼容性好,这 9 o" x. l0 y6 z: |! { i, i是不得不承认的。 * j5 \; K$ w- t) G$ @, m2 }( a
: ^" h Z ]$ ^$ j' j4 `1 r. X# Q 恶魔吹着笛子来 来自 http:// : . ? m3 l! z( g p# B4 d 5 ~: `, i8 }8 {& q% ?7 K+ F6 u 是的wenny.也许我说c/c++的消失有点夸张化了,但是实事求是的说.java和c#的出现 7 Y* e/ ^. i7 ~$ ~. P# H5 E
, G4 [- r C3 V8 o; @' P; ]3 W
c/c++的升级换代是在所难免的.对么. 8 i/ |7 f- w, r0 z, }# ^: J0 T 4 k! x, @$ M# v' M! U1 z& F) J 恶魔吹着笛子来 来自 http:// : 3 Z) m; M) X6 A8 G4 d
4 W Z, Y) z! {" ?% e 而且我一直认为java和c#不是另外一种语言而是c++的升级.就象是c到c++的升级一样 : u2 _. g4 F8 h5 ^' O6 f! O.对不对. 5 @4 K9 i7 z6 x/ H9 ~/ o! T 3 E, x8 r( g( }8 t; P
xcc 来自 http:// : * i( B/ p( u6 @( r ' g+ ]9 J" \% i: W
同意恶魔吹着笛子,你简直是我的偶像,顺便贴一篇关于C#和.NET专访 $ ?" I A# J7 R4 ^7 s5 K N! L1 I( ~0 Q: {: _( Y: c NET and C# Questions with Jeffrey Richter , O" a2 c( D9 K2 I" G+ ?1 N9 K . Q9 V( Z: P! p; ^- O In the weeks after Microsoft made a huge splash in the development communi $ i; I& c* M) C1 [7 C$ @3 f- h
ty with their .NET and C# announcments at the July 2000 PDC, Jeffrey Richter # ~; S' q9 ]' M% l- F% n0 E
accepted our request to field 20 questions from our readers about these new ' T: z7 \6 C3 {' c technologies. As many of you already know, Jeffrey is a cofounder of Wintel 1 I7 a7 c4 M& G7 W, X
lect, a company that specializes in Windows & Microsoft.Net training and deb # V, \% A5 X# R+ N1 Iugging. Jeff is also a consultant at Microsoft working on the Microsoft.NET ) G- h6 G+ i' n3 R" ?% ?0 zCommon Runtime Language (CLR) team in which C# and Visual Basic 7 applicatio # l, V" _0 i5 c
ns operate. Below are the 20 most popular questions that were sent in and Je " W- v: c# d, ]8 x. n0 C) F. _6 Z6 t
ffrey's responses. . k( e" c8 M6 ^
& w* B' [# {# K% J! `/ {: g6 y) C6 u For Visual C++ developers everywhere still trying to get a handle on all t 1 F. Q3 u8 }+ M% a
his: Thanks Jeff!! " [5 E5 b! t( v- n9 p& {# Z$ I' t
* i- M5 J4 M1 P ) [8 L$ A8 ?) O- C( W: v" j; M
Question #1 Is .NET a runtime service or a development platform? m' c9 X! T: }& S1 k
( e0 L- K& j/ l
Answer It's both and actually a lot more. Microsoft .NET is a company-wide - m$ y- i' _ c, q
initiative. It includes a new way of delivering software and services to bu - z3 d' q( b. q7 w' ]6 asinesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The " z* J" }. u/ B9 Gframeworks is the first part of the MS.NET initiate to ship and it was given $ W3 j# n1 f I& d, k( ~ out to attendees at the PDC in July. The .NET frameworks consists of two pa % O: l& C) t, z0 @rts: the .NET common language runtime and the .NET class library. These two ( U6 L2 O/ P- }components are packaged together into the .NET Frameworks SDK which will be 9 U) n& L; y0 havailable for free download from Microsoft's MSDN web site later this month. 2 \& P1 K0 @+ \3 S In addition, the SDK also includes command-line compilers for C#, C++, JScr * g! ^9 H" H/ f
ipt, and VB. You use these compilers to build applications and components. T % Z$ Y, O( n) D* e, k$ Q3 chese components require the runtime to execute so this is a development plat 1 T S3 |5 Y u' B; ]+ J/ a: n1 Mform. When Visual Studio.NET ships, it will include the .NET SDK and a GUI e + k7 O' `7 p* \, Lditor, wizards, tools, and a slew of other things. However, Visual Studio.NE 7 x! j# y1 E- a1 T# w; ?T is NOT required to build .NET applications. , P( E4 Y! @5 A! }5 N : _7 Q; \' u3 ^3 L ) U8 q- {9 N) [0 u Question #2 How likely it is for C# to become a general-purpose (meaning: 9 g. R8 {3 W* v" b
not MS-specific) language and if so, have any other vendors committed to pro 0 o3 Z" [; D- {% x; H+ ?
viding compilers on any non-Windows platforms? & I9 n. D$ H. N9 p' ?4 h: i2 ^ # g' S! a) P0 g! \. y) N3 s
Answer It's hard to answer this right now. I have been programming in C# a & v4 F0 z& B& Tlmost exclusively for about the past year and I love it. It only took me a f " T- v- x X, r, f( j+ k& Gew days to learn most of it since it is very similar to C++. It was designed ( P' f. v5 p: e; O: s1 @: X+ M
to compliment the common language runtime and I think that it's unlikely to 0 h( R% n k8 r/ r8 W/ ]' z: @0 g gain much momentum if decoupled from the runtime. However, you never know. . Y7 W. ~2 V9 o! }+ u
Microsoft is submitting C# to the ECMA standards body so any company will ea ' j' \- F4 w0 D& H$ R; y
sily be able to produce their own C# compiler however, without a runtime, th " T) b% \% e- A/ }9 q! Me compiler itself is not that useful. I'm not aware of any companies current 6 |9 l1 s# I8 K6 N% v" `
ly working on their own C# compiler. Certainly, porting the runtime to anoth % e8 Z3 f N0 Q1 L: Q) ber OS is no small undertaking. ; U2 E- N& t$ u s7 V, O, r 9 z+ S* C7 o. Q% ] 4 i: Q. ^0 e- e9 @" Z5 }* c! j Question #3 Can you tell us specific practical problems that C# can fix be 8 H1 V9 p9 q8 l! etter than Java? , \! u) c9 B# R: q- S( h7 D. l- K 0 ]* M+ o! H4 j0 x* W7 O
Answer I must be honest with you: I have never programmed in Java. I know # L0 @0 S9 [0 A& k! D
what C# offers the C/C++ programmer: simpler syntax, components that seamles $ |# z7 C0 ~ v- J' N5 Gsly fit together, type safety, and so on. Other people should be able to add 1 l: l9 }) S) |* f8 Gress the C# <-> Java comparison. . K7 ~' e3 z, ]. I
( o6 R/ [) ~& r7 o- l7 I
8 V9 `( M6 V: x$ R$ _9 o5 g. W
Question #4 Will ADO+ be the preferred and most efficient method to access $ a. M- @# Z) Q databases from C# or will it have it own (or .NET) class wrappers for the O 0 [% R" f" w7 L( l9 Y7 e
LEDB API? : E) t: q, r& h. x 7 e0 r; P7 Q: S8 w1 T+ X- v2 v
Answer The .NET class library includes a System.Data namespace with many t 9 T7 J# u, L. Pypes for database access. These wrappers will be the best (and most efficien 6 U7 w% l! {5 Y3 x$ Nt) way for a C# programmer to access data. 0 \( M8 Y( _2 A2 s# I: M
$ Z& j( Y3 \' h; U7 g+ w# |+ ^ & C% @) {& S8 |7 k/ j' A Question #5 Can C# be used to develop Windows applications or is it soley 3 }- Q0 K' R# z) V$ jused for developing distributed applications? : P+ i& N( f6 }0 ] ) b- G6 r# W: E
Answer C# can absolutely be used to develop classic-style Windows applicat 1 b; Q! t( v8 d5 V" kions. Actually, this is more a function of the runtime, not the language. So % y/ u# S1 w' r$ y3 F* V
, the runtime supports console apps, GUI applications, NT Service applicatio 8 L, m2 Y/ h% L0 \9 c t
ns, simple components which can be used in applications, web pages and so on S" c/ z) W1 V6 X
. You can't write a device driver but that's about all I can think of that t 0 _1 S% H- d Whe runtime doesn't support. - k! Y: p. U5 l( q+ _: h
, d/ p$ X* m& s, H6 R6 E! } # l% J, |6 E$ A/ H: { Question #6 What is the C# relationship to WinForms? ! L3 F$ c O/ t5 Y6 t I P # I) u% @: j0 B" p0 q. }) y
Answer Win Forms is a set of classes in the .NET class library that wrap W 8 s( m1 j0 R. uin32 windows, brushes, pens, etc. Any language targeting the runtime (includ 2 \4 k% R, Y/ p7 ving C#) can construct instances of these types and manipulate them. This is 8 y: u `! h4 u7 k* A% N1 j2 P
how you would create an app like Notepad, Calc, or Wordpad. I know that Win , K4 o, z1 X6 h6 o. G7 \" o4 p
Forms has similarity to J++'s WFC library but I also know that there have be 7 ~/ V {- X2 S k! m
en some major changes. $ ~+ D/ o1 t9 B- I6 @0 Y
7 R5 k, c0 k6 t& M9 V2 d" n % o) u/ Z& n6 P1 ~! p# @" F; C Question #7 Rumor has it that the C# language has been submitted to the EC : I2 _; @% n, P& m) V. Y+ fMA for ratification. Is this true and what impact do you see that having on + c! K7 i$ K P7 U, L$ xother companies adopting it as a general language (such as C and C++)? r8 m; u# V9 P* F" g
' Z: F9 ^, O$ h+ R5 G Answer Yes, it is true. I pretty much answered this in question 2. # `1 i7 v' R( ~; L1 p : ~! {3 o! I, W. G# U: m 8 x' _7 W: q% F2 d. u6 P Question #8 Which will be the role of ATL and COM in the new .NET technolo 1 w# V/ v+ Q; N/ kgies? ; D. o; W+ J3 b7 g
( J3 e. x: \$ }% V& V9 c5 |
Answer The .NET frameworks offers a replacement for many existing librarie / B$ L9 e8 X9 |1 }: es, like ATL, MFC, C runtime library, standard template library and so on. .N - n% L4 C, l& k8 UET programming is significantly easier than using any of these older technol ! V4 O( o, P) a, \& E/ }* w7 I
ogies. For this reason, I suspect many developers will move away from using 7 K' E# P0 Y' m3 T3 bthe older technologies. The older technologies can buy you performance howev & h/ f' h# {* z8 R1 [er; so, some people that are very concerned about this will stick with what' # d) C# j$ U5 k Q+ U% A- ls around. As for COM, developing components with .NET is orders of magnitude : j T& {" x0 D# [, f easier and the interoperation between components pretty much happens for fr & w4 \# K# u% v9 H
ee. Again performance may be an issue for some. And, for the time being COM+ 4 T! h M, \9 D0 O) T% b services, like transactions, are not being offered directly to .NET code. Y / }4 b- M9 G" Z9 \% g
ou can still access these COM+ services but .NET code must incur an interope 0 `! o3 \- l+ B: U- l
rability transition, which translates to a performance hit. , s8 S; m' y" y' K; {' c4 d- C; r' B # {6 f2 Y2 `* L5 I9 G
' E$ c) A- V+ Y& F L0 e
Question #9 Why was the templates feature not carried over from C++ to C#? : a4 R2 {) z5 Z" o; V4 H, d / K: j9 ~/ ^: I0 t l2 B6 o 3 m2 |' G" I" g0 l# | Answer Again, this is more of a runtime issue than a C# issue. First, temp $ Z" o) \: ?' U' U" |4 K9 b+ {/ flates are difficult to implement and Microsoft choose not to do the work for 5 o* }1 `- H* a9 s1 W
Version 1 of the product. They may do templates or something similar in fut 7 A4 C, z% A2 T+ ^4 {$ q% } oure versions. Second, since the runtime is a multi-language runtime, introdu 6 G* l, H( S% T" W. \ y, y
cing templates means that all languages targeting the runtime would be requi + v. C7 m/ G! Z: ^0 e
red to support templates in some form. There are a lot of issues here that n ( `% p! k. m0 A% y
eed to be carefully considered. $ n1 C' R$ ?6 b% [
% p* U& _2 o+ [2 Q2 ]
9 R9 f9 j; X( [- x. m& M: | Question #10 Will C# replace the pseudo keywords that clutter ATL COM code # V( `5 M5 P* C8 ^0 L- g" f$ l with real keywords? Examples: OLE_COLOR, BOOL, VARIANT_BOOL, and DISPID_XXX 9 g' r. F) b1 `2 ]# o6 \, j! [2 R8 n
XXX. , L0 u$ D9 B. y* Q S/ L
! W" K9 Y" ^' R; c; ]$ P Answer Absolutely, all types have new names as provided by the .NET class 6 x8 ], v+ b: u h$ Z
library. . t* j1 V1 b& o4 F( G+ u2 {
1 J) _' H1 J% k' ?3 v ( |) O9 Z3 V2 u1 `2 |( f. v" k/ ^
Question #11 We've seen managed extensions, but aside from that, what futu $ y4 d" m" _! `5 }+ ]6 p l/ q% Q! N
re does C++ have at MS and in .NET? ; L* @( E5 m0 U q$ Y' T, m; D # h! ?* Z2 J# \$ b) L5 ~( I
Answer C++ is unique in that it is the only Microsoft language that allows 0 @8 b8 w, U, o the developer to write managed and unmanaged code. So, I can easily see dev ( e4 Y, w% l4 ]" U% q% G* H. f9 h
elopers writing in unmanaged C++ for performance-critical algorithms and the ( D( }6 x9 B& o+ yn using managed C++ for type-safety and component interoperability. I'm sure 0 C- x, c# C. b' X" Y9 n/ x& W Microsoft will keep C++ going for years to come: device drivers need it, Wi * s6 D( W: L5 c' C" X- N1 Kndows is built with it, SQL Server< Exchange, and other BackOffice products - G: U7 [$ W2 v# cwill probably use C++ for a long, long time. ; x3 Y& f( U: N/ l. ~% ]7 f& K0 |/ x
+ i5 }! f R) \ $ e( ~+ l I5 J& @* i
Question #12 If .NET supports ActiveX/COM, how will security be assured if ' W' ?, I4 K% C! }" l3 Z a C# application runs from within a browser? 8 u1 d; p8 e) t n c3 o) Z* U : d$ P/ m' l. d$ t0 B1 D* V
Answer The .NET runtime offers code access security, which allows an admin 9 v2 e" h* d! T" B4 i$ ]: N1 i
istrator/user to configure security based on code identify. By default, any 8 l; n) v$ x) W/ X
code downloaded via the Internet or intranet is untrusted and will not be ab / L% c# i" Y8 ]- b* Tle to access files and other resources. In fact, when I build a console appl ; V' q( m: H5 K- U) fication and run it from a network share, I get an exception when it tries to . q% D _4 w3 B9 z0 |4 P
access certain resources. If I copy the same file to a local disk directory & N- R# y/ m3 q4 q; V7 _, r
and run it, it runs fine. Code access security is integrated with the runti 0 w# i7 b* F; P- m) C( I
me and is too deep a subject to cover here. " b3 t; M( F }# J$ B6 M5 E6 }
! p; }' g+ `- q: A/ H0 G- } 1 i0 Q2 r1 i, c$ }6 @# [
Question #13 With regards to the .NET runtime, do I need it on the machine ) \$ F- a- h* Q0 E that I deploy C# apps on? % v$ W* y4 _5 `: j! J' W- W ' ]$ }+ S- \3 T( }: J0 W Answer Yes. All managed apps need a manager; the runtime is the manager. M + I; r: e' W2 ? e! [8 H
icrosoft will eventually package the runtime so that it is freely redistribu 0 k7 ?5 t) C: m2 |
ted. For now, end-users will have to install the full .NET SDK from MSDN web " G6 Y* V/ |0 i' l. U& g
site (when available). This is similar to how VB developer must ship the VB * O' r% Y( L) q2 t- { runtime today. - r3 _8 Q* Z1 p6 K 4 N. m: A0 V: g2 T : L y0 V& K3 h/ ]7 p+ a
Question #14 There has been mention of being able to derive C# classes fro " W: M6 ~0 \6 ]
m VB classes. Is this true and where can we see an example of how to do this 5 r/ t% ? `- s- ?8 _) J
? 5 K* ], k9 ]/ o! p* I7 ~, o
/ V# m O4 l4 p: j
Answer This is true. In fact, any language that targets the runtime can de / c% D% W' S* L3 E" v
rive from any type created in another language. Also, the Visual Studio debu 6 [" }6 \6 d8 C# jgger fully supports debugging across languages. Each entry in the call stack 4 K1 G( }+ ?- l, o$ u' Q
window shows the function on the stack and the language that the function w , {0 |7 |# g( O) B+ p, G$ {" n8 [7 }
as written in. This is very cool and got a round of spontaneous applause whe - I0 w! q8 N, s# {3 Y& y% `
n shown at the PDC. There are samples in the .NET SDK that demonstrate how t : ~$ K- h, q6 K$ c' s4 @, n# ro do this. It's really quite simple. Actually it just happens, there is noth + {0 Y+ i1 ^3 d1 q4 Q1 Uing for you to do. You can also throw exception across language boundaries a $ C! k: |8 [/ s
s well for error handling. ) G3 w2 L- z# p4 z" u7 L
1 `* c' z4 |3 P( ^2 o ' A5 e. r8 E# X$ ]7 n- T) P. Y* c Question #15 Can I derive a C# class from a C++ class? If so, how? , j; y+ ]; z0 V, Z5 ?# z( n* w) m 1 j: K& @0 A, j
Answer Same as the answer above: Any managed language can inherit from a t ( v A" b" M' `9 v; w% n
ype in another other managed language. If you use native C++, then you can't . h" t/ C: M+ s4 A/ i do this, however. ) t! |& p& [1 k% ?( d 7 ]; C* t6 S( U* Z% G
7 H. `+ x+ ^. K5 j. h& A; D' a; }6 N
Question #16 Will the new version of MFC have the option of working in a m ( v) t0 G/ }& G- |5 z7 tanaged environment? ! y" I, y$ Y7 s( U * y) y9 Y1 u# {+ h Answer I haven't been tracking the new version of MFC but I'm pretty sure ( E0 T- y/ i5 E$ r2 a
the answer is no. MFC is all unmanaged just like it has always been. For man " ]0 t1 A, q2 n+ h9 \
aged applications, Win Forms is the window manager that people should use. ) ]# }" ]8 P5 r7 X! O
; e: _; f7 Y9 B; d# Y" X3 c . ^* h5 n2 M( Y+ D5 s1 k- [
Question #17 If the new version of MFC will operate in a managed environme # U3 h2 P2 s$ l9 Z, U; `% Vnt, will it have the option of building desktop Win32 apps and not needing . 1 |1 g8 w a4 i! q3 l$ Q$ lNET runtime support? . {; y# P& d, e5 @ : X- O) u9 s( ^ Answer I'm pretty sure MFC is unmanaged and will never require the runtime 8 [* N1 m a3 b+ C. 3 Z7 i5 m0 ]+ Q % L* v0 i' c, g2 a- A
/ v8 ]( J0 F. o% K F Question #18 Stroustrup has been quoted as saying "I have not expressed a % N' Q* @% P, j1 r& atechnical opinion on C#, and I don't plan to do so. C# is yet another propri % u2 E* T3 p+ I( v
etary language specialized for Microsoft's Windows system." Do you agree or $ [6 Z' {, _( {, z, l3 x$ ^/ ?
do you think C# is more of a generic language open to other platforms? ~, m% k3 ~+ y# { B( C) a " `" c' n1 n& P, \
Answer C# is a language designed for the common language runtime; not Wind - Z2 |9 |9 v9 c1 o. F% I
ows. The CLR can be ported to other operating system like Linux and Solaris 9 j/ u5 a4 s, n& E8 o9 {/ e
and if the CLR is there, then C# will probably be there as well. In the gran 3 M0 r) {3 |# P
d scheme of things, C# is not that important or interesting. It is a syntax & x/ j9 y/ r0 {- F; L
checker that spits out intermediate language consumable by the runtime. You ( k+ S- J, t( I& p/ t' T
can love C# or hate C# - your choice. I happen to love it and think is the b ) z% g. k' q: B. N# ?* Kest programming language for the types of applications I write. ! M% m: R" i0 ~- w& ?9 h; B
7 H" v4 u8 U" g
, z$ w) f7 H& x6 _; ?
Question #19 I heard a rumor that VB7 will allow static linking of the run + H" N* u6 B* h2 j
time, like MFC. Is there any truth in this? If so, will C# also be able to c . x" d4 |3 p* mreate standalone apps? 9 m: o+ p. P3 W& J$ p6 W3 Z, e7 U6 m 5 W" F* I; X+ \- X- X Answer This is absolutely not true. No language will able to statically li 6 d, u2 U" @1 t) w, R
nk to the runtime. : N m/ w2 Q) ?6 K 8 ?; U% Q ]' L) r
' P+ X1 x" }8 Z. C! B
Question #20 Does C# still use resource files? If not, what mechanism is p ) K e( J- O7 w [! Z+ f4 e) Orovided to allow for localization? & v* o- E0 I% ^, u4 ?4 t( @1 E
2 R! f: s, B% ?8 G% Q% H Answer The .NET frameworks designers have created a new resource model. Re 2 A. J( d# U& y* q" p
sources can be embedded in EXE or DLL files the way Win32 resources are or r 8 R' x( X4 {4 }; g4 {
esources files can now be stand-alone files like a single jpg or bmp file. T + [( h! {# ?3 _: z- ohere is also the concept of fall-back cultures. If the Swiss German resource ! H% ]! M w( P" S- M2 ` can't be found, the runtime looks for the German resource. If the German re % |# S ?1 m) r( x5 |source can't be fond, it looks for the "default" resource. Each language wil 8 d0 w, a; R5 l il typically be built and shipped as a separate assembly rather than packagin 4 l; N( F& f# A z" G* E6 {. lg everything up into a single file. Like code access security, a full discus ) F8 c* \) W) L% z; B% C# l
sion of the new resource model is too much to put here. / v! h1 J) B$ ^2 T) n/ i0 q 4 K# W5 j: a2 O. v5 Y- i 6 e2 n% R1 M) O" N- X/ a" I( y
3 Q$ C) T7 h* F7 N# J5 V* e/ I 9 t0 [; z: t6 k: T8 V, _9 D wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : / o! U8 m. H% S2 G; W+ H5 X0 L# E
: Z( M7 q D3 s
我想应该这样说,一种新语言的出现会在一定的功能领域上替代其他的开发语言,以 ) ~1 N) t3 I; Z, r; l* ^ [$ a# o前的开发语言的使用范围会缩小,但不会消失。(就算是出于保护现有资源的目的) ( j3 i0 Y. U& t4 H$ [
: A* d X3 i1 J$ h/ g( r
但没有一中语言是十全十美的, 0 l1 H! g+ Y# ]# F8 N0 m9 o3 i
- G R: d2 h/ s) B' {
JAVA,C#都不是。 9 Y' L+ x( t0 I
) v. E2 t$ \8 ^" t7 j6 z 4 Y9 H3 N8 [. s9 u( n7 H: @* `( I 4 \+ @1 ?* n* _8 b2 N+ [' g0 c wenyy 来自 <a href="http://www.vchelp.net" target="_blank" >http://www.vchelp.net</A> : 0 W" q3 }. h' P! @6 ] 0 ?' Z- q5 T/ l @0 p 》》恶魔吹着笛子来 8 T0 M7 V0 k, V ?. _7 {9 n% l # S0 r0 d8 {6 H; W3 ]
你好, 8 ], ]# q6 W, d9 `/ W
' H W5 a4 {# A2 A" F
很高兴能够与你进行讨论, ) \6 i1 J. l7 D; j$ @) N
# v9 X; g P( i& d* A5 z: D
虽然本站名字叫做vchelp.net ' Q' V3 b* A+ s( @8 P# I$ N0 p: a ' d# A1 S C- G4 p9 ]2 \: J
但我不排斥其他的开发语言,只是自己的能力有限不能将本站内容扩展到其他的语言 / u2 t$ Z2 \. e: T: j
, * X% w" A* C2 ^& T8 E
t6 u3 K+ [( u& {$ Z- h 但我很希望大家在本站对开发中可能遇到的问题和矛盾进行讨论,不论是关于语言还 / v, R7 ~( G* K3 K. E是开发方法的。 * M0 K. [& }0 b# |# t4 n ) F1 h) Q' p7 q) l9 p! N
我想邀请你成为本站个人专栏的作者, : X" p. u2 v7 c6 X- W- u 9 z; E' K8 c- v& k! J
你可以发表一些你关于开发的想法,就算是与VC无关也没关系。当然在时间上也没有 6 g; V0 y7 w" v' {要求,你有时间就写写。 * B5 Z( J0 y8 K4 y3 T 5 N9 p# M/ X; a6 C; z. a
盼复:<a href="mailtwyy_cq@21cn.com" target="_blank" >wyy_cq@21cn.com</A> ' M# q, k8 \) n2 U( ?# O7 V k/ R% i7 @
) p3 K s$ ]4 t. w. w
cuixue 来自 http:// : 7 t; K' x& X/ P7 W " x( o4 r1 j3 W4 P 看了各位大侠的话,觉得好像在讨论java,其实历来有两派,smth几乎天天在吵, 8 H8 }. u1 Q0 H3 F6 U . O/ H9 l' }" Q/ M( ], {9 m: W 喜欢java的同志到各个地方布道,连perl也不放过。呵呵。我个人觉得java先天有一 7 l# s% Y3 }, o* K8 y; {: b" P' I
些劣势使得他无法取代c/c++的,他的垃圾收集只不过通过一个线程来完成,这对实时系 8 q- Y# Z8 \8 t统是来不及的,EJB的推出也说明java原来是不适合企业级开发的,没有语言是天生完美 : X( r |+ e$ J( n' ]1 G) K
的。java最大的困难我觉得来自microsoft的刁难,c#的推出无疑会夺走windows平台上 . L: |) c( d; R! A" N- B. Z$ h的java份额。java的速度也就不说了。jbuidler的速度不能够忍受阿,可是这样一个产 3 F) N; |- u, D) V4 A品就是java写的。由于个人见识不够,实在不能理解海量吞吐的 1 W0 Q9 J- J4 D% K, a6 ` 5 I/ C$ ]* s! z: t6 ]2 I$ W- G% n server用java.oracle用java是实现了ejb的集成把,他的数据库engine是不是java 的 ( E0 C, X/ S5 o3 \2 T% V
那?请大侠指点。而且当时号称8i不要操作系统,结果市场反应平平,还好 ' a5 E4 ?! B, M2 ^
* D1 p. _* F3 z5 Q6 G" R1 j8 t9 S
搭上了e-commerce这班车,:) ' p- g- Q; Y) K. x6 J: s' D
8 F8 Q! Z# Z5 n* E 在说说我对vc和bcb的看法,这两样我都算粗粗用过,紫云影说得挺好的,比较公正。 3 Z1 L7 R* w4 m4 U) q1 S
MFC的确稳定,ATL未免有点复杂,要不WTL就不会出来了。vcl的源码有一部分是pascal ) U1 p9 f* h5 R! d写的,这点有点差,不过他的扩展性很好,用用就知道了,决不是好多人认为的vb式的 2 A/ }3 S2 b a% B' a傻瓜工具。道理很简单,应为他是符合ansi标准的c/c++语言。其实vc是不够ansi的,C * ^8 c# Q' l+ F3 b9 o1 Z) W! C2 q
String就是不符合的,所以bcb用了 AnsiString.可惜bcb不够稳定。 " m0 d8 x1 I7 c) u, K! z* z; \; g : P R1 S: R2 P; y8 j1 h* o2 v 提示太慢。帮助的问题我是这样看得,msdn不是专门给vc的,他是windows开发的指南 ' B, D3 s. D0 e6 N6 |7 i& n,用bcb一样也很有用,是个宝贝。 1 s( i7 R! h0 _& }, t6 F, J0 G! ^ 0 J9 A; }$ p$ q 好了,不说了,反正按需所取把。 ; ?. c! R8 _1 a* ]+ s : ]% \) p3 e2 j) o' T cuixue 来自 http:// : % S3 M+ c7 J3 m! X ; C; d# Y3 ^8 y& {! B, ] xml远程调用无疑是平台无关调用的一大进步,可是这也不能说corba就要消失了, ) B9 h8 u7 R; k. V3 s2 {; u
# w( J7 U1 E. R! e! ]1 \ xml这种标记语言虽然提供了强大的标志检索的能力,可是它本身的缺点是与以前系统 t# o1 d- R# X& V9 x
的兼容性,所以最近推出了xhtml以兼容以前的应用。电子商务的应用有不同的类型, 7 v. T9 o4 }2 m0 y# \# ]% ^ 5 F( q! m1 v- G% H, a" s 对于一般的b2c的应用,sun e1000上跑跑java或许可以,如果是银行的主机,起码 7 H- ~' v6 C8 Z$ v, Z
# q( C I6 k6 R8 F1 J
1000笔每秒,java是不是可以 那?硬件的提高不是没有限度的,而且现在数据中心和 1 x( x" D9 \ @; yOLAP的流行,对实时的要求更高了,实际上对于单位应用硬件资源并没有什么起色。而 # i) ? C* M ?# }$ D且数据发掘的应用要求对原有资源的兼容,对于中间件而言java开发是有优势的,corb 7 S& M3 e% K+ ~5 i
a提供了对异构网络的良好支持,ejb也在向它靠,毕竟在这个年代,不可能只存在一个 - m3 i- h+ b: q$ U
系统,一种语言,对自身的改造和对异构网络的支持以及原有应用的支持是每种语言都 4 [7 P9 M, U# J4 W
要面对的难题。 9 l) B6 h7 u! _$ P) ^! ?, Y
# l) I6 _, z/ b# h7 V! T 2 [+ a$ ~, @/ J1 v1 {6 Q" i
' A( K( Y) `" }3 @+ k u
杨宁 来自 http:// : 8 i- ]- R4 v* h- g/ j- \% `" b
# N& F6 z- w" `/ l0 V, o. P6 v
世界是多样性的世界。 4 Q( V* B2 x+ \" d3 I' w
* k, e6 R8 I; w( g. `
不面向应用,一切都是废物。 * f& W8 D K9 b, `* ^, l S : U* h7 ~9 @- J( K 学好编译原理和操作系统,以不变应万变。 + C7 v8 h+ x$ U: Q1 } n; M, x
g' m3 P* t' ~' W% q, R# } 人的精力有限,面面俱到等于面面难到! ( n- m2 u% V5 X ( u3 G. t7 t4 b( b
妖刀 来自 http:// : 2 v" T1 ]% K, Y" b3 Y- p
' s3 l( F- c% d* G- X) A* `# c 我不会编一辈子程序,我需要简单,快速.我只要他好掌握,能实现功能. , x- Q* K: I; ?! X; N N; ?6 t
8 d0 g. q- U S Z
至于是专家型的C++还是傻瓜型的VB(Delphi也差不多)我不在乎. ! I) t. P2 p* q/ p % d" ]5 r- l; V. k+ C" P. u 老板也不在乎 1 |1 }* k! a; Q1 A' U% Z- S
' m% f; [8 P3 {8 q( G TOM 来自 http:// : 9 ?1 n4 Z; v! I4 T7 e: t+ x % ~( {( k% [) q( u 用VC++和Delphi都各有千秋,Delphi写界面方便,大部分是写数据库程序。但写出来 , C! u# T7 z% r+ M; y. T
的程序太大,如果做一个组件(为HTML写的)还是用VC好,有句话很好,专业的程序员 % }& _* K+ u0 V5 S& g8 B2 B M用VC,聪明的程序员用Delphi, 2 G! }, b, B1 T% c7 ]/ B 9 L# |& Z* V9 ?3 Q( f
TOM 来自 http:// : $ t% Y8 o9 N; l, k
0 j7 k' w( k" G- D2 x$ h
用VC++和Delphi都各有千秋,Delphi写界面方便,大部分是写数据库程序。但写出来 , m" j' @7 R9 N c" s3 j/ X& O7 m. a* o3 U的程序太大,如果做一个组件(为HTML写的)还是用VC好,有句话很好,专业的程序员 , `9 f3 B- m7 H1 J用VC,聪明的程序员用Delphi, 5 h* j0 i, t9 b) C