我们如何从应用程序创建库? (从应用程序派生库/API)

发布于 2024-09-29 05:31:43 字数 331 浏览 0 评论 0原文

我的目的是为小型分布式多用户游戏/模拟创建一个库/API。

我已经使用 java RMI 创建了几个应用程序,我试图使它们保持简单并实现解耦,现在我想转换这些应用程序或想从中派生/提取通用模板。

有人可以阐明我如何提出库/API

可能的方式或设计模式是什么,可以帮助我或最可能的程序/方法),因此其他人可以轻松地使用它来创建多用户游戏。

PS:我可以期待这个问题的答案,但我仍然想研究每天做所有这些事情的技术大师的任何反馈。

非常感谢您的任何反馈。

吉比拉拉

My intent is to create a library/API for small scale distributed multi-user game /simulation.

i have created couple of applications using java RMI, i tried to keep them simple and to achieve decoupling and now i want to transform those or want to derive/extract from them a generic template.

Can somebody please shed light that How can i come up with library/API.

(What could be the possible ways or design patterns, which can help me or kind of most likely procedure/methodology), so it could be easily usable by other people to create multi-user game.

P.S: I can expect answers to this question but still i want to research for any feedback from technical guru who do all these stuff on every day basis.

load of thanks for any feedback.

jibbylala

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲜血染红嫁衣 2024-10-06 05:31:47

怎么说呢,学习图书馆设计吧。没有其他捷径。

并彻底阅读这本书(Java 中的实用 API 设计)

What to say, learn library design. There are no other shortcuts.

and read this book (Practical API Design in Java) thoroughly

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文