DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • What Is API-First?
  • React, Angular, and Vue.js: What’s the Technical Difference?
  • In-Depth Guide to Using useMemo() Hook in React
  • Composite Design Pattern in Java

Trending

  • Supercharge Your Software Development Journey With DevOps, CI/CD, and Containers
  • Edge Data Platforms, Real-Time Services, and Modern Data Trends
  • Deploy Like a Pro: Mastering the Best Practices for Code Deployment
  • Log Analysis: How to Digest 15 Billion Logs Per Day and Keep Big Queries Within 1 Second
  1. DZone
  2. Coding
  3. Languages
  4. Design Patterns in the Test of Time: Façade

Design Patterns in the Test of Time: Façade

Oren Eini user avatar by
Oren Eini
·
Nov. 22, 12 · Interview
Like (0)
Save
Tweet
Share
4.58K Views

Join the DZone community and get the full member experience.

Join For Free

a façade is an object that provides a simplified interface to a larger body of code, such as a class library.

more about this pattern.

the intent of the façade was good: to wrap apis that are poorly designed in something shiny and nice.

in the real world , however, it is an evil pattern that is used to needlessly add abstractions for no particular reason. for example, look at this article .

business facade - detailed view data access - detailed view

that sound you just heard is your architecture, it is hiding in the closet, weeping silent tears about emotional and physical abuse that just doesn’t end.

i have yet to see a real case were façade was actually used properly. in most cases, people built a façade because that is how we do things. and because of that, they ended up with things like the one above. it adds exactly nothing, and it horrifyingly complicates the code.

recommendation: avoid this, you really don’t need to do this most of the time, and most implementations are bad.

Design Testing Architecture Abstraction (computer science) Library Interface (computing) Intent (military) Implementation Object (computer science)

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • What Is API-First?
  • React, Angular, and Vue.js: What’s the Technical Difference?
  • In-Depth Guide to Using useMemo() Hook in React
  • Composite Design Pattern in Java

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: