Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 领悟OOP需要多长时间?
cxp108





发贴: 363
积分: 12
于 2006-03-31 09:05 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我想知道大家领悟OOP的真正意义,也就是说开始懂得应用OOP理念进行编程,用了多长时间?

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



作者 Re:领悟OOP需要多长时间? [Re:cxp108]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2006-04-01 13:10 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:领悟OOP需要多长时间? [Re:floater]
cxp108





发贴: 363
积分: 12
于 2006-04-01 14:08 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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的回帖后,感觉很高兴自己正在踏出这一步!



作者 Re:领悟OOP需要多长时间? [Re:cxp108]
zcjl

涅槃



发贴: 537
积分: 65
于 2006-04-01 16:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
cxp108 wrote:
甚至有很多功能只需要原来1/10的代码就可以实现了


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



作者 Re:领悟OOP需要多长时间? [Re:cxp108]
idol





发贴: 3
积分: 0
于 2006-04-11 11:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
呵呵,跟应用有关


作者 Re:领悟OOP需要多长时间? [Re:zcjl]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2006-06-04 14:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
zcjl wrote:
我倒不认为面向对象会比面向过程更节省代码(代码复用不仅仅只适合OOP),相反,从代码量来计算,很多时候OOP会比面向过程的方式更加冗长,但是没关系,代码冗长并不就意味着可读性和可维护性降低,因为好的OOP可以实现更好的封装,更符合现实生活的思维习惯。


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

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


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



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:领悟OOP需要多长时间? [Re:cxp108]
kenwudi





发贴: 7
积分: 0
于 2006-06-06 08:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是我见到过的最好的JAVA书,用类比的方式介绍OOP,图文并貌,更加生动!好象只有英文版,适合英语基础较好的朋友阅读,其实只需英语6级即可。
http://www.5dinfo.net/blog/?2006/3/23/1



作者 Re:领悟OOP需要多长时间? [Re:cxp108]
gaoxt1983





发贴: 67
积分: 0
于 2006-06-06 14:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
"I've never understand calculus"

What does the "calculus" mean?



作者 Re:领悟OOP需要多长时间? [Re:cxp108]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2006-06-06 21:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
wei1 ji1 fen1


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:领悟OOP需要多长时间? [Re:floater]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2006-06-07 01:19 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
floater wrote:
wei1 ji1 fen1

微积分



作者 Re:领悟OOP需要多长时间? [Re:floater]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2006-06-08 20:11 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
floater wrote:
wei1 ji1 fen1

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



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:领悟OOP需要多长时间? [Re:cxp108]
ftang



版主


发贴: 214
积分: 38
于 2006-06-23 23:13 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
俺的两分钱:用面向过程来分析,用面向对象来设计~~~等到你用的模式都能舒舒服服的套到你的分析上去了,你就毕业了


作者 Re:领悟OOP需要多长时间? [Re:jameszhang]
istimeto





发贴: 8
积分: 0
于 2008-06-17 00:26 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jameszhang wrote:
每看一遍 ,模式 都有体会,呵呵

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



作者 Re:领悟OOP需要多长时间? [Re:jameszhang]
istimeto





发贴: 8
积分: 0
于 2008-06-17 00:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jameszhang wrote:
其实 OO 从来没追求过代码行,他 要达到的 是 可扩展性和可复用性的目的,但如果 可复用性 的提高 ,就可以节省代码,哈哈 ,

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


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




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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