标准 Java 合约列表
我正在为我的一些朋友编写一个小型教程系列,向他们介绍 Java。他们是专业的程序员,而且是优秀的程序员。基本上,我们的商店正在运行 Progress 4GL(我只是吐了一点),并且我们继承了一个非常糟糕的代码库。我们希望在不久的将来用 Java 服务替换其中一些写得不好的模块。
Java 所重视的一件事是契约。是否有 Java 中最常见合约的编译列表?我希望那里会有平等合同之类的东西。
I'm writing up a small series of tutorials for some friends of mine introducing them to Java. They're professional programmers, and good ones. Basically, our shop is running Progress 4GL (I just threw up a little) and we've inherited a simply awful code base. Our hope is to replace some of these poorly written modules with Java services at some point in the near future.
One thing that Java is big on is contracts. Is there a compiled list of the most common contracts in Java? I would expect things like equals contract to be on there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 java,实现 java.lang.Object 是最基本的契约......因为一切都是对象(除了内在类型)。
也就是说:我为进步而工作。给我们的支持人员打电话 - 我们对 Java 非常友好。
With java, implementing the java.lang.Object is about the basest contract there is... since everything is an Object (except intrinsic types).
That said: I work for Progress. Give our support folks a call - we're very Java friendly.
如果您的朋友是专业程序员,并且您希望他们尽早学习最佳实践,请让他们阅读 Effective Java< /a> 作者:Joshua Bloch,节省您的时间。
If your friends are professional programmers and you want them learn the best practices early, have them read Effective Java by Joshua Bloch and save your time.