views:

1071

answers:

14

What is the difference between design and architecture?

+11  A: 

In some descriptions of the SDLC (Software Development Life Cycle) they are interchangeable, but the consesus is that they are distinct. They are at the same time: different (1) stages, (2) areas of responsibility, and (3) levels of decision-making.

  • Architecture is the bigger picture: the choice of frameworks, languages, scope, goals, and high-level methodologies (Rational, waterfall, agile, etc.).
  • Design is the smaller picture: the plan for how code will be organized; how the contracts between different parts of the system will look; the ongoing implementation of the project's methodologies and goals. Specification are written during this stage.

These two stages will seem to blend together for different reasons.

  1. Smaller projects often don't have enough scope to separate out planning into these to stages.
  2. A project might be a part of a larger project, and hence parts of both stages are already decided. (There are already existing databases, conventions, standards, protocols, frameworks, reusable code, etc.)
  3. Newer ways of thinking about the SDLC (see Agile methodologies) somewhat rearrange this traditional approach. Design (architecture to a lesser extent) takes place throughout the SDLC on purpose. There are often more iterations where the whole process happens over and over.
  4. Software development is complicated and difficult to plan anyway, but clients/managers/salespeople usually make it harder by changing goals and requirements mid-stream. Design and even architectural decisions must bemade later in the project whether that is the plan or not.

Even if the stages or areas of responsibility blend together and happen all over the place, it is always good to know what level of decision-making is happening. (We could go on forever with this. I'm trying to keep it a summary.) I'll end with: Even if it seems your project has no formal architectural or design stage/AOR/documentaiton, it IS happening whether anyone is consciously doing it or not. If no one decides to do architecture, then a default one happens that is probably poor. Ditto for design. These concepts are almost more important if there are no formal stages representing them.

Patrick Karcher
Good answer. I like the emphasis on how one can *seem* to be part of the other. The fourth point raises an interesting question: Is design in a particular problem domain any less valid when it doesn't yet have an architecture to exist within? Experience would suggest yes, but in theory I'd like to think that a design that keeps within the appropriate scope (i.e. for a particular component) should be equally valid regardless of how it is eventually used.
Tom W
+2  A: 

Good question... Although the line between them is hardly a bright sharp line, imho, if you are using both terms, then Architecture encompasses more technical or structural decisions about how to build or construct something, especially those decisions that will be hard (or harder) to change once implemeneted, whereas Design encompasses those decisions that either are easy to change later (like method names, class <-> file organizational structure, design patterns, whether to use a singleton or a static class to solve some specific problem, etc. ) and/or those that effect the appearance or esthetic aspects of a system or application (Human Interface, ease of use, look and feel, etc.)

Charles Bretana
A: 

Cliff Notes version:

Design: Implementing a solution based on the specifications of the desired product.

Architecture: The foundation/tools/infrastructure/components that support your design.

This is a pretty broad question that will invoke a lot of responses.

RandomNoob
+1  A: 

Architecture is the resulting collection of design patterns to build a system.

I guess Design is the creativity used to put all this together?

Mark Redman
i have to disagree. it seems that you (as myself and most other answers) put architecture on a "big picture", while design is more about the methods and problem-solving. But, if your architecture is what "results" from the design patterns, they you haven't really architected it, you've just let it grow!
Javier
...unless you havent just let it grow, that is :-)It takes some knowledge and experience to have the creativity to use available techniques to create an elegant architecture....it's obviously too subjective to come up with anything definitive... but yes you are right considering there are some bad systems out there without overall system designs (architectures)
Mark Redman
+8  A: 

Architecture is strategic, while Design is tactical.

Architecture comprises the frameworks, tools, programming paradigms, component-based software engineering standards, design principles..

While design is an activity concerned with local design constraints, such as design patterns, architectural patterns, programming idioms, and refactorings.

Chris Kannon
I'd want fewer references to "design" and "architeture" in the definition of "design" to vote this up...
Peter Hansen
Agreed.. it perhaps:Architecture comprises the frameworks, tools, programming paradigms, component-based software engineering standards, high-level principles..While design is an activity concerned with local constraints, such as design patterns, programming idioms, and refactorings.
Chris Kannon
+2  A: 

The software architecture of a program or computing system is the structure or structures of the system, which comprise software components, the externally visible properties of those components, and the relationships between them.

(from Wikipedia, http://en.wikipedia.org/wiki/Software%5Farchitecture)

Software design is a process of problem-solving and planning for a software solution. After the purpose and specifications of software are determined, software developers will design or employ designers to develop a plan for a solution. It includes low-level component and algorithm implementation issues as well as the architectural view.

(from Wikipedia, http://en.wikipedia.org/wiki/Software%5Fdesign)

Couldn't have said it better myself :)

Larry Watanabe
A: 

I view architecture as Patrick Karcher does - the big picture. For example, you can provide the architecture to a building, view its structural support, the windows, entries and exits, water drainage, etc. But you have not "designed" the floor layout's, cubicle positions etc.

So while you've architected the building you have not designed the layout of each office. I think the same holds true for software.

You could view designing the layout, as "architecting the layout" though ...

Mr-sk
A: 

Pretty subjective but my take:

Architecture The overall design of the system including interactions with other systems, hardware requirement, overall component design, and date flow.

Design The organization and flow of a component in the overall system. This would also include the component's API for interaction with other components.

Jesse
+1  A: 

Software architecture is“concerned with issues...beyond the algorithms and data structures of the computation.

Architecture is specifically not about…details of implementations (e.g., algorithms and data structures.) Architectural design involves a richer collection of abstractions than is typically provided by OOD” (object-oriented design).

Design is concerned with the modularization and detailed interfaces of the design elements, their algorithms and procedures, and the data types needed to support the architecture and to satisfy the requirements.

“architecture” is often used as a mere synonym for “design” (sometimes preceded with the adjective “high-level”). And many people use the term “architectural patterns” as a synonym for “design patterns.”

Check out this link.

Defining the Terms Architecture, Design, and Implementation

Colour Blend
+2  A: 

Architecture:
Structural design work at higher levels of abstraction which realize technically significant requirements into the system. The architecture lays down foundation for further design.

Design:
The art of filling in what the architecture does not through an iterative process at each layer of abstraction.

Joshua Ramirez
A: 

Software design has a longer history while the term software architecture is barely 20 years old. Hence, it is going through growing pains right now.

Academics tend to see Architecture as part of the larger field of software design. Although there is growing recognition that Arch is a field within it's own.

Practitioners tend to see Arch as high-level design decisions that are strategic and can be costly in a project to undo.

The exact line between Arch and design depends on the software domain. For instance, in the domain of Web Applications, the layered architecture is gaining the most popularity currently (Biz Logic Layer, Data Access Layer, etc.) The lower level parts of this Arch are considered design (class diagrams, method signatures, etc.) This would be defined differently in the domains of embedded systems, operating systems, compilers, etc.

LWoodyiii
A: 

Personally, I like this one:

"The designer is concerned with what happens when a user presses a button, and the architect is concerned with what happens when ten thousand users press a button."

SCEA for Java™ EE Study Guide by Mark Cade and Humphrey Sheil

Tavi
A: 

I think architecture is about the interfaces to humans and/or systems. For insance a web service contract, including protocols and so on, is architecture. How a screen is composed, not colors and such but what fields are there, is architecture.

Design is how something is to be built. What frameworks, language, technology etc. This must of course be aligned with enterprise guidelines and restrictions considering platforms, security and so on.

Jimmy
A: 

tadi pehn di sirri mari gandi shakl walo

ali