Topic: 领悟OOP需要多长时间?

  Print this page

1.领悟OOP需要多长时间? Copy to clipboard
Posted by: cxp108
Posted on: 2006-03-31 09:05

我想知道大家领悟OOP的真正意义,也就是说开始懂得应用OOP理念进行编程,用了多长时间?

我用了2年,不知道是不是没天分....Sad

2.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: floater
Posted on: 2006-04-01 13:10

Consider the timing, in my experience, 3 years is about right. Read, think, try.

To be honest, I haven't found any good book on OOP for new comers. Whatever they write, doesn't make much sense for new comers, and seasoned OO developers know them already.

But don't count on it. When I was an undergraduate, I've never understand calculus, it took me 9 years to finally take it home with me. So your milage may vary. One thing I feel for sure, as long as you keep working, don't give it up(ok, maybe temporarily), one day, you feel the sunshine.

3.Re:领悟OOP需要多长时间? [Re: floater] Copy to clipboard
Posted by: cxp108
Posted on: 2006-04-01 14:08

floater wrote:
Consider the timing, in my experience, 3 years is about right. Read, think, try.

To be honest, I haven't found any good book on OOP for new comers. Whatever they write, doesn't make much sense for new comers, and seasoned OO developers know them already.

我也是这么为的。

我的入门书籍是《Thinking in Java》,里面的OOP那一节我看了N遍,当时感觉OOP和程序根本不相干。

直到从事开发工作2年后领悟到OOP的理念的时候,觉得自己以前写的代码很不专业,甚至有很多功能只需要原来1/10的代码就可以实现了,而且更加易懂、稳固、容易维护。

我觉得OOP理念是一个Coder(或Code Fans)转型为Programmer的第一步。看了floater的回帖后,感觉很高兴自己正在踏出这一步!

4.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: zcjl
Posted on: 2006-04-01 16:03

cxp108 wrote:
甚至有很多功能只需要原来1/10的代码就可以实现了


我倒不认为面向对象会比面向过程更节省代码(代码复用不仅仅只适合OOP),相反,从代码量来计算,很多时候OOP会比面向过程的方式更加冗长,但是没关系,代码冗长并不就意味着可读性和可维护性降低,因为好的OOP可以实现更好的封装,更符合现实生活的思维习惯。

5.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: idol
Posted on: 2006-04-11 11:48

呵呵,跟应用有关

6.Re:领悟OOP需要多长时间? [Re: zcjl] Copy to clipboard
Posted by: jameszhang
Posted on: 2006-06-04 14:55

zcjl wrote:
我倒不认为面向对象会比面向过程更节省代码(代码复用不仅仅只适合OOP),相反,从代码量来计算,很多时候OOP会比面向过程的方式更加冗长,但是没关系,代码冗长并不就意味着可读性和可维护性降低,因为好的OOP可以实现更好的封装,更符合现实生活的思维习惯。


其实 OO 从来没追求过代码行,他 要达到的 是 可扩展性和可复用性的目的,但如果 可复用性 的提高 ,就可以节省代码,哈哈 ,

因为好的OOP可以实现更好的封装


有点逻辑问题, 封装 是 oo 的 特征之一 ,是 OO的 四个基本原理之一,怎么说 OO 实现 的 封装 ,应该是 程序通过 封装 实现 OO编程 ,呵呵

7.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: kenwudi
Posted on: 2006-06-06 08:54

这是我见到过的最好的JAVA书,用类比的方式介绍OOP,图文并貌,更加生动!好象只有英文版,适合英语基础较好的朋友阅读,其实只需英语6级即可。
http://www.5dinfo.net/blog/?2006/3/23/1

8.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: gaoxt1983
Posted on: 2006-06-06 14:58

"I've never understand calculus"

What does the "calculus" mean?

9.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: floater
Posted on: 2006-06-06 21:31

wei1 ji1 fen1

10.Re:领悟OOP需要多长时间? [Re: floater] Copy to clipboard
Posted by: why
Posted on: 2006-06-07 01:19

floater wrote:
wei1 ji1 fen1

微积分

11.Re:领悟OOP需要多长时间? [Re: floater] Copy to clipboard
Posted by: jameszhang
Posted on: 2006-06-08 20:11

floater wrote:
wei1 ji1 fen1

每看一遍 ,模式 都有体会,呵呵

12.Re:领悟OOP需要多长时间? [Re: cxp108] Copy to clipboard
Posted by: ftang
Posted on: 2006-06-23 23:13

俺的两分钱:用面向过程来分析,用面向对象来设计~~~等到你用的模式都能舒舒服服的套到你的分析上去了,你就毕业了

13.Re:领悟OOP需要多长时间? [Re: jameszhang] Copy to clipboard
Posted by: istimeto
Posted on: 2008-06-17 00:26

jameszhang wrote:
每看一遍 ,模式 都有体会,呵呵

赞。。。。。。。。。。。。。。。。。。

14.Re:领悟OOP需要多长时间? [Re: jameszhang] Copy to clipboard
Posted by: istimeto
Posted on: 2008-06-17 00:31

jameszhang wrote:
其实 OO 从来没追求过代码行,他 要达到的 是 可扩展性和可复用性的目的,但如果 可复用性 的提高 ,就可以节省代码,哈哈 ,

有点逻辑问题, 封装 是 oo 的 特征之一 ,是 OO的 四个基本原理之一,怎么说 OO 实现 的 封装 ,应该是 程序通过 封装 实现 OO编程 ,呵呵


好!!!!!
功能的实现 只是 设计的一部分,软件结构的设计也追求一种美,这个和建筑的设计是一样的(尽管他们对于美的评价标准不尽相同)。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923