Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8206053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:31:20+00:00 2026-06-07T08:31:20+00:00

In relation with crosscutting concerns and aspect oriented programming, you often read about code

  • 0

In relation with crosscutting concerns and aspect oriented programming, you often read about code tangling. This article 1 desciribes code tangling as:

Modules in a software system may simultaneously interact with several requirements. For example, oftentimes developers simultaneously think about business logic, performance, synchronization, logging, and security. Such a multitude of requirements results in the simultaneous presence of elements from each concern’s implementation, resulting in code tangling.

Isn’t that exactly the same as low cohesion? Is there any difference between high tangling and low cohesion, or are that two different words describing the same thing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:31:22+00:00Added an answer on June 7, 2026 at 8:31 am

    Accourding to wikipedia:

    The implementation of a concern is tangled if its code is intermixed
    with code that implements other concerns. The module in which tangling
    occurs is not cohesive.

    Cohesion is decreased if:
    – The functionalities embedded in a class, accessed through its methods, have little in common.
    – Methods carry out many varied activities, often using coarsely-grained or unrelated sets of data.

    So.. when the code is tangled, it would violate SOLID principles such Single Responsibility Principle, Open Closed Priciple etc.

    All these principles most often go together and violation of one principle/best practice lead to another.

    But tangling doesn’t necessarily mean that the code is not cohesive.
    For example we could have a class called SecurityChecker, which does the authentication of a user log all authentication related activties.
    Clearly this would be handling multiple concerns which are Authentication and Logging. Therefroe it would be a tangled class.
    On the other hand both these conerns would be operating on the same set of data which in this case could be user data, times of logon , number of login attempts etc. Therefore cohesion could still be high.

    Genrally most of these principles/guidlines/best practices look at the same issue from different perspectives, and the end goal is to manage dependencies between different components/classes etc so that the overall design would be more maintainable , efficient and elegant in the long run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In relation to this stackoverflow question , how would I go about creating my
My question is in relation this this answer. https://stackoverflow.com/a/8773953/1297775 I have read at many
In relation with this question about how to write long SQL queries within C#.,
In relation to this question ( Efficient hashCode() implementation ) I have one more
In relation to this previous question I am trying to create a batch file
There is a model relation like this. class A belongs_to :ref_config,:class_name => 'User' end
In relation to this post I'm using the MvcSiteMap provider. I can't seem to
This is in relation to a previous question I asked here. Calling replaceAll(\n, <br
Consider this simple Relation MyRel(A, B) I wanted to display A based on value
This question has some relation to this post I made recently: Drag a UIView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.