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

  • Difference Between High-Level and Low-Level Programming Languages
  • A Better Web3 Experience: Account Abstraction From Flow (Part 1)
  • Container Attached Storage (CAS) vs. Software-Defined Storage - Which One to Choose?
  • Enhanced DynamoDB Client — Java Abstraction Code

Trending

  • How To Verify Database Connection From a Spring Boot Application
  • Best Plugins For JetBrains IDEs
  • 5 Web3 Trends to Follow in 2023
  • Effective Tips for Debugging Complex Code in Java

The wages of sin: Inverse leaky abstractions

Oren Eini user avatar by
Oren Eini
·
Mar. 23, 11 · News
Like (0)
Save
Tweet
Share
2.70K Views

Join the DZone community and get the full member experience.

Join For Free

this time, this is a review of the sharp commerce application. again, i have stumbled upon the application by pure chance, and i have very little notion about who wrote it.

as you might have noticed, i am pretty big fan of the nhibernate futures feature (might be because i wrote it smile ), so i was encouraged when i saw it used in the project. it can drastically help the performance of the system.

except, that then i saw how it is being used.

which is then called from currencyservice:

which is then called…

do you see that? we take the nice future query that we have, and turn it into a standard query, blithely crashing any chance to actually optimize the data access of the system.

the problem is that from the service api, there is literally nothing to tell you that you need to order your calls so all the data access happens up front, and it is easy to make mistakes such as this. the problem is that there is meaning lost at any additional abstraction layer, and pretty soon whatever good intention you had when you wrote a particular layer, 7 layers removed, you can’t really remember what is the best way to approach something.

Abstraction (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

  • Difference Between High-Level and Low-Level Programming Languages
  • A Better Web3 Experience: Account Abstraction From Flow (Part 1)
  • Container Attached Storage (CAS) vs. Software-Defined Storage - Which One to Choose?
  • Enhanced DynamoDB Client — Java Abstraction Code

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: