Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

Patterns

  • submit to reddit

Patterns of Personalization

This article is part of the DZone Solr-Lucene Zone, which is brought to you in collaboration with the Solr/Lucene Community. Visit the Solr-Lucene Zone for additional tutorials, videos, opinions, and other resources on this topic.

I’ve been thinking recently about the role of ‘advanced search’, i.e. the practice whereby some sites withhold certain aspects of functionality from ‘standard’ search and accommodate them instead within a separate search experience. Now,...

0 replies - 2335 views - 02/01/12 by Tony Russell-rose in Articles

Fixing the Singleton

When you ask people who know almost, but not completely nothing about patterns, about software design patterns, they probably bring up the singleton pattern. It’s extremely easy: Just make sure you have one single instance of a class. If you ask more...

3 replies - 5543 views - 01/29/12 by Jens Schauder in Articles

Database Indexes for The Inquisitive Mind

I've used to be a developer advocate an awesome database product called MarkLogic, a NoSQL Document Database for the Enterprise. Now it's pretty frequent that people ask me about database stuff. In here I'm going to try to explain some fun stuff you can do...

0 replies - 3490 views - 12/09/11 by Nuno Job in Articles

Few Thoughts on 'Deprecating the Observer Pattern'

When this article was brought to my attention, I thought ‘wow, not much hubris there: let‘s go put a toe tag on a piece of the most important computer book of the last 2 decades.‘ Then I started to read it and realized that, what a surprise, the...

0 replies - 2643 views - 11/12/11 by Rob Williams in Articles

Maintaining Separation of Concerns when using a JSP Front Strategy MVC Pattern.

My last MVC blog tried to add a little depth into exactly what the MVC pattern is in relation to web-applications, and in writing it I highlighted the problems and pitfalls of using a JSP Front Strategy as an MVC front controller pattern.

1 replies - 2906 views - 11/01/11 by Roger Hughes in Articles

A Bayesian view of Amazon Resellers

I was buying a used book through Amazon this evening. Three resellers offered the book at essentially the same price. Here were their ratings: 94% positive out of 85,193 reviews98% positive out of 20,785 reviews99% positive out of 840 reviews Which reseller...

0 replies - 3094 views - 11/01/11 by John Cook in Articles

Tell, Don't Ask in the case of a web service

This is a language agnostic post: it is valid for each object-oriented imperative language like Java, C#, PHP. Let's start from the beginning: a web service adapterI had a requirement: downloading posts from a particular group on LinkedIn for analysis of...

8 replies - 4384 views - 10/20/11 by Giorgio Sironi in Articles

Java Decorator Pattern Example

I cannot say that I am good at explaining theory. I just read it and try to apply it where possible! After all practice and theory are theoretically exactly the same! So If you are intrested in theory, I think that this article at Wikipedia can explain...

0 replies - 4528 views - 09/25/11 by George Valotas in Articles

Understanding Front Controller Design Pattern

The front controller design pattern means that all requests that come for a resource in an application will be handled by a single handler and then dispatched to the appropriate handler for that type of request. The front controller may use other helpers to...

0 replies - 6194 views - 05/01/11 by Extreme Java in Articles

The Singleton Pattern and its Simplest Implementation in Java

This post motivates the Singleton design pattern and explains its implementation in Java. The Singleton is a design pattern [1] to ensure that a class has only a single instance. The name is derived from the mathematical term singleton which means a set...

2 replies - 6796 views - 04/11/11 by Axel Rauschmayer in Articles

Rehabilitating the Singleton Pattern

“Design Patterns: Elements of Reusable Object-Oriented Software” came out in 1994 and it changed the software engineering landscape. What made this book unique is that it wasn’t really based on code (although it did contain a decent amount of it) but...

14 replies - 5380 views - 03/11/11 by Cedric Beust in Articles

IntegrationContractTest

One of the most common cases of using a TestDouble is when you are communicating with an external service. Typically such services are being maintained by a different team, they may be subject to slow, and unreliable networks, and maybe unreliable ...

1 replies - 4725 views - 01/13/11 by Martin Fowler in News

Under-Design and Over-Design

One of the biggest challenges I’ve had in my career as a developer was over-design. I used to just dive in and code on projects but soon afterwords I would end up stuck. To compensate I would spend a lot of time in the design phase only to discover later...

3 replies - 5798 views - 12/16/10 by David Bernstein in News

Practical Software Design - A few thoughts!

This post draws its inspiration from the many religious attempts I have made in the past to follow those golden "Oh you must follow these steps to do design. Else you are doomed". I have tried to use them 'literally' and have come to a conclusion...

2 replies - 5093 views - 09/29/10 by Suresh Murthy in News

ØMQ - Fast, Broker-Free Messaging

ZeroMQ (or ØMQ) is an open source messaging library supported by the iMatix Corporation.  It has been described as messaging middleware, TCP on steroids, and now is just "a new layer on the networking stack."  Basically it allows you to design a...

2 replies - 10984 views - 07/27/10 by Mitchell Pronsc... in Articles