File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Good Code Examples

 
blair cairns
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am looking for a good open source application to learn from. It could be either a real application or one written for instructive purposes. I am aware of the numerous open source projects available but alot of them seem to be very large and not necessarily very well structured.
I am interested in particular in apps that have good examples of patterns use, preferably in a client-server context. I am sure there are lots of good ones, please toss me a few links. Thanks.
 
Damian Ryan
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say you could do worse than to take a look at some source code you almost certainly already have sitting around on your computer - the source code of the Java API.
This can be found in the src.zip file in the top level of your JDK installation.
Several patterns are used in the API - MVC, adapter, observer, factory, the list goes on. Many times the name of the pattern being used is explicitly stated in class names such as SocketFactory.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic