JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Software Design  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 有沒有啥推薦的 pattern 適合 Rich Client 的?
cyclops49





發文: 46
積分: 0
於 2005-06-01 10:39 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
as title
project 要做 rich client 的 (swing)
不知道各位前輩有沒有啥 pattern 可以推薦的?
thx


reply to postreply to post
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:cyclops49]
Lan2





發文: 283
積分: -1
於 2005-06-01 11:35 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
cyclops49 wrote:
as title
project 要做 rich client 的 (swing)
不知道各位前輩有沒有啥 pattern 可以推薦的?
thx

你是當做在買顯示卡還是硬碟啊?


reply to postreply to post
討論區最討人厭的,就是平常問題討論時沒什麼貢獻,有口水戰時卻一定會出來噴口水的傢伙;
而且這種人還特愛報老鼠冤、愛虧人、愛假正義、還愛管閒事
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:Lan2]
jd001982





發文: 366
積分: 6
於 2005-06-02 09:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
DTO

reply to postreply to post
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:cyclops49]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2005-06-02 09:36 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
總得說明你想設計怎樣的軟體
功能是什麼,才有辦法去想用怎樣的DP吧

直接這樣問..真的如Lan2所說
你當作是買零件唷?

koji


reply to postreply to post
JCConf Taiwan 2015 開始售票了!!
Facebook上的TWJUG社團,歡迎加入
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:jd001982]
Shen





發文: 167
積分: 3
於 2005-06-02 09:39 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jd001982 wrote:
DTO


Could you explain why do you suggest the DTO pattern ?
It's just a Transfer Object.


reply to postreply to post
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:cyclops49]
cyclops49





發文: 46
積分: 0
於 2005-06-02 17:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
真是抱歉,先前沒說清楚... Orz

目前大概的流程是 Client ( Swing ) 上了 server 後依各自交易種類尋求不同的 service ( EJB ),這樣子的話各位先進有沒有什麼建議的 DP? Facade?

thx


reply to postreply to post
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:cyclops49]
alien

小弟劣作一幅



發文: 772
積分: 6
於 2005-06-02 19:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你該反問一下你自己, 你有什麼問題想解決.
DP 是用來解決問題的, 為了 DP 而 DP 只會徒添麻煩.


reply to postreply to post

public class Alien {
public boolean isNewbie() {
return true;
}
public String toString() {
return "請大家多多指教";
}
}
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:Shen]
jd001982





發文: 366
積分: 6
於 2005-06-04 08:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Could you explain why do you suggest the DTO pattern ?


No matter what application you are building, as long as you are thinking about using a fat client, chances are you will need DTOs to reduce network roundtrips.


reply to postreply to post
作者 Re:有沒有啥推薦的 pattern 適合 Rich Client 的? [Re:cyclops49]
joeyli





發文: 105
積分: 5
於 2005-10-25 08:46 user profilesend a private message to usersend email to joeylireply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如果使用swing連接EJB, swing和web site與EJB間的架構差異, 就在於swing client是run在另一個JVM中, 而大部分的JSP + Servlet是和EJB包裝在一起的, 比較不會有class版本差異的問題.

如果你的系統不小, 而且各小組間會進行平行開發, 那你首要必須考慮的是client端與server端之間的class版本差異會造成後續開發上的困擾, 這類的class包含:
DTO, EJB interface.

小弟誠心建議如果使用swing連接EJB, 不要使用DTO. 使用facade是一定必要的, 但即便如此, 也應該盡量簡化facade的設計數量, 以減少client與server端的class版本差異.

相信我, 如果不這樣做, 系統一大, 光要抓這些版本差異就足以搞死人!


joeyli edited on 2005-10-25 08:58
reply to postreply to post
跨平台是個夢!
» JWorld@TW »  Software Design

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8