This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Good Code Examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Good Code Examples" Watch "Good Code Examples" New topic

Good Code Examples

blair cairns

Joined: Oct 24, 2002
Posts: 8
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

Joined: May 09, 2003
Posts: 117
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 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.

Always proofread carefully to see if you any words out.
Don't get me started about those stupid light bulbs.
subject: Good Code Examples
It's not a secret anymore!