Software Reality
Programming with
a dose of satire.

Site Map Search

Agile Development
Extreme Programming
Code Generation


Check out our ageing Reviews Section

Use Case Driven
Use Case Driven Object Modeling with UML: Theory and Practice
Get from use cases to working, maintainable source code. Examples use Spring Framework, JUnit and Enterprise Architect

Agile UML
Agile Development with ICONIX Process
A practical subset of agile development techniques, illustrated by example

Get Controversial!
Extreme Programming Refactored
Extreme Programming with a dose of satire
Available now:

ICONIX/Sparx Public Classes to Come to London

ICONIX is planning a series of open- enrollment public classes entitled Hands-On Enterprise Architect for Power Users in collaboration with Sparx Systems.


Interface Design

<< Introduction

Page 2: Function Oriented Classes

As a reminder, Function Oriented classes are those that expose functions such as actions or operations on their arguments. A lot of these classes are effectively utility classes - they expose HEAVY interfaces.

Utility classes are quite out of fashion in the design patterns community. These kind of interfaces are often viewed as facades for encapsulating large monolithic bundles of code.

Here is an example Function Oriented file handler implementation, called FileUtil:

public class FileUtil
    public String getContent(File file) {...}
    public void setContent(File file, String content) {}

Note : Static methods could have been used.

>> Next Page: Object Oriented Classes


<< Back to Design

<< Back to Software Reality

All trademarks and copyrights on this page are owned by their respective owners.
Stories and articles are owned by the original author.
All the rest Copyright 1998 onwards Matt Stephens. ALL RIGHTS RESERVED.